summaryrefslogtreecommitdiff
path: root/coreutils/install.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-08-24 21:46:24 +0000
committerDenis Vlasenko2007-08-24 21:46:24 +0000
commit6666ac42a5cd63a8b18ec72f6c1364f31ef53921 (patch)
tree64110c3cfad98cada86b87d1e6059173ca33dbd7 /coreutils/install.c
parent2062fc415524e966862c60a6e35d03285f366cbb (diff)
downloadbusybox-6666ac42a5cd63a8b18ec72f6c1364f31ef53921.zip
busybox-6666ac42a5cd63a8b18ec72f6c1364f31ef53921.tar.gz
cp,mv: simpler arg[cv] handling -> smallish code savings
Diffstat (limited to 'coreutils/install.c')
-rw-r--r--coreutils/install.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/coreutils/install.c b/coreutils/install.c
index cf62a00..d087306 100644
--- a/coreutils/install.c
+++ b/coreutils/install.c
@@ -123,10 +123,12 @@ int install_main(int argc, char **argv)
copy_flags |= FILEUTILS_PRESERVE_STATUS;
}
mode = 0666;
- if (flags & OPT_MODE) bb_parse_mode(mode_str, &mode);
+ if (flags & OPT_MODE)
+ bb_parse_mode(mode_str, &mode);
uid = (flags & OPT_OWNER) ? get_ug_id(uid_str, xuname2uid) : getuid();
gid = (flags & OPT_GROUP) ? get_ug_id(gid_str, xgroup2gid) : getgid();
- if (flags & (OPT_OWNER|OPT_GROUP)) umask(0);
+ if (flags & (OPT_OWNER|OPT_GROUP))
+ umask(0);
/* Create directories
* don't use bb_make_directory() as it can't change uid or gid