summary refs log tree commit diff
path: root/Src/Modules
diff options
context:
space:
mode:
authorAndrey Borzenkov <bor@users.sourceforge.net>2005-11-02 19:29:53 +0000
committerAndrey Borzenkov <bor@users.sourceforge.net>2005-11-02 19:29:53 +0000
commit0acbed6ab03d41391175baa10d16cd35cc5bf140 (patch)
tree771aa816bde25cfed766c19141e8a069d2394d9e /Src/Modules
parent337b9dba1fe271eda69e3437c8632f33433bd1e3 (diff)
downloadzsh-0acbed6ab03d41391175baa10d16cd35cc5bf140.tar.gz
zsh-0acbed6ab03d41391175baa10d16cd35cc5bf140.tar.xz
zsh-0acbed6ab03d41391175baa10d16cd35cc5bf140.zip
21978: unmetafy file name
Diffstat (limited to 'Src/Modules')
-rw-r--r--Src/Modules/stat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Modules/stat.c b/Src/Modules/stat.c
index 9f3d4a6de..188b37fc7 100644
--- a/Src/Modules/stat.c
+++ b/Src/Modules/stat.c
@@ -532,8 +532,8 @@ bin_stat(char *name, char **args, Options ops, UNUSED(int func))
     for (; OPT_ISSET(ops,'f') || *args; args++) {
 	char outbuf[PATH_MAX + 9]; /* "link   " + link name + NULL */
 	int rval = OPT_ISSET(ops,'f') ? fstat(fd, &statbuf) :
-	    OPT_ISSET(ops,'L') ? lstat(*args, &statbuf) :
-	    stat(*args, &statbuf);
+	    OPT_ISSET(ops,'L') ? lstat(unmeta(*args), &statbuf) :
+	    stat(unmeta(*args), &statbuf);
 	if (rval) {
 	    if (OPT_ISSET(ops,'f'))
 		sprintf(outbuf, "%d", fd);