Changeset 300


Ignore:
Timestamp:
Apr 23, 2007, 4:19:41 AM (18 years ago)
Author:
andersk
Message:
Fix expected_len check.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/common/patches/httpd-suexec-scripts.patch

    r298 r300  
    151151+    char *expected = malloc(expected_len);
    152152+    snprintf(expected, expected_len, "%s/%s", target_homedir, AP_USERDIR_SUFFIX);
    153 +    if (strncmp(cwd, expected, expected_len) != 0) {
     153+    if (strncmp(cwd, expected, expected_len-1) != 0) {
    154154+        log_err("error: file's directory not a subdirectory of user's home directory (%s, %s)\n", cwd, expected);
    155155+        exit(114);
Note: See TracChangeset for help on using the changeset viewer.