summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-12-04 11:31:14 +0000
committerjkh <jkh@FreeBSD.org>1996-12-04 11:31:14 +0000
commit9b86a34b6bfb9cbcc5a27abcb20aafc2816fce6e (patch)
tree482b2b2b8edbe59f1c0e183f8a5e9c656f39a111
parent934ae8e8fd8a684ceee61c9f6a8977ac57dfa4e0 (diff)
downloadFreeBSD-src-9b86a34b6bfb9cbcc5a27abcb20aafc2816fce6e.zip
FreeBSD-src-9b86a34b6bfb9cbcc5a27abcb20aafc2816fce6e.tar.gz
Bump maximum username length to 16 characters. This brings us into
line with BSD/OS and Linux's username limits, making transitioning from either operating system a lot easier than it is now. I'm currently running with this change on my system, as are several others, and have experienced no ill effects. This is not for 2.2! This needs to get shaken out longer term in 3.0. Previously-approved-by: davidg
-rw-r--r--include/utmp.h4
-rw-r--r--share/man/man5/utmp.52
-rw-r--r--sys/sys/param.h4
3 files changed, 5 insertions, 5 deletions
diff --git a/include/utmp.h b/include/utmp.h
index 74df997..d1007fb 100644
--- a/include/utmp.h
+++ b/include/utmp.h
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)utmp.h 8.2 (Berkeley) 1/21/94
- * $Id$
+ * $Id: utmp.h,v 1.2 1996/10/27 18:13:35 wosch Exp $
*/
#ifndef _UTMP_H_
@@ -46,7 +46,7 @@
#define _PATH_WTMP "/var/log/wtmp"
#define _PATH_LASTLOG "/var/log/lastlog"
-#define UT_NAMESIZE 8 /* see MAXLOGNAME in <sys/param.h> */
+#define UT_NAMESIZE 16 /* see MAXLOGNAME in <sys/param.h> */
#define UT_LINESIZE 8
#define UT_HOSTSIZE 16
diff --git a/share/man/man5/utmp.5 b/share/man/man5/utmp.5
index 5089756..4e73c38 100644
--- a/share/man/man5/utmp.5
+++ b/share/man/man5/utmp.5
@@ -72,7 +72,7 @@ or the script
#define _PATH_WTMP "/var/log/wtmp"
#define _PATH_LASTLOG "/var/log/lastlog"
-#define UT_NAMESIZE 8
+#define UT_NAMESIZE 16
#define UT_LINESIZE 8
#define UT_HOSTSIZE 16
diff --git a/sys/sys/param.h b/sys/sys/param.h
index 60a16ac..e5b3d38 100644
--- a/sys/sys/param.h
+++ b/sys/sys/param.h
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)param.h 8.3 (Berkeley) 4/4/95
- * $Id: param.h,v 1.16 1996/11/28 04:07:44 dyson Exp $
+ * $Id: param.h,v 1.17 1996/11/30 22:41:35 dyson Exp $
*/
#ifndef _SYS_PARAM_H_
@@ -65,7 +65,7 @@
#define MAXCOMLEN 16 /* max command name remembered */
#define MAXINTERP 32 /* max interpreter file name length */
-#define MAXLOGNAME 12 /* max login name length */
+#define MAXLOGNAME 16 /* max login name length */
#define MAXUPRC CHILD_MAX /* max simultaneous processes */
#define NCARGS ARG_MAX /* max bytes for an exec function */
#define NGROUPS NGROUPS_MAX /* max number groups */
OpenPOWER on IntegriCloud