summaryrefslogtreecommitdiff
path: root/include/pwd.h
diff options
context:
space:
mode:
authorPaul Janzen <pjanzen@cvs.openbsd.org>2001-02-13 14:48:41 +0000
committerPaul Janzen <pjanzen@cvs.openbsd.org>2001-02-13 14:48:41 +0000
commitdd5d4c5e1e3c646d561c0e65ee2dd12cd947bfac (patch)
treee898f2b037348534d66ea642fa70cff25a003ca9 /include/pwd.h
parentbe7691a5dfa791b5a1e29c4f2c3bb63d7a19e2a5 (diff)
_PW_NAME_LEN doesn't include the NUL, MAXLOGNAME does.
Diffstat (limited to 'include/pwd.h')
-rw-r--r--include/pwd.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/pwd.h b/include/pwd.h
index 0c3ec950a66..af6c812f619 100644
--- a/include/pwd.h
+++ b/include/pwd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pwd.h,v 1.10 2001/01/31 17:42:25 deraadt Exp $ */
+/* $OpenBSD: pwd.h,v 1.11 2001/02/13 14:48:40 pjanzen Exp $ */
/* $NetBSD: pwd.h,v 1.9 1996/05/15 21:36:45 jtc Exp $ */
/*-
@@ -66,8 +66,9 @@
#define _PASSWORD_EFMT1 '_' /* extended encryption format */
-#define _PASSWORD_LEN 128 /* max length, not counting NULL */
-#define _PW_NAME_LEN 32 /* max length, not counting NULL */
+#define _PASSWORD_LEN 128 /* max length, not counting NUL */
+#define _PW_NAME_LEN 31 /* max length, not counting NUL */
+ /* Should be MAXLOGNAME - 1 */
#define _PASSWORD_NOUID 0x01 /* flag for no specified uid. */
#define _PASSWORD_NOGID 0x02 /* flag for no specified gid. */