|
|
|
@ -1,18 +1,5 @@
|
|
|
|
|
diff -ru3 dcron-2.3.3.orig/database.c dcron-2.3.3/database.c
|
|
|
|
|
--- dcron-2.3.3.orig/database.c Mon May 2 17:28:08 1994
|
|
|
|
|
+++ dcron-2.3.3/database.c Wed Jun 13 09:49:57 2001
|
|
|
|
|
@@ -179,7 +179,7 @@
|
|
|
|
|
if (--maxEntries == 0)
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
- bzero(&line, sizeof(line));
|
|
|
|
|
+ memset(&line, 0, sizeof(line));
|
|
|
|
|
|
|
|
|
|
if (DebugOpt)
|
|
|
|
|
log9("User %s Entry %s\n", fileName, buf);
|
|
|
|
|
diff -ru3 dcron-2.3.3.orig/defs.h dcron-2.3.3/defs.h
|
|
|
|
|
--- dcron-2.3.3.orig/defs.h Fri Sep 5 21:44:32 1997
|
|
|
|
|
+++ dcron-2.3.3/defs.h Wed Jun 13 09:51:08 2001
|
|
|
|
|
--- defs.h Fri Sep 5 21:44:32 1997
|
|
|
|
|
+++ defs.h Wed Jun 13 09:51:08 2001
|
|
|
|
|
@@ -21,12 +21,16 @@
|
|
|
|
|
#include <sys/wait.h>
|
|
|
|
|
#include <sys/stat.h>
|
|
|
|
@ -30,9 +17,8 @@ diff -ru3 dcron-2.3.3.orig/defs.h dcron-2.3.3/defs.h
|
|
|
|
|
#endif
|
|
|
|
|
#ifndef TMPDIR
|
|
|
|
|
#define TMPDIR "/tmp"
|
|
|
|
|
diff -ru3 dcron-2.3.3.orig/main.c dcron-2.3.3/main.c
|
|
|
|
|
--- dcron-2.3.3.orig/main.c Mon May 2 17:28:24 1994
|
|
|
|
|
+++ dcron-2.3.3/main.c Wed Jun 13 09:53:09 2001
|
|
|
|
|
--- main.c Mon May 2 17:28:24 1994
|
|
|
|
|
+++ main.c Wed Jun 13 09:53:09 2001
|
|
|
|
|
@@ -122,8 +122,14 @@
|
|
|
|
|
perror("fork");
|
|
|
|
|
exit(1);
|
|
|
|
@ -49,27 +35,18 @@ diff -ru3 dcron-2.3.3.orig/main.c dcron-2.3.3/main.c
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
diff -ru3 dcron-2.3.3.orig/subs.c dcron-2.3.3/subs.c
|
|
|
|
|
--- dcron-2.3.3.orig/subs.c Mon Feb 16 20:35:10 1998
|
|
|
|
|
+++ dcron-2.3.3/subs.c Wed Jun 13 09:49:57 2001
|
|
|
|
|
@@ -15,7 +15,6 @@
|
|
|
|
|
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 *);
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
log9(const char *ctl, ...)
|
|
|
|
|
@@ -80,7 +79,7 @@
|
|
|
|
|
--- subs.c Wed Feb 10 07:31:46 1999
|
|
|
|
|
+++ subs.c Sun Feb 2 10:33:56 2003
|
|
|
|
|
@@ -79,7 +79,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);
|
|
|
|
|
vsnprintf(buf + strlen(buf), nmax, ctl, va);
|
|
|
|
|
return(strlen(buf));
|
|
|
|
|
}
|
|
|
|
|
@@ -98,9 +97,15 @@
|
|
|
|
|
@@ -97,9 +97,15 @@
|
|
|
|
|
log(9, "failed to get uid for %s", user);
|
|
|
|
|
return(-1);
|
|
|
|
|
}
|
|
|
|
@ -88,19 +65,3 @@ diff -ru3 dcron-2.3.3.orig/subs.c dcron-2.3.3/subs.c
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Change running state to the user in question
|
|
|
|
|
@@ -129,15 +134,5 @@
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return(pas->pw_uid);
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-char *
|
|
|
|
|
-strdup(const char *str)
|
|
|
|
|
-{
|
|
|
|
|
- char *ptr = malloc(strlen(str) + 1);
|
|
|
|
|
-
|
|
|
|
|
- if (ptr)
|
|
|
|
|
- strcpy(ptr, str);
|
|
|
|
|
- return(ptr);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|