Ticket #600: options.c.patch

File options.c.patch, 501 bytes (added by dogbert2, 9 years ago)

Patch file for ticket #600

  • options.c

    old new  
    25812581  if (type & CHKACC_DIRPATH)
    25822582    {
    25832583      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      }
    25842588      char *dirpath = dirname(fullpath);
    25852589
    25862590      if (platform_access (dirpath, mode|X_OK) != 0)