diff options
author | Erik Andersen | 2000-01-13 04:43:48 +0000 |
---|---|---|
committer | Erik Andersen | 2000-01-13 04:43:48 +0000 |
commit | 05df239ed90584156b820dbf3ede638208eb440f (patch) | |
tree | 990a3d6a9beb21420fae1f7d14886c84a5ce3c12 /mkdir.c | |
parent | 9a9a261569df0c88038de48eb233890ca189e9c0 (diff) | |
download | busybox-05df239ed90584156b820dbf3ede638208eb440f.zip busybox-05df239ed90584156b820dbf3ede638208eb440f.tar.gz |
Bug fixes.
-Erik
Diffstat (limited to 'mkdir.c')
-rw-r--r-- | mkdir.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -84,7 +84,7 @@ extern int mkdir_main(int argc, char **argv) strcpy (buf, *argv); status=stat(buf, &statBuf); - if (status != -1 && status != ENOENT ) { + if (parentFlag == FALSE && status != -1 && status != ENOENT ) { fprintf(stderr, "%s: File exists\n", buf); exit( FALSE); } @@ -93,7 +93,7 @@ extern int mkdir_main(int argc, char **argv) createPath(buf, mode); } else { - if (mkdir (buf, mode) != 0) { + if (mkdir (buf, mode) != 0 && parentFlag == FALSE) { perror(buf); exit( FALSE); } |