summaryrefslogtreecommitdiffstats
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
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@
-rw-r--r--usr.sbin/cron/crontab.c6
-rw-r--r--usr.sbin/cron/pathnames.h4
2 files changed, 5 insertions, 5 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;
diff --git a/usr.sbin/cron/pathnames.h b/usr.sbin/cron/pathnames.h
index b36d95d729f..da98c4e306f 100644
--- a/usr.sbin/cron/pathnames.h
+++ b/usr.sbin/cron/pathnames.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pathnames.h,v 1.11 2004/06/17 22:11:55 millert Exp $ */
+/* $OpenBSD: pathnames.h,v 1.12 2007/02/13 18:39:34 mglocker Exp $ */
/* Copyright 1993,1994 by Paul Vixie
* All rights reserved
@@ -117,7 +117,7 @@
#endif
#ifndef _PATH_TMP
-# define _PATH_TMP "/tmp"
+# define _PATH_TMP "/tmp/"
#endif
#ifndef _PATH_DEVNULL