diff options
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/chown.c | 2 | ||||
-rw-r--r-- | coreutils/install.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/chown.c b/coreutils/chown.c index da6b6ab..09cf73f 100644 --- a/coreutils/chown.c +++ b/coreutils/chown.c @@ -72,7 +72,7 @@ int chown_main(int argc, char **argv) *groupName = ':'; /* replace '.' with ':' */ /* First, try parsing "user[:[group]]" */ - if (!groupName) { /* "user" */ + if (!groupName) { /* "user" */ ugid.uid = get_ug_id(*argv, xuname2uid); } else if (groupName == *argv) { /* ":group" */ ugid.gid = get_ug_id(groupName + 1, xgroup2gid); diff --git a/coreutils/install.c b/coreutils/install.c index aa7e8bf..c899158 100644 --- a/coreutils/install.c +++ b/coreutils/install.c @@ -86,7 +86,7 @@ int install_main(int argc, char **argv) break; } } - if ((flags & (OPT_OWNER|OPT_GROUP)) + if ((flags & (OPT_OWNER|OPT_GROUP)) && lchown(*argv, uid, gid) == -1 ) { bb_perror_msg("cannot change ownership of %s", *argv); |