diff options
author | Rodney W. Grimes <rgrimes@FreeBSD.org> | 1995-05-30 03:57:47 +0000 |
---|---|---|
committer | Rodney W. Grimes <rgrimes@FreeBSD.org> | 1995-05-30 03:57:47 +0000 |
commit | 709e8f9ae1d734c1a163c9b421df4b8153939ce7 (patch) | |
tree | 15a9c7203efd47ba6dde2896fdb6327dddd4547f /usr.sbin/chown | |
parent | 010f5413b5781bc362fde190ec835a424ec8d28e (diff) | |
download | src-709e8f9ae1d734c1a163c9b421df4b8153939ce7.tar.gz src-709e8f9ae1d734c1a163c9b421df4b8153939ce7.zip |
Notes
Diffstat (limited to 'usr.sbin/chown')
-rw-r--r-- | usr.sbin/chown/chown.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/chown/chown.c b/usr.sbin/chown/chown.c index 5dd08677f7ed..a5ff99edb8c1 100644 --- a/usr.sbin/chown/chown.c +++ b/usr.sbin/chown/chown.c @@ -76,10 +76,10 @@ main(argc, argv) FTSENT *p; int Hflag, Lflag, Pflag, ch, fts_options, hflag, rval; char *cp; - + myname = (cp = rindex(*argv, '/')) ? cp + 1 : *argv; ischown = myname[2] == 'o'; - + Hflag = Lflag = Pflag = hflag = 0; while ((ch = getopt(argc, argv, "HLPRfh")) != EOF) switch (ch) { @@ -145,9 +145,9 @@ main(argc, argv) if ((cp = strchr(*argv, ':')) != NULL) { *cp++ = '\0'; a_gid(cp); - } + } a_uid(*argv); - } else + } else a_gid(*argv); if ((ftsp = fts_open(++argv, fts_options, 0)) == NULL) @@ -259,7 +259,7 @@ chownerr(file) } } - if (!fflag) + if (!fflag) warn("%s", file); } |