Return to dir.c CVS log | Up to [local] / src / usr.bin / mg |
version 1.20, 2012/11/27 19:46:46 | version 1.21, 2013/05/17 04:59:29 | ||
---|---|---|---|
|
|
||
*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; | ||
} | } |