Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174325760
D7747.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D7747.id.diff
View Options
Index: head/usr.sbin/cron/cron/cron.h
===================================================================
--- head/usr.sbin/cron/cron/cron.h
+++ head/usr.sbin/cron/cron/cron.h
@@ -73,7 +73,6 @@
#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 ROOT_UID 0 /* don't change this, it really must be root */
#define ROOT_USER "root" /* ditto */
#define SYS_NAME "*system*" /* magic owner name for system crontab */
Index: head/usr.sbin/cron/crontab/crontab.c
===================================================================
--- head/usr.sbin/cron/crontab/crontab.c
+++ head/usr.sbin/cron/crontab/crontab.c
@@ -28,6 +28,7 @@
#define MAIN_PROGRAM
+#include <sys/param.h>
#include "cron.h"
#include <errno.h>
#include <fcntl.h>
@@ -57,7 +58,7 @@
static PID_T Pid;
-static char User[MAX_UNAME], RealUser[MAX_UNAME];
+static char User[MAXLOGNAME], RealUser[MAXLOGNAME];
static char Filename[MAX_FNAME];
static FILE *NewCrontab;
static int CheckErrorCount;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 3, 10:09 AM (14 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40123105
Default Alt Text
D7747.id.diff (1 KB)
Attached To
Mode
D7747: cron: use existing maximum username constant MAXLOGNAME
Attached
Detach File
Event Timeline
Log In to Comment