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:
578eff5
)
Dont change ownership unless we created the directory.
author
Glenn L McGrath
<bug1@ihug.co.nz>
Fri, 23 Jan 2004 20:28:53 +0000
(20:28 -0000)
committer
Glenn L McGrath
<bug1@ihug.co.nz>
Fri, 23 Jan 2004 20:28:53 +0000
(20:28 -0000)
coreutils/install.c
patch
|
blob
|
history
diff --git
a/coreutils/install.c
b/coreutils/install.c
index 657962c51a93b3964775620dd094cd307d6ec00c..3128c5bd9177919c0526c09ffadd0e43f8e8fae2 100644
(file)
--- a/
coreutils/install.c
+++ b/
coreutils/install.c
@@
-80,10
+80,12
@@
extern int install_main(int argc, char **argv)
*argv_ptr = '\0';
old_argv_ptr++;
}
- if ((mkdir(*argv, mode) == -1) && (errno != EEXIST)) {
- bb_perror_msg("coulnt create %s", *argv);
- ret = EXIT_FAILURE;
- break;
+ if (mkdir(*argv, mode) == -1) {
+ if (errno != EEXIST) {
+ bb_perror_msg("coulnt create %s", *argv);
+ ret = EXIT_FAILURE;
+ break;
+ }
}
else if (lchown(*argv, uid, gid) == -1) {
bb_perror_msg("cannot change ownership of %s", *argv);