View | Details | Raw Unified | Return to bug 41341
Collapse All | Expand All

(-)chown.8 (+4 lines)
Lines 96-101 Link Here
96
Cause
96
Cause
97
.Nm
97
.Nm
98
to be verbose, showing files as the owner is modified.
98
to be verbose, showing files as the owner is modified.
99
If the
100
.Fl v
101
flag is specified more than once, chown will print the filename, followed
102
by the old and new uid/gid.
99
.El
103
.El
100
.Pp
104
.Pp
101
The
105
The
(-)chown.c (-2 / +7 lines)
Lines 106-112 Link Here
106
			hflag = 1;
106
			hflag = 1;
107
			break;
107
			break;
108
		case 'v':
108
		case 'v':
109
			vflag = 1;
109
			vflag++;
110
			break;
110
			break;
111
		case '?':
111
		case '?':
112
		default:
112
		default:
Lines 191-197 Link Here
191
				rval = 1;
191
				rval = 1;
192
			}
192
			}
193
		} else {
193
		} else {
194
			if (vflag)
194
			if (vflag > 1)
195
				printf("%s: %u:%u -> %u:%u\n", p->fts_path,
196
				    p->fts_statp->st_uid, p->fts_statp->st_gid,
197
				    (uid == (uid_t)-1) ? p->fts_statp->st_uid : uid,
198
				    (gid == (gid_t)-1) ? p->fts_statp->st_gid : gid);
199
			else if (vflag)
195
				printf("%s\n", p->fts_path);
200
				printf("%s\n", p->fts_path);
196
		}
201
		}
197
	}
202
	}

Return to bug 41341