Module Name: src Committed By: christos Date: Sun Oct 7 18:40:49 UTC 2012
Modified Files: src/usr.sbin/mtree: spec.c Log Message: disable encoding of globbing characters for now. To generate a diff of this commit: cvs rdiff -u -r1.83 -r1.84 src/usr.sbin/mtree/spec.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.sbin/mtree/spec.c diff -u src/usr.sbin/mtree/spec.c:1.83 src/usr.sbin/mtree/spec.c:1.84 --- src/usr.sbin/mtree/spec.c:1.83 Thu Oct 4 21:28:20 2012 +++ src/usr.sbin/mtree/spec.c Sun Oct 7 14:40:49 2012 @@ -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 @@ dump_nodes(const char *dir, NODE *root, 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);