summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2015-01-04 19:05:39 +0000
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2015-01-04 19:05:39 +0000
commitf9cba834cdcd5f35d21768b6412577236adc5ed2 (patch)
treec26add38f43da0510aaad6b4899ea4be3b119aef
parentaa622e08014744c54e585e34613c2572a27f0f4b (diff)
downloadzsh-f9cba834cdcd5f35d21768b6412577236adc5ed2.tar.gz
zsh-f9cba834cdcd5f35d21768b6412577236adc5ed2.zip
34091: typo with "whence -s" expansions
-rw-r--r--ChangeLog2
-rw-r--r--Src/utils.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index d8918acb3..ca5d401ab 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2015-01-04 Peter Stephenson <p.w.stephenson@ntlworld.com>
+ * 34091: Src/utils.c: typo with "whence -s" expansions.
+
* users/19682: Doc/Zsh/builtins.yo: document recommended use of
whence.
diff --git a/Src/utils.c b/Src/utils.c
index 2b2a815a8..959df9ab7 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -795,12 +795,12 @@ xsymlinks(char *s, int full)
}
if (*xbuf3 == '/') {
strcpy(xbuf, "");
- if (xsymlinks(xbuf3 + 1, 0) < 0)
+ if (xsymlinks(xbuf3 + 1, 1) < 0)
ret = -1;
else
xbuflen = strlen(xbuf);
} else
- if (xsymlinks(xbuf3, 0) < 0)
+ if (xsymlinks(xbuf3, 1) < 0)
ret = -1;
else
xbuflen = strlen(xbuf);