diff options
author | Toomas Soome <tsoome@me.com> | 2019-01-26 20:11:03 +0200 |
---|---|---|
committer | Dan McDonald <danmcd@joyent.com> | 2019-02-04 13:39:10 -0500 |
commit | edd4c52697927997fb1ce3c2c4c425e5ca3a56d6 (patch) | |
tree | 17023b4c343596d42ae87b58ea03020575549208 /usr | |
parent | 5243e3342f14ea9f300eadae1c8524571a933a1b (diff) | |
download | illumos-joyent-edd4c52697927997fb1ce3c2c4c425e5ca3a56d6.tar.gz |
10307 chown: NULL pointer errors
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Gergő Mihály Doma <domag02@gmail.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr')
-rw-r--r-- | usr/src/ucbcmd/chown/chown.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr/src/ucbcmd/chown/chown.c b/usr/src/ucbcmd/chown/chown.c index 9567b1d44e..e900a2fb1e 100644 --- a/usr/src/ucbcmd/chown/chown.c +++ b/usr/src/ucbcmd/chown/chown.c @@ -25,7 +25,7 @@ */ /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ +/* All Rights Reserved */ /* * University Copyright- Copyright (c) 1982, 1986, 1988 @@ -37,8 +37,6 @@ * contributors. */ -#pragma ident "%Z%%M% %I% %E% SMI" - /* * chown [-fR] uid[.gid] file ... */ @@ -51,6 +49,7 @@ #include <dirent.h> #include <grp.h> #include <errno.h> +#include <unistd.h> struct passwd *pwd; struct passwd *getpwnam(); |