slackware-current/source/a/dcron/dcron-2.3.3.diff
Patrick J Volkerding 5a12e7c134 Slackware 13.0
Wed Aug 26 10:00:38 CDT 2009
Slackware 13.0 x86_64 is released as stable!  Thanks to everyone who
helped make this release possible -- see the RELEASE_NOTES for the
credits.  The ISOs are off to the replicator.  This time it will be a
6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD.
We're taking pre-orders now at store.slackware.com.  Please consider
picking up a copy to help support the project.  Once again, thanks to
the entire Slackware community for all the help testing and fixing
things and offering suggestions during this development cycle.
As always, have fun and enjoy!  -P.
2018-05-31 22:41:17 +02:00

40 lines
1.1 KiB
Diff

--- ./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);