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

Diff for /src/usr.bin/mg/dir.c between version 1.20 and 1.21

version 1.20, 2012/11/27 19:46:46 version 1.21, 2013/05/17 04:59:29
Line 116 
Line 116 
                 *slash = '\0';                  *slash = '\0';
   
                 ishere = !stat(path, &sb);                  ishere = !stat(path, &sb);
                 if (!finished && ishere && S_ISDIR(sb.st_mode)) {                  if (finished && ishere) {
                           ewprintf("Cannot create directory %s: file exists",
                                path);
                           return(FALSE);
                   } else if (!finished && ishere && S_ISDIR(sb.st_mode)) {
                         *slash = '/';                          *slash = '/';
                         continue;                          continue;
                 }                  }

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21