diff options
| author | Andrey Borzenkov <bor@users.sourceforge.net> | 2005-11-02 19:29:53 +0000 |
|---|---|---|
| committer | Andrey Borzenkov <bor@users.sourceforge.net> | 2005-11-02 19:29:53 +0000 |
| commit | 0acbed6ab03d41391175baa10d16cd35cc5bf140 (patch) | |
| tree | 771aa816bde25cfed766c19141e8a069d2394d9e /Src/Modules/stat.c | |
| parent | 21974: memory leak with tied parameters (diff) | |
| download | zsh-0acbed6ab03d41391175baa10d16cd35cc5bf140.tar zsh-0acbed6ab03d41391175baa10d16cd35cc5bf140.tar.gz zsh-0acbed6ab03d41391175baa10d16cd35cc5bf140.tar.bz2 zsh-0acbed6ab03d41391175baa10d16cd35cc5bf140.tar.lz zsh-0acbed6ab03d41391175baa10d16cd35cc5bf140.tar.xz zsh-0acbed6ab03d41391175baa10d16cd35cc5bf140.tar.zst zsh-0acbed6ab03d41391175baa10d16cd35cc5bf140.zip | |
21978: unmetafy file name
Diffstat (limited to 'Src/Modules/stat.c')
| -rw-r--r-- | Src/Modules/stat.c | 4 |
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); |
