]> git.pld-linux.org Git - packages/at.git/blob - at-open.patch
- unify
[packages/at.git] / at-open.patch
1 diff -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.049611 seconds and 3 git commands to generate.