Deleted Added
full compact
database.c (2312) database.c (18179)
1/* Copyright 1988,1990,1993,1994 by Paul Vixie
2 * All rights reserved
3 *
4 * Distribute freely, except: don't remove my name from the source or
5 * documentation (don't take credit for my work), mark your changes (don't
6 * get me blamed for your possible bugs), don't alter or remove this
7 * notice. May be sold if buildable source is provided to buyer. No
8 * warrantee of any kind, express or implied, is included with this
9 * software; use at your own risk, responsibility for damages (if any) to
10 * anyone resulting from the use of this software rests entirely with the
11 * user.
12 *
13 * Send bug reports, bug fixes, enhancements, requests, flames, etc., and
14 * I'll try to keep a version up to date. I can be reached as follows:
15 * Paul Vixie <paul@vix.com> uunet!decwrl!vixie!paul
16 */
17
18#if !defined(lint) && !defined(LINT)
1/* Copyright 1988,1990,1993,1994 by Paul Vixie
2 * All rights reserved
3 *
4 * Distribute freely, except: don't remove my name from the source or
5 * documentation (don't take credit for my work), mark your changes (don't
6 * get me blamed for your possible bugs), don't alter or remove this
7 * notice. May be sold if buildable source is provided to buyer. No
8 * warrantee of any kind, express or implied, is included with this
9 * software; use at your own risk, responsibility for damages (if any) to
10 * anyone resulting from the use of this software rests entirely with the
11 * user.
12 *
13 * Send bug reports, bug fixes, enhancements, requests, flames, etc., and
14 * I'll try to keep a version up to date. I can be reached as follows:
15 * Paul Vixie <paul@vix.com> uunet!decwrl!vixie!paul
16 */
17
18#if !defined(lint) && !defined(LINT)
19static char rcsid[] = "$Id: database.c,v 2.8 1994/01/15 20:43:43 vixie Exp $";
19static char rcsid[] = "$Id: database.c,v 1.1.1.1 1994/08/27 13:43:03 jkh Exp $";
20#endif
21
22/* vix 26jan87 [RCS has the log]
23 */
24
25
26#include "cron.h"
27#include <fcntl.h>

--- 79 unchanged lines hidden (view full) ---

107 /* avoid file names beginning with ".". this is good
108 * because we would otherwise waste two guaranteed calls
109 * to getpwnam() for . and .., and also because user names
110 * starting with a period are just too nasty to consider.
111 */
112 if (dp->d_name[0] == '.')
113 continue;
114
20#endif
21
22/* vix 26jan87 [RCS has the log]
23 */
24
25
26#include "cron.h"
27#include <fcntl.h>

--- 79 unchanged lines hidden (view full) ---

107 /* avoid file names beginning with ".". this is good
108 * because we would otherwise waste two guaranteed calls
109 * to getpwnam() for . and .., and also because user names
110 * starting with a period are just too nasty to consider.
111 */
112 if (dp->d_name[0] == '.')
113 continue;
114
115 (void) strcpy(fname, dp->d_name);
116 sprintf(tabname, CRON_TAB(fname));
115 (void)snprintf(fname, sizeof fname, "%s", dp->d_name);
116 (void)snprintf(tabname, sizeof tabname, "%s", CRON_TAB(fname));
117
118 process_crontab(fname, fname, tabname,
119 &statbuf, &new_db, old_db);
120 }
121 closedir(dir);
122
123 /* if we don't do this, then when our children eventually call
124 * getpwnam() in do_command.c's child_process to verify MAILTO=,

--- 137 unchanged lines hidden ---
117
118 process_crontab(fname, fname, tabname,
119 &statbuf, &new_db, old_db);
120 }
121 closedir(dir);
122
123 /* if we don't do this, then when our children eventually call
124 * getpwnam() in do_command.c's child_process to verify MAILTO=,

--- 137 unchanged lines hidden ---