summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Drehmel <robert@FreeBSD.org>2002-07-22 11:36:25 +0000
committerRobert Drehmel <robert@FreeBSD.org>2002-07-22 11:36:25 +0000
commit6863982a027b2c913a08d854f243cdfbcbf5989d (patch)
tree61f68486cbbbe678a0a38cc405116bd4d462d013
parent6d6c6baac48e9fec4c1237061c16d077f08181be (diff)
downloadsrc-test2-6863982a027b2c913a08d854f243cdfbcbf5989d.tar.gz
src-test2-6863982a027b2c913a08d854f243cdfbcbf5989d.zip
Notes
-rw-r--r--usr.bin/find/ls.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/find/ls.c b/usr.bin/find/ls.c
index 15179fb86a7d..79e8f594d03a 100644
--- a/usr.bin/find/ls.c
+++ b/usr.bin/find/ls.c
@@ -53,7 +53,6 @@ __FBSDID("$FreeBSD$");
#include <string.h>
#include <time.h>
#include <unistd.h>
-#include <utmp.h>
#include "find.h"
@@ -72,8 +71,8 @@ printlong(name, accpath, sb)
(void)printf("%6lu %4"PRId64" ", (u_long) sb->st_ino, sb->st_blocks);
(void)strmode(sb->st_mode, modep);
- (void)printf("%s %3u %-*s %-*s ", modep, sb->st_nlink, UT_NAMESIZE,
- user_from_uid(sb->st_uid, 0), UT_NAMESIZE,
+ (void)printf("%s %3u %-*s %-*s ", modep, sb->st_nlink, MAXLOGNAME - 1,
+ user_from_uid(sb->st_uid, 0), MAXLOGNAME - 1,
group_from_gid(sb->st_gid, 0));
if (S_ISCHR(sb->st_mode) || S_ISBLK(sb->st_mode))