summaryrefslogtreecommitdiffstats
path: root/usr.sbin/cron/crontab.c
diff options
context:
space:
mode:
authormglocker <mglocker@openbsd.org>2007-02-13 18:39:34 +0000
committermglocker <mglocker@openbsd.org>2007-02-13 18:39:34 +0000
commit8d11ebb727e73594222023bcedfcdd5f7c31e26b (patch)
tree4c94ceeeb3a3252f0f8cb9c8f109f8bac394a09f /usr.sbin/cron/crontab.c
parentFix typo in comment (diff)
downloadwireguard-openbsd-8d11ebb727e73594222023bcedfcdd5f7c31e26b.tar.xz
wireguard-openbsd-8d11ebb727e73594222023bcedfcdd5f7c31e26b.zip
crontab -e /tmp//crontab.ynUyD24939 versus /tmp/crontab.ynUyD24939.
OK millert@
Diffstat (limited to 'usr.sbin/cron/crontab.c')
-rw-r--r--usr.sbin/cron/crontab.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/cron/crontab.c b/usr.sbin/cron/crontab.c
index 40638fc7292..3ba78f66d3a 100644
--- a/usr.sbin/cron/crontab.c
+++ b/usr.sbin/cron/crontab.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crontab.c,v 1.49 2005/11/29 20:43:31 millert Exp $ */
+/* $OpenBSD: crontab.c,v 1.50 2007/02/13 18:39:34 mglocker Exp $ */
/* Copyright 1988,1990,1993,1994 by Paul Vixie
* All rights reserved
@@ -21,7 +21,7 @@
* OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-static char const rcsid[] = "$OpenBSD: crontab.c,v 1.49 2005/11/29 20:43:31 millert Exp $";
+static char const rcsid[] = "$OpenBSD: crontab.c,v 1.50 2007/02/13 18:39:34 mglocker Exp $";
/* crontab - install and manage per-user crontab files
* vix 02may87 [RCS has the rest of the log]
@@ -319,7 +319,7 @@ edit_cmd(void) {
(void)signal(SIGINT, SIG_IGN);
(void)signal(SIGQUIT, SIG_IGN);
- if (snprintf(Filename, sizeof Filename, "%s/crontab.XXXXXXXXXX",
+ if (snprintf(Filename, sizeof Filename, "%scrontab.XXXXXXXXXX",
_PATH_TMP) >= sizeof(Filename)) {
fprintf(stderr, "path too long\n");
goto fatal;