aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/chown.c2
-rw-r--r--coreutils/install.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/chown.c b/coreutils/chown.c
index da6b6abdd..09cf73f04 100644
--- a/coreutils/chown.c
+++ b/coreutils/chown.c
@@ -72,7 +72,7 @@ int chown_main(int argc, char **argv)
72 *groupName = ':'; /* replace '.' with ':' */ 72 *groupName = ':'; /* replace '.' with ':' */
73 73
74 /* First, try parsing "user[:[group]]" */ 74 /* First, try parsing "user[:[group]]" */
75 if (!groupName) { /* "user" */ 75 if (!groupName) { /* "user" */
76 ugid.uid = get_ug_id(*argv, xuname2uid); 76 ugid.uid = get_ug_id(*argv, xuname2uid);
77 } else if (groupName == *argv) { /* ":group" */ 77 } else if (groupName == *argv) { /* ":group" */
78 ugid.gid = get_ug_id(groupName + 1, xgroup2gid); 78 ugid.gid = get_ug_id(groupName + 1, xgroup2gid);
diff --git a/coreutils/install.c b/coreutils/install.c
index aa7e8bf2b..c899158aa 100644
--- a/coreutils/install.c
+++ b/coreutils/install.c
@@ -86,7 +86,7 @@ int install_main(int argc, char **argv)
86 break; 86 break;
87 } 87 }
88 } 88 }
89 if ((flags & (OPT_OWNER|OPT_GROUP)) 89 if ((flags & (OPT_OWNER|OPT_GROUP))
90 && lchown(*argv, uid, gid) == -1 90 && lchown(*argv, uid, gid) == -1
91 ) { 91 ) {
92 bb_perror_msg("cannot change ownership of %s", *argv); 92 bb_perror_msg("cannot change ownership of %s", *argv);