[BACK]Return to function.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / find

Diff for /src/usr.bin/find/function.c between version 1.46 and 1.47

version 1.46, 2018/09/16 02:44:06 version 1.47, 2019/06/28 13:35:01
Line 331 
Line 331 
 #endif  #endif
         /* rmdir directories, unlink everything else */          /* rmdir directories, unlink everything else */
         if (S_ISDIR(entry->fts_statp->st_mode)) {          if (S_ISDIR(entry->fts_statp->st_mode)) {
                 if (rmdir(entry->fts_accpath) < 0 && errno != ENOTEMPTY)                  if (rmdir(entry->fts_accpath) == -1 && errno != ENOTEMPTY)
                         warn("-delete: rmdir(%s)", entry->fts_path);                          warn("-delete: rmdir(%s)", entry->fts_path);
         } else {          } else {
                 if (unlink(entry->fts_accpath) < 0)                  if (unlink(entry->fts_accpath) == -1)
                         warn("-delete: unlink(%s)", entry->fts_path);                          warn("-delete: unlink(%s)", entry->fts_path);
   
         }          }

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47