diff options
author | Glenn L McGrath | 2002-11-10 21:28:13 +0000 |
---|---|---|
committer | Glenn L McGrath | 2002-11-10 21:28:13 +0000 |
commit | 5a7ec22c493a02106d892effeef78e65a4e6b4a0 (patch) | |
tree | c778c0ba94a65cb9b5baf733f0867ff6edd27422 /miscutils | |
parent | eebe31d9979917242bd55274cd153ef08a289480 (diff) | |
download | busybox-5a7ec22c493a02106d892effeef78e65a4e6b4a0.zip busybox-5a7ec22c493a02106d892effeef78e65a4e6b4a0.tar.gz |
last_patch64 from Vladimir N. Oleynik <dzo@simtreas.ru>
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/crontab.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/crontab.c b/miscutils/crontab.c index 4263d48..5bd7db6 100644 --- a/miscutils/crontab.c +++ b/miscutils/crontab.c @@ -204,14 +204,14 @@ crontab_main(int ac, char **av) int n; snprintf(path, sizeof(path), "%s.new", pas->pw_name); - if ((fd = open(path, O_CREAT|O_TRUNC|O_EXCL|O_APPEND|O_WRONLY, 0600)) >= 0) { + if ((fd = open(path, O_CREAT|O_TRUNC|O_APPEND|O_WRONLY, 0600)) >= 0) { while ((n = read(repFd, buf, sizeof(buf))) > 0) { write(fd, buf, n); } close(fd); rename(path, pas->pw_name); } else { - error_msg("unable to create %s/%s", CDir, buf); + error_msg("unable to create %s/%s", CDir, path); } close(repFd); } |