NetBSD/usr.sbin/cron
christos 36e8d2b792 PR/28744: Ed Ravin: crontab with fewer than 3 comment lines dumps core
in crontab -l.
The problem is that the skip_header code has a side effect of trying to
write to the new temporary cron tab if we run out of comments. Since we
don't have an output file in -l, we core-dump trying to fputc to NULL.
Simplify the logic so that we don't write in the skip_header function,
and we always return the first character after the comment lines to the
caller, skipping the '\n'.
2004-12-22 00:49:14 +00:00
..
Makefile
compat.c
compat.h
config.h
cron.8
cron.c
cron.h
crontab.1
crontab.5
crontab.c PR/28744: Ed Ravin: crontab with fewer than 3 comment lines dumps core 2004-12-22 00:49:14 +00:00
database.c
do_command.c
entry.c
env.c
externs.h
job.c
misc.c
pathnames.h
popen.c
user.c