[BusyBox-cvs] busybox/coreutils install.c,1.5,1.6
Glenn McGrath
bug1 at busybox.net
Fri Jan 23 20:28:56 UTC 2004
Update of /var/cvs/busybox/coreutils
In directory nail:/tmp/cvs-serv25903/coreutils
Modified Files:
install.c
Log Message:
Dont change ownership unless we created the directory.
Index: install.c
===================================================================
RCS file: /var/cvs/busybox/coreutils/install.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- install.c 23 Jan 2004 10:57:00 -0000 1.5
+++ install.c 23 Jan 2004 20:28:53 -0000 1.6
@@ -80,10 +80,12 @@
*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);
More information about the busybox-cvs
mailing list