Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/mtree disable encoding of globbing characters for now.



details:   https://anonhg.NetBSD.org/src/rev/55fc3d207373
branches:  trunk
changeset: 781923:55fc3d207373
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Oct 07 18:40:49 2012 +0000

description:
disable encoding of globbing characters for now.

diffstat:

 usr.sbin/mtree/spec.c |  15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 4bba7abfc78b -r 55fc3d207373 usr.sbin/mtree/spec.c
--- a/usr.sbin/mtree/spec.c     Sun Oct 07 17:00:20 2012 +0000
+++ b/usr.sbin/mtree/spec.c     Sun Oct 07 18:40:49 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: spec.c,v 1.83 2012/10/05 01:28:20 christos Exp $       */
+/*     $NetBSD: spec.c,v 1.84 2012/10/07 18:40:49 christos Exp $       */
 
 /*-
  * Copyright (c) 1989, 1993
@@ -67,7 +67,7 @@
 #if 0
 static char sccsid[] = "@(#)spec.c     8.2 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: spec.c,v 1.83 2012/10/05 01:28:20 christos Exp $");
+__RCSID("$NetBSD: spec.c,v 1.84 2012/10/07 18:40:49 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -415,8 +415,15 @@
 char *
 vispath(const char *path)
 {
-       const char extra[] = { ' ', '\t', '\n', '\\', '#', '*', '?', '[',
-           '#', '\0' };
+       const char extra[] = { ' ', '\t', '\n', '\\', '#',
+#ifdef notyet
+           /*
+            * We don't encode the globbing characters yet, because they
+            * get encoded as \c and strunvis fails to decode them
+            */
+           '*', '?', '[',
+#endif
+           '\0' };
        static char pathbuf[4*MAXPATHLEN + 1];
 
        strsvis(pathbuf, path, VIS_CSTYLE, extra);



Home | Main Index | Thread Index | Old Index