summaryrefslogtreecommitdiffstats
path: root/usr.sbin/chown/chown.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/chown/chown.c')
-rw-r--r--usr.sbin/chown/chown.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/chown/chown.c b/usr.sbin/chown/chown.c
index 7a22292..0b09813 100644
--- a/usr.sbin/chown/chown.c
+++ b/usr.sbin/chown/chown.c
@@ -262,9 +262,7 @@ id(const char *name, const char *type)
*/
errno = 0;
val = strtoul(name, &ep, 10);
- if (errno)
- err(1, "%s", name);
- if (*ep != '\0')
+ if (errno || *ep != '\0')
errx(1, "%s: illegal %s name", name, type);
return (val);
}
OpenPOWER on IntegriCloud