summaryrefslogtreecommitdiff
path: root/source/a/dcron/dcron-2.3.3.crontab.diff4
blob: 30d0501a00b3ab652360e1892123b1a781788342 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- ./crontab.c.orig	Wed Feb 20 14:31:32 2002
+++ ./crontab.c	Wed Feb 20 14:33:13 2002
@@ -197,14 +197,14 @@
 	    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 {
-		fprintf(stderr, "unable to create %s/%s\n", CDir, buf);
+		fprintf(stderr, "unable to create %s/%s\n", CDir, path);
 	    }
 	    close(repFd);
 	}