- massive attack s/pld.org.pl/pld-linux.org/
[packages/at.git] / at-open.patch
CommitLineData
ed6b15d7
AM
1diff -ruN ../at-3.1.8.orig/at.c ./at.c
2--- ../at-3.1.8.orig/at.c Mon Jan 14 17:59:08 2002
3+++ ./at.c Mon Jan 14 17:59:48 2002
4@@ -292,7 +292,7 @@
5 * bit. Yes, this is a kluge.
6 */
7 cmask = umask(S_IRUSR | S_IWUSR | S_IXUSR);
8- if ((fd = open(atfile, O_CREAT | O_TRUNC | O_WRONLY, S_IRUSR)) == -1)
9+ if ((fd = open(atfile, O_CREAT | O_EXCL | O_TRUNC | O_WRONLY, S_IRUSR)) == -1)
10 perr("Cannot create atjob file %.500s", atfile);
11
12 if ((fd2 = dup(fd)) < 0)
This page took 0.025304 seconds and 4 git commands to generate.