--- ./defs.h.orig Fri Sep 5 14:44:32 1997
+++ ./defs.h Thu Aug 26 16:56:10 1999
@@ -29,7 +29,7 @@
#define CRONTABS "/var/spool/cron/crontabs"
#endif
#ifndef TMPDIR
-#define TMPDIR "/tmp"
+#define TMPDIR "/var/spool/cron"
#endif
#ifndef OPEN_MAX
#define OPEN_MAX 256
--- ./subs.c.orig Mon Feb 16 13:35:10 1998
+++ ./subs.c Thu Aug 26 16:57:21 1999
@@ -15,7 +15,7 @@
Prototype int ChangeUser(const char *user, short dochdir);
Prototype void vlog(int level, int fd, const char *ctl, va_list va);
Prototype int slog(char *buf, size_t sz, const char *ctl, va_list va, short useDate);
-Prototype char *strdup(const char *);
+Prototype char *xx_strdup(const char *);
void
log9(const char *ctl, ...)
@@ -80,7 +80,7 @@
buf[0] = 0;
if (useDate)
- strftime(buf, 128, "%d-%b-%y %H:%M ", tp);
+ strftime(buf, 128, "%d-%b-%Y %H:%M ", tp);
vsnprintf(buf + strlen(buf), sz - strlen(buf), ctl, va);
return(strlen(buf));
}
@@ -132,7 +132,7 @@
}
char *
-strdup(const char *str)
+xx_strdup(const char *str)
{
char *ptr = malloc(strlen(str) + 1);