summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/vis.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-10-30 12:41:50 +0000
committerphk <phk@FreeBSD.org>2003-10-30 12:41:50 +0000
commitb46a64109693adca86ab54390daf9851f8aeac49 (patch)
treeae4624cdfa9d87e8e6305bc2d7d571d1345b0b51 /lib/libc/gen/vis.c
parentbb5c5b4c57f686cbf367209f05c977153e3d1cbe (diff)
downloadFreeBSD-src-b46a64109693adca86ab54390daf9851f8aeac49.zip
FreeBSD-src-b46a64109693adca86ab54390daf9851f8aeac49.tar.gz
Add '#' to the characters VIS_GLOB encodes. This fixes a bug in mtree.
Diffstat (limited to 'lib/libc/gen/vis.c')
-rw-r--r--lib/libc/gen/vis.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/gen/vis.c b/lib/libc/gen/vis.c
index 4f594eb..1d7e860 100644
--- a/lib/libc/gen/vis.c
+++ b/lib/libc/gen/vis.c
@@ -71,7 +71,8 @@ vis(dst, c, flag, nextc)
}
}
- if ((flag & VIS_GLOB) && (c == '*' || c == '?' || c == '['))
+ if ((flag & VIS_GLOB) &&
+ (c == '*' || c == '?' || c == '[' || c == '#'))
;
else if (isgraph(c) ||
((flag & VIS_SP) == 0 && c == ' ') ||
OpenPOWER on IntegriCloud