summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2009-12-06 01:27:28 +0000
committerEd Schouten <ed@FreeBSD.org>2009-12-06 01:27:28 +0000
commit36a4535e90917bf64db4739b36dacafd20bd6386 (patch)
treee211eab29886e186037d7e77a0e23b875d23c8b0
parent39568873e3f7967d6882ac64195cf47c2836e62a (diff)
downloadpw-darwin-36a4535e90917bf64db4739b36dacafd20bd6386.tar.gz
pw-darwin-36a4535e90917bf64db4739b36dacafd20bd6386.tar.zst
pw-darwin-36a4535e90917bf64db4739b36dacafd20bd6386.zip
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.
-rw-r--r--pw/pw_user.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/pw/pw_user.c b/pw/pw_user.c
index 4c62fe8..c8364ca 100644
--- a/pw/pw_user.c
+++ b/pw/pw_user.c
@@ -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*";