Page MenuHomeFreeBSD

D7747.id.diff
No OneTemporary

D7747.id.diff

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

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)

Event Timeline