* `LICENSE' that comes with the fcron source distribution.
*/
- /* $Id: convert-fcrontab.c,v 1.2 2001-04-30 03:02:28 thib Exp $ */
+ /* $Id: convert-fcrontab.c,v 1.3 2001-05-05 19:08:51 thib Exp $ */
#include "convert-fcrontab.h"
-char rcs_info[] = "$Id: convert-fcrontab.c,v 1.2 2001-04-30 03:02:28 thib Exp $";
+char rcs_info[] = "$Id: convert-fcrontab.c,v 1.3 2001-05-05 19:08:51 thib Exp $";
void info(void);
void usage(void);
-void update_file(char *file_name);
+void convert_file(char *file_name);
char *read_str(FILE *f, char *buf, int max);
void delete_file(CF *file);
}
void
-update_file(char *file_name)
+convert_file(char *file_name)
/* this functions is a mix of read_file() from version 1.0.3 and save_file(),
* so you can read more comments there */
{
char buf[LINE_LEN];
time_t t_save = 0;
+ explain("Converting %s's fcrontab ...", file_name);
+
Alloc(file, CF);
/* open file */
if ( (f = fopen(file_name, "r")) == NULL )
if (chdir(cdir) != 0)
die_e("Could not change dir to " FCRONTABS);
- update_file(user_to_update);
+ convert_file(user_to_update);
exit(EXIT_OK);