* `LICENSE' that comes with the fcron source distribution.
*/
- /* $Id: convert-fcrontab.c,v 1.3 2001-05-05 19:08:51 thib Exp $ */
+ /* $Id: convert-fcrontab.c,v 1.4 2001-05-17 00:53:41 thib Exp $ */
#include "convert-fcrontab.h"
-char rcs_info[] = "$Id: convert-fcrontab.c,v 1.3 2001-05-05 19:08:51 thib Exp $";
+char rcs_info[] = "$Id: convert-fcrontab.c,v 1.4 2001-05-17 00:53:41 thib Exp $";
void info(void);
void usage(void);
char foreground = 1;
pid_t daemon_pid = 0;
+/* used in temp_file() (so needed by subs.c) */
+char *tmp_path = "/tmp/";
void
info(void)
* `LICENSE' that comes with the fcron source distribution.
*/
- /* $Id: fcron.c,v 1.44 2001-05-15 00:45:09 thib Exp $ */
+ /* $Id: fcron.c,v 1.45 2001-05-17 00:53:02 thib Exp $ */
#include "fcron.h"
-char rcs_info[] = "$Id: fcron.c,v 1.44 2001-05-15 00:45:09 thib Exp $";
+char rcs_info[] = "$Id: fcron.c,v 1.45 2001-05-17 00:53:02 thib Exp $";
void main_loop(void);
void check_signal(void);
time_t save_time = SAVE;
+/* used in temp_file() : create it in current dir (normally spool dir) */
+char *tmp_path = "";
+
/* process identity */
pid_t daemon_pid;
mode_t saved_umask; /* default root umask */
* `LICENSE' that comes with the fcron source distribution.
*/
- /* $Id: subs.c,v 1.7 2001-05-15 00:50:24 thib Exp $ */
+ /* $Id: subs.c,v 1.8 2001-05-17 00:53:55 thib Exp $ */
#include "global.h"
#include "subs.h"
-extern void die_e(char *fmt, ...);
+extern char *tmp_path;
int
remove_blanks(char *str)
{
int fd;
#ifdef HAVE_MKSTEMP
- char name_local[PATH_LEN] = "/tmp/fcr-XXXXXX";
+ char name_local[PATH_LEN] = "";
+ strcpy(name_local, tmp_path);
+ strcat(name_local, "fcr-XXXXXX");
if ( (fd = mkstemp(name_local)) == -1 )
die_e("Can't find a unique temporary filename");
/* we must set the file mode to 600 (some version of mkstemp may set it