summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-11-20 19:57:20 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-11-20 19:57:20 +0000
commit455756da635e844a829c58e37a2e63194f0c3598 (patch)
tree486dd77463aa8495754a75e1df5fd811fe2301a7 /usr.bin
parent565f4050db9b7fe2f602d71ee35c8f99778caabb (diff)
Add missing increment in newjob() when there is a time collision.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/at/at.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/at/at.c b/usr.bin/at/at.c
index d66a1a5edbd..48b51176979 100644
--- a/usr.bin/at/at.c
+++ b/usr.bin/at/at.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: at.c,v 1.30 2002/07/15 19:13:29 millert Exp $ */
+/* $OpenBSD: at.c,v 1.31 2002/11/20 19:57:19 millert Exp $ */
/* $NetBSD: at.c,v 1.4 1995/03/25 18:13:31 glass Exp $ */
/*
@@ -73,7 +73,7 @@
#define TIMESIZE 50 /* Size of buffer passed to strftime() */
#ifndef lint
-static const char rcsid[] = "$OpenBSD: at.c,v 1.30 2002/07/15 19:13:29 millert Exp $";
+static const char rcsid[] = "$OpenBSD: at.c,v 1.31 2002/11/20 19:57:19 millert Exp $";
#endif
/* Variables to remove from the job's environment. */
@@ -146,6 +146,7 @@ newjob(time_t runtimer, int queue)
fd = open(atfile, O_WRONLY | O_CREAT | O_EXCL, S_IRUSR);
if (fd >= 0)
return (fd);
+ runtimer++;
}
return (-1);
}