diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-01-31 23:08:50 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-01-31 23:08:50 +0000 |
commit | 51f4348073522b19d6315d911db461119527fe75 (patch) | |
tree | 0763049e3d798d01f02b725738c9530843de7ca0 /sbin | |
parent | 7e3dfcbe41ca1ebb26347bd49dc3dd34d9e509d4 (diff) |
Use GLOB_NOESCAPE flag with glob(3) to preserve old behavior now that
glob(3) accepts backslash quoting by default.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/restore/interactive.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/restore/interactive.c b/sbin/restore/interactive.c index 80aace5fc74..f37c0d6eccb 100644 --- a/sbin/restore/interactive.c +++ b/sbin/restore/interactive.c @@ -1,4 +1,4 @@ -/* $OpenBSD: interactive.c,v 1.5 1997/08/06 01:45:26 deraadt Exp $ */ +/* $OpenBSD: interactive.c,v 1.6 1998/01/31 23:08:49 millert Exp $ */ /* $NetBSD: interactive.c,v 1.10 1997/03/19 08:42:52 lukem Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)interactive.c 8.3 (Berkeley) 9/13/94"; #else -static char rcsid[] = "$OpenBSD: interactive.c,v 1.5 1997/08/06 01:45:26 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: interactive.c,v 1.6 1998/01/31 23:08:49 millert Exp $"; #endif #endif /* not lint */ @@ -376,7 +376,7 @@ getnext: (void)strcat(output, rawname); canon(output, name); } - if (glob(name, GLOB_ALTDIRFUNC, NULL, &ap->glob) < 0) + if (glob(name, GLOB_ALTDIRFUNC | GLOB_NOESCAPE, NULL, &ap->glob) < 0) fprintf(stderr, "%s: out of memory\n", ap->cmd); if (ap->glob.gl_pathc == 0) return; |