svn commit: r240789 - projects/mtree/contrib/mtree
Brooks Davis
brooks at FreeBSD.org
Fri Sep 21 20:03:14 UTC 2012
Author: brooks
Date: Fri Sep 21 20:03:13 2012
New Revision: 240789
URL: http://svn.freebsd.org/changeset/base/240789
Log:
Escape literal glob characters in files to avoid unexpected effects when
using the resulting spec file to update.
Obtained from: FreeBSD (phk)
Modified:
projects/mtree/contrib/mtree/spec.c
Modified: projects/mtree/contrib/mtree/spec.c
==============================================================================
--- projects/mtree/contrib/mtree/spec.c Fri Sep 21 19:30:36 2012 (r240788)
+++ projects/mtree/contrib/mtree/spec.c Fri Sep 21 20:03:13 2012 (r240789)
@@ -415,7 +415,8 @@ dump_nodes(const char *dir, NODE *root,
char *
vispath(const char *path)
{
- const char extra[] = { ' ', '\t', '\n', '\\', '#', '\0' };
+ const char extra[] = { ' ', '\t', '\n', '\\', '#', '*', '?', '[',
+ '#', '\0' };
static char pathbuf[4*MAXPATHLEN + 1];
strsvis(pathbuf, path, VIS_CSTYLE, extra);
More information about the svn-src-projects
mailing list