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

Diff for /src/usr.bin/mg/file.c between version 1.90 and 1.91

version 1.90, 2013/12/23 14:58:16 version 1.91, 2014/03/14 10:02:52
Line 506 
Line 506 
   
         /* Check if file exists; write checks done later */          /* Check if file exists; write checks done later */
         if (stat(adjfname, &statbuf) == 0) {          if (stat(adjfname, &statbuf) == 0) {
                   if (S_ISDIR(statbuf.st_mode)) {
                           dobeep();
                           ewprintf("%s is a directory", adjfname);
                           return (FALSE);
                   }
                 snprintf(tmp, sizeof(tmp), "File `%s' exists; overwrite",                  snprintf(tmp, sizeof(tmp), "File `%s' exists; overwrite",
                     adjfname);                      adjfname);
                 if ((s = eyorn(tmp)) != TRUE)                  if ((s = eyorn(tmp)) != TRUE)

Legend:
Removed from v.1.90  
changed lines
  Added in v.1.91