Author: ed
Date: Sun Dec  6 01:27:28 2009
New Revision: 200173
URL: http://svn.freebsd.org/changeset/base/200173

Log:
  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.

Modified:
  head/usr.sbin/pw/pw_user.c

Modified: head/usr.sbin/pw/pw_user.c
==============================================================================
--- head/usr.sbin/pw/pw_user.c  Sun Dec  6 01:10:30 2009        (r200172)
+++ head/usr.sbin/pw/pw_user.c  Sun Dec  6 01:27:28 2009        (r200173)
@@ -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*";
 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to