20 lines
685 B
Diff
20 lines
685 B
Diff
diff -up at-3.1.12/at.c.nowrap at-3.1.12/at.c
|
|
--- at-3.1.12/at.c.nowrap 2010-02-18 14:39:50.125518422 +0100
|
|
+++ at-3.1.12/at.c 2010-02-22 13:20:03.817150406 +0100
|
|
@@ -308,10 +308,13 @@ writefile(time_t runtimer, char queue)
|
|
if (*ap == ' ')
|
|
*ap = '0';
|
|
|
|
- if (stat(atfile, &statbuf) != 0)
|
|
+ /*if (stat(atfile, &statbuf) != 0) {
|
|
if (errno != ENOENT)
|
|
perr("Cannot access " ATJOB_DIR);
|
|
-
|
|
+ } else {
|
|
+ perr("atjob file already exists; bailing");
|
|
+ }
|
|
+ */
|
|
/* Create the file. The x bit is only going to be set after it has
|
|
* been completely written out, to make sure it is not executed in the
|
|
* meantime. To make sure they do not get deleted, turn off their r
|