diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-07-12 18:35:25 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-07-12 18:35:25 +0000 |
commit | e86f92d9b46fa77240202a6b9ca93669ce062e41 (patch) | |
tree | f06916b2008e9e583b4a85c026fc897d73725bec /usr.sbin/cron | |
parent | 7b34761e1047a03afc484f3b751c1d377fe86da9 (diff) |
Do not collapse \\ -> \ in a command, the shell will be unhappy with
bare backslashes.
Diffstat (limited to 'usr.sbin/cron')
-rw-r--r-- | usr.sbin/cron/do_command.c | 6 |
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; |