Subject: bin/36535: rm(1) should present user:group the same way as chown(8) et al
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: Greg A. Woods <woods@planix.com>
List: netbsd-bugs
Date: 06/23/2007 19:10:00
>Number: 36535
>Category: bin
>Synopsis: rm(1) should present user:group the same way as chown(8) et al
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jun 23 19:10:00 +0000 2007
>Originator: Greg A. Woods
>Release: netbsd-4 2007/06/23
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:
System: NetBSD
>Description:
rm(1) should present user:group the same way as chown(8) et al
>How-To-Repeat:
>Fix:
Index: bin/rm/rm.c
===================================================================
RCS file: /cvs/master/m-NetBSD/main/src/bin/rm/rm.c,v
retrieving revision 1.45
diff -u -r1.45 rm.c
--- bin/rm/rm.c 25 Aug 2006 11:00:40 -0000 1.45
+++ bin/rm/rm.c 11 Feb 2007 02:16:49 -0000
@@ -516,7 +516,7 @@
" be overwritten", path);
return 0;
}
- (void)fprintf(stderr, "override %s%s%s/%s for '%s'? ",
+ (void)fprintf(stderr, "override %s%s%s:%s for '%s'? ",
modep + 1, modep[9] == ' ' ? "" : " ",
user_from_uid(sp->st_uid, 0),
group_from_gid(sp->st_gid, 0), path);
>Unformatted: