diff options
| author | matt <matt@NetBSD.org> | 2003-01-26 07:07:31 +0000 |
|---|---|---|
| committer | matt <matt@NetBSD.org> | 2003-01-26 07:07:31 +0000 |
| commit | 3e5306bedfb997deba407dad45d78caffec4f814 (patch) | |
| tree | 2947cefd4cacefe3c470ede07c7860983099c368 /usr.bin/find/function.c | |
| parent | f344b59521fc677a056fd480b0cf80929422a53d (diff) | |
With -printx also qoute $ and ` (since they are shell metacharaters).
Diffstat (limited to 'usr.bin/find/function.c')
| -rw-r--r-- | usr.bin/find/function.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/find/function.c b/usr.bin/find/function.c index d693078569e..36d1eda1776 100644 --- a/usr.bin/find/function.c +++ b/usr.bin/find/function.c @@ -1,4 +1,4 @@ -/* $NetBSD: function.c,v 1.41 2002/09/27 15:56:27 provos Exp $ */ +/* $NetBSD: function.c,v 1.42 2003/01/26 07:07:31 matt Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "from: @(#)function.c 8.10 (Berkeley) 5/4/95"; #else -__RCSID("$NetBSD: function.c,v 1.41 2002/09/27 15:56:27 provos Exp $"); +__RCSID("$NetBSD: function.c,v 1.42 2003/01/26 07:07:31 matt Exp $"); #endif #endif /* not lint */ @@ -1292,6 +1292,7 @@ f_printx(plan, entry) for (cp = entry->fts_path; *cp; cp++) { if (*cp == '\'' || *cp == '\"' || *cp == ' ' || + *cp == '$' || *cp == '`' || *cp == '\t' || *cp == '\n' || *cp == '\\') fputc('\\', stdout); |
