summaryrefslogtreecommitdiff
path: root/usr.sbin/cron/cron.h
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2001-02-12 18:46:55 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2001-02-12 18:46:55 +0000
commit621046b2d7c1386017941dee072594a6d2361fc5 (patch)
treebbcce07d4126cb80fe7302d3fa2fb486841e47fc /usr.sbin/cron/cron.h
parenta5440f41496453d2c51a459739b3932832e36188 (diff)
Define MAX_UNAME in terms of _PW_NAME_LEN. Potential problem found by
achter05@IE.HVA.NL
Diffstat (limited to 'usr.sbin/cron/cron.h')
-rw-r--r--usr.sbin/cron/cron.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/cron/cron.h b/usr.sbin/cron/cron.h
index 3b6e20f33e4..144c33328e2 100644
--- a/usr.sbin/cron/cron.h
+++ b/usr.sbin/cron/cron.h
@@ -17,7 +17,7 @@
/* cron.h - header for vixie's cron
*
- * $Id: cron.h,v 1.4 2000/08/21 20:57:53 deraadt Exp $
+ * $Id: cron.h,v 1.5 2001/02/12 18:46:54 millert Exp $
*
* vix 14nov88 [rest of log is in RCS]
* vix 14jan87 [0 or 7 can be sunday; thanks, mwm@berkeley]
@@ -68,7 +68,7 @@
#define MAX_COMMAND 1000 /* max length of internally generated cmd */
#define MAX_ENVSTR 1000 /* max length of envvar=value\0 strings */
#define MAX_TEMPSTR 100 /* obvious */
-#define MAX_UNAME 20 /* max length of username, should be overkill */
+#define MAX_UNAME (_PW_NAME_LEN+1) /* max length of username */
#define ROOT_UID 0 /* don't change this, it really must be root */
#define ROOT_USER "root" /* ditto */