summaryrefslogtreecommitdiffstats
path: root/bin/ls/util.c
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>1999-08-02 14:55:58 +0000
committersheldonh <sheldonh@FreeBSD.org>1999-08-02 14:55:58 +0000
commit744826805a8fa11029b3e80c02543c9c0bd5f348 (patch)
tree5ed8b544293dda4ec868c125ea69f1f05e2c6122 /bin/ls/util.c
parent5b5828498ce7d177092ce4cab703281dbce9c563 (diff)
downloadFreeBSD-src-744826805a8fa11029b3e80c02543c9c0bd5f348.zip
FreeBSD-src-744826805a8fa11029b3e80c02543c9c0bd5f348.tar.gz
Add -n option to print numeric user and group IDs instead of names
in a long (-l) listing. MFC-jockies should make sure that bde's concerns regarding the number of digits required to represent a uid_t and the use of snprintf on the associated PR have been addressed before going wild. PR: 12866 Reported by: Philip Kizer <pckizer@nostrum.com> Obtained from: NetBSD
Diffstat (limited to 'bin/ls/util.c')
-rw-r--r--bin/ls/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ls/util.c b/bin/ls/util.c
index d4b55e7..9d5ba39 100644
--- a/bin/ls/util.c
+++ b/bin/ls/util.c
@@ -39,7 +39,7 @@
static char sccsid[] = "@(#)util.c 8.3 (Berkeley) 4/2/94";
#else
static const char rcsid[] =
- "$Id: util.c,v 1.17 1998/04/25 00:12:32 ache Exp $";
+ "$Id: util.c,v 1.18 1998/10/13 12:19:31 des Exp $";
#endif
#endif /* not lint */
@@ -158,7 +158,7 @@ prn_octal(s)
void
usage()
{
- (void)fprintf(stderr, "usage: ls [-ACFHLPRTWacdfgikloqrstu1]"
+ (void)fprintf(stderr, "usage: ls [-ACFHLPRTWacdfgiklnoqrstu1]"
" [file ...]\n");
exit(1);
}
OpenPOWER on IntegriCloud