FreeBSD Bugzilla – Attachment 24144 Details for
Bug 41341
"-vv" (very verbose) flag for chown
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
chown-vvflag.diff
chown-vvflag.diff (text/x-diff; charset="iso-8859-1"), 1.22 KB, created by
ejb
on 2003-02-02 17:13:31 UTC
(
hide
)
Description:
chown-vvflag.diff
Filename:
MIME Type:
Creator:
ejb
Created:
2003-02-02 17:13:31 UTC
Size:
1.22 KB
patch
obsolete
>? chgrp.1.gz >? chown >? chown.8.gz >Index: chown.8 >=================================================================== >RCS file: /home/ncvs/src/usr.sbin/chown/chown.8,v >retrieving revision 1.21 >diff -u -r1.21 chown.8 >--- chown.8 2003/01/26 02:40:23 1.21 >+++ chown.8 2003/02/02 16:59:31 >@@ -96,6 +96,10 @@ > Cause > .Nm > to be verbose, showing files as the owner is modified. >+If the >+.Fl v >+flag is specified more than once, chown will print the filename, followed >+by the old and new uid/gid. > .El > .Pp > The >Index: chown.c >=================================================================== >RCS file: /home/ncvs/src/usr.sbin/chown/chown.c,v >retrieving revision 1.25 >diff -u -r1.25 chown.c >--- chown.c 2002/12/30 10:16:56 1.25 >+++ chown.c 2003/02/02 16:59:32 >@@ -106,7 +106,7 @@ > hflag = 1; > break; > case 'v': >- vflag = 1; >+ vflag++; > break; > case '?': > default: >@@ -191,7 +191,12 @@ > rval = 1; > } > } else { >- if (vflag) >+ if (vflag > 1) >+ printf("%s: %u:%u -> %u:%u\n", p->fts_path, >+ p->fts_statp->st_uid, p->fts_statp->st_gid, >+ (uid == (uid_t)-1) ? p->fts_statp->st_uid : uid, >+ (gid == (gid_t)-1) ? p->fts_statp->st_gid : gid); >+ else if (vflag) > printf("%s\n", p->fts_path); > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 41341
: 24144