Ticket #600: options.c.patch
File options.c.patch, 501 bytes (added by , 9 years ago) |
---|
-
options.c
old new 2581 2581 if (type & CHKACC_DIRPATH) 2582 2582 { 2583 2583 char *fullpath = strdup(file); /* POSIX dirname() implementaion may modify its arguments */ 2584 if (fullpath == NULL) { 2585 msg(M_FATAL, "Unable to allocate memory for fullpath in check_file_access.\n"); 2586 return false; 2587 } 2584 2588 char *dirpath = dirname(fullpath); 2585 2589 2586 2590 if (platform_access (dirpath, mode|X_OK) != 0)