diff options
| -rw-r--r-- | sys/sys/param.h | 6 | ||||
| -rw-r--r-- | sys/sys/proc.h | 4 | ||||
| -rw-r--r-- | sys/sys/user.h | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/sys/sys/param.h b/sys/sys/param.h index 4b2061e51473..919e7588bb5e 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.24 1997/03/03 08:05:03 ache Exp $ + * $Id: param.h,v 1.25 1997/03/03 08:34:08 ache Exp $ */ #ifndef _SYS_PARAM_H_ @@ -59,13 +59,13 @@ * Redefined constants are from POSIX 1003.1 limits file. * * MAXCOMLEN should be >= sizeof(ac_comm) (see <acct.h>) - * MAXLOGNAME should be >= UT_NAMESIZE+1 (see <utmp.h>) + * MAXLOGNAME should be == UT_NAMESIZE+1 (see <utmp.h>) */ #include <sys/syslimits.h> #define MAXCOMLEN 16 /* max command name remembered */ #define MAXINTERP 32 /* max interpreter file name length */ -#define MAXLOGNAME 20 /* max login name length (incl. NUL) */ +#define MAXLOGNAME 17 /* max login name length (incl. NUL) */ #define MAXUPRC CHILD_MAX /* max simultaneous processes */ #define NCARGS ARG_MAX /* max bytes for an exec function */ #define NGROUPS NGROUPS_MAX /* max number groups */ diff --git a/sys/sys/proc.h b/sys/sys/proc.h index ed1a151a1961..f75a0557d69c 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)proc.h 8.15 (Berkeley) 5/19/95 - * $Id$ + * $Id: proc.h,v 1.32 1997/02/22 09:45:41 peter Exp $ */ #ifndef _SYS_PROC_H_ @@ -57,7 +57,7 @@ struct session { struct proc *s_leader; /* Session leader. */ struct vnode *s_ttyvp; /* Vnode of controlling terminal. */ struct tty *s_ttyp; /* Controlling terminal. */ - char s_login[MAXLOGNAME]; /* Setlogin() name. */ + char s_login[roundup(MAXLOGNAME, sizeof(long))]; /* Setlogin() name. */ }; /* diff --git a/sys/sys/user.h b/sys/sys/user.h index 0db7770bc78f..e05e0eab2b48 100644 --- a/sys/sys/user.h +++ b/sys/sys/user.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)user.h 8.2 (Berkeley) 9/23/93 - * $Id: user.h,v 1.12 1997/02/22 09:46:23 peter Exp $ + * $Id: user.h,v 1.13 1997/03/03 08:34:08 ache Exp $ */ #ifndef _SYS_USER_H_ @@ -83,7 +83,7 @@ struct kinfo_proc { long e_flag; #define EPROC_CTTY 0x01 /* controlling tty vnode active */ #define EPROC_SLEADER 0x02 /* session leader */ - char e_login[MAXLOGNAME]; /* setlogin() name */ + char e_login[roundup(MAXLOGNAME, sizeof(long))]; /* setlogin() name */ long e_spare[2]; } kp_eproc; }; |
