diff options
author | Glenn L McGrath | 2002-09-28 08:32:14 +0000 |
---|---|---|
committer | Glenn L McGrath | 2002-09-28 08:32:14 +0000 |
commit | 924f93e848c507c92beb1b106c7c52e428d3c2c2 (patch) | |
tree | f55718d04edeb4fb977485e365ef5c9d8fbcce1c /coreutils | |
parent | 891ee641cb7ffde66ae9cb565893bfdeadd1adf0 (diff) | |
download | busybox-924f93e848c507c92beb1b106c7c52e428d3c2c2.zip busybox-924f93e848c507c92beb1b106c7c52e428d3c2c2.tar.gz |
make_directory() will fail instantly so we dont need to test for failure here
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/mkdir.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/coreutils/mkdir.c b/coreutils/mkdir.c index 03c49f0..6a4ce6e 100644 --- a/coreutils/mkdir.c +++ b/coreutils/mkdir.c @@ -35,7 +35,6 @@ extern int mkdir_main (int argc, char **argv) { mode_t mode = -1; int flags = 0; - int status = 0; int i, opt; while ((opt = getopt (argc, argv, "m:p")) != -1) { @@ -56,9 +55,9 @@ extern int mkdir_main (int argc, char **argv) if (optind == argc) show_usage (); - for (i = optind; i < argc; i++) - if (make_directory (argv[i], mode, flags) < 0) - status = 1; + for (i = optind; i < argc; i++) { + make_directory (argv[i], mode, flags); + } - return status; + return(EXIT_SUCCESS); } |