summaryrefslogtreecommitdiffstats
path: root/usr.sbin/cron/do_command.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2002-07-12 18:35:24 +0000
committermillert <millert@openbsd.org>2002-07-12 18:35:24 +0000
commit94cf10eec3f27d0008532f19a029586630f53640 (patch)
treecf20253fd72a559a084b3d6954f94ff93237b981 /usr.sbin/cron/do_command.c
parentMention that an interface can be a part of at most one bridge. (diff)
downloadwireguard-openbsd-94cf10eec3f27d0008532f19a029586630f53640.tar.xz
wireguard-openbsd-94cf10eec3f27d0008532f19a029586630f53640.zip
Do not collapse \\ -> \ in a command, the shell will be unhappy with
bare backslashes.
Diffstat (limited to 'usr.sbin/cron/do_command.c')
-rw-r--r--usr.sbin/cron/do_command.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/cron/do_command.c b/usr.sbin/cron/do_command.c
index bf95a32a762..e1d278e85fc 100644
--- a/usr.sbin/cron/do_command.c
+++ b/usr.sbin/cron/do_command.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: do_command.c,v 1.17 2002/07/08 18:11:02 millert Exp $ */
+/* $OpenBSD: do_command.c,v 1.18 2002/07/12 18:35:24 millert Exp $ */
/* Copyright 1988,1990,1993,1994 by Paul Vixie
* All rights reserved
*/
@@ -21,7 +21,7 @@
*/
#if !defined(lint) && !defined(LINT)
-static char const rcsid[] = "$OpenBSD: do_command.c,v 1.17 2002/07/08 18:11:02 millert Exp $";
+static char const rcsid[] = "$OpenBSD: do_command.c,v 1.18 2002/07/12 18:35:24 millert Exp $";
#endif
#include "cron.h"
@@ -120,7 +120,7 @@ child_process(entry *e, user *u) {
if (p != input_data)
*p = ch;
if (escaped) {
- if (ch == '%' || ch == '\\')
+ if (ch == '%')
*--p = ch;
escaped = FALSE;
continue;