From 4b635e7f91d0192dbb811986ae1f4eabffc43f76 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 27 Apr 2007 16:04:47 +0000 Subject: 23337: fix unmetafication for stat() of files in compctl --- Src/Zle/compctl.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Src') diff --git a/Src/Zle/compctl.c b/Src/Zle/compctl.c index 17c8083f0..81f11b423 100644 --- a/Src/Zle/compctl.c +++ b/Src/Zle/compctl.c @@ -2188,9 +2188,14 @@ gen_matches_files(int dirs, int execs, int all) if (!test) continue; if (!all) { + char *ums; + int umlen; /* We still have to check the file type, so prepare * * the path buffer by appending the filename. */ - strcpy(q, n); + ums = dupstring(n); + unmetafy(ums, ¨en); + memcpy(q, ums, umlen); + q[umlen] = '\0'; /* And do the stat. */ if (stat(p, &buf) < 0) continue; -- cgit 1.4.1