* `LICENSE' that comes with the fcron source distribution.
*/
- /* $Id: fcrontab.c,v 1.60 2002-09-07 13:10:50 thib Exp $ */
+ /* $Id: fcrontab.c,v 1.61 2002-09-15 18:07:47 thib Exp $ */
/*
* The goal of this program is simple : giving a user interface to fcron
#include "temp_file.h"
#include "read_string.h"
-char rcs_info[] = "$Id: fcrontab.c,v 1.60 2002-09-07 13:10:50 thib Exp $";
+char rcs_info[] = "$Id: fcrontab.c,v 1.61 2002-09-15 18:07:47 thib Exp $";
void info(void);
void usage(void);
error_e("seteuid(fcrontab_uid[%d])", fcrontab_uid);
}
#endif
- to_fd = open(dest, O_CREAT | O_TRUNC | O_SYNC);
+ to_fd = open(dest, O_WRONLY | O_CREAT | O_TRUNC | O_SYNC);
if (to_fd == -1) {
error_e("copy: dest");
return ERR;
* `LICENSE' that comes with the fcron source distribution.
*/
- /* $Id: fileconf.c,v 1.62 2002-09-07 13:11:25 thib Exp $ */
+ /* $Id: fileconf.c,v 1.63 2002-09-15 18:09:42 thib Exp $ */
#include "fcrontab.h"
for (file = file_base; file; file = file->cf_next) {
/* open file */
- fd = open(path, O_CREAT | O_TRUNC | O_SYNC);
+ fd = open(path, O_WRONLY | O_CREAT | O_TRUNC | O_SYNC);
if ( fd == -1 ) {
error_e("Could not open %s : file has not be installed.", path);
return ERR;