Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Sep 2012 20:03:13 +0000 (UTC)
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r240789 - projects/mtree/contrib/mtree
Message-ID:  <201209212003.q8LK3DQq097787@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209212003.q8LK3DQq097787>