mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 15:32:45 +00:00
Make pw(8) build without <utmp.h>.
The size of the username record in utmp files should not influence the maximum username length. Right now ut_user/ut_name is big enough, so in this case it's dead code anyway.
This commit is contained in:
parent
dc65bcacb2
commit
41d6f23028
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=200173
@ -41,16 +41,11 @@ static const char rcsid[] =
|
||||
#include <sys/time.h>
|
||||
#include <sys/resource.h>
|
||||
#include <unistd.h>
|
||||
#include <utmp.h>
|
||||
#include <login_cap.h>
|
||||
#include "pw.h"
|
||||
#include "bitmap.h"
|
||||
|
||||
#if (MAXLOGNAME-1) > UT_NAMESIZE
|
||||
#define LOGNAMESIZE UT_NAMESIZE
|
||||
#else
|
||||
#define LOGNAMESIZE (MAXLOGNAME-1)
|
||||
#endif
|
||||
|
||||
static char locked_str[] = "*LOCKED*";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user