* `LICENSE' that comes with the fcron source distribution.
*/
- /* $Id: fcrontab.c,v 1.29 2001-01-12 21:41:24 thib Exp $ */
+ /* $Id: fcrontab.c,v 1.30 2001-02-10 12:53:29 thib Exp $ */
/*
* The goal of this program is simple : giving a user interface to fcron
#include "fcrontab.h"
-char rcs_info[] = "$Id: fcrontab.c,v 1.29 2001-01-12 21:41:24 thib Exp $";
+char rcs_info[] = "$Id: fcrontab.c,v 1.30 2001-02-10 12:53:29 thib Exp $";
void info(void);
void usage(void);
uid = getuid();
+ /* get current dir */
+ if ( (orig_dir = getcwd(NULL, 0)) == NULL )
+ error_e("getcwd");
+
/* interpret command line options */
parseopt(argc, argv);
* to 600 for security reasons */
umask(026);
- /* get current dir */
- if ( (orig_dir = getcwd(NULL, 0)) == NULL )
- error_e("getcwd");
-
snprintf(buf, sizeof(buf), "%s.orig", user);
/* determine what action should be taken */