projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
891ee64
)
make_directory() will fail instantly so we dont need to test for failure here
author
Glenn L McGrath
<bug1@ihug.co.nz>
Sat, 28 Sep 2002 08:32:14 +0000
(08:32 -0000)
committer
Glenn L McGrath
<bug1@ihug.co.nz>
Sat, 28 Sep 2002 08:32:14 +0000
(08:32 -0000)
coreutils/mkdir.c
patch
|
blob
|
history
diff --git
a/coreutils/mkdir.c
b/coreutils/mkdir.c
index 03c49f0983cfa96486cc3d09c5c35c3619a112a1..6a4ce6e1a8b43cbd52096e609882a00b595511c0 100644
(file)
--- 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)
;
}