# this is a regular expression:
# do not ci these files
-RCSNOCI=.*\(bitstring.3\|fcron-doc.ced\|Makefile\|${STYLESHEET}\|fcron-doc.mod\|HTML.*\|txt.*\|man\/.*\|CVS.*\)
+RCSNOCI=.*\(bitstring.3\|fcron-doc.ced\|Makefile\|${STYLESHEET}\|fcron-doc.mod\|HTML.*\|txt.*\|man\/.*\|CVS.*\|.git.*\)
all: doc
die_e("Could not change dir to %s", fcrontabs);
- freopen("/dev/null", "r", stdin);
+ if ( freopen("/dev/null", "r", stdin) == NULL )
+ error_e("Could not open /dev/null as stdin");
if (foreground == 0) {
close(fd);
}
- freopen("/dev/null", "w", stdout);
- freopen("/dev/null", "w", stderr);
+ if ( freopen("/dev/null", "w", stdout) == NULL )
+ error_e("Could not open /dev/null as stdout");
+ if ( freopen("/dev/null", "w", stderr) == NULL )
+ error_e("Could not open /dev/null as stderr");
/* close most other open fds */
xcloselog();
}
}
snprintf(editorcmd, sizeof(editorcmd), "%s %s", cureditor, tmp_str);
- chdir(tmp_path);
+ if ( chdir(tmp_path) != 0 )
+ error_e("Could not chdir to %s", tmp_path);
execlp(shell, shell, "-c", editorcmd, tmp_str, NULL);
error_e("Error while running \"%s\"", cureditor);
goto exiterr;