Bump MAXLOGNAME to 20 to really hold 16-bytes user names + NUL

and decrease spare array by one to keep the same size of eproc
This commit is contained in:
Andrey A. Chernov 1997-03-03 08:34:08 +00:00
parent 33c4e65a47
commit 1366201aec
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=23322
2 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)param.h 8.3 (Berkeley) 4/4/95
* $Id: param.h,v 1.23 1997/03/02 21:21:08 ache Exp $
* $Id: param.h,v 1.24 1997/03/03 08:05:03 ache 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 16 /* max login name length (incl. NUL) */
#define MAXLOGNAME 20 /* 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 */

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)user.h 8.2 (Berkeley) 9/23/93
* $Id$
* $Id: user.h,v 1.12 1997/02/22 09:46:23 peter Exp $
*/
#ifndef _SYS_USER_H_
@ -84,7 +84,7 @@ struct kinfo_proc {
#define EPROC_CTTY 0x01 /* controlling tty vnode active */
#define EPROC_SLEADER 0x02 /* session leader */
char e_login[MAXLOGNAME]; /* setlogin() name */
long e_spare[3];
long e_spare[2];
} kp_eproc;
};
void fill_eproc __P((struct proc *, struct eproc *));