mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-02 12:20:51 +00:00
- Use MAXLOGNAME - 1 rather than UT_NAMESIZE.
- Remove the inclusion of <utmp.h>.
This commit is contained in:
parent
6d6c6baac4
commit
6863982a02
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=100495
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user