36e8d2b792
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'. |
||
---|---|---|
.. | ||
Makefile | ||
compat.c | ||
compat.h | ||
config.h | ||
cron.8 | ||
cron.c | ||
cron.h | ||
crontab.1 | ||
crontab.5 | ||
crontab.c | ||
database.c | ||
do_command.c | ||
entry.c | ||
env.c | ||
externs.h | ||
job.c | ||
misc.c | ||
pathnames.h | ||
popen.c | ||
user.c |