Skip to content
Permalink
Browse files

39104: do not hash relative paths in findcmd()

  • Loading branch information
bartschaefer committed Aug 26, 2016
1 parent 317c96b commit b312abc93b3b8eae8feb4a9884b22f519a137c7f
Showing with 5 additions and 1 deletion.
  1. +4 −0 ChangeLog
  2. +1 −1 Src/exec.c
@@ -1,3 +1,7 @@
2016-08-26 Barton E. Schaefer <schaefer@zsh.org>

* 39104: Src/exec.c: do not hash relative paths in findcmd()

2016-08-25 Daniel Shahaf <d.s@daniel.shahaf.name>

* 39102: Completion/Unix/Command/_git: __git_recent_branches:
@@ -772,7 +772,7 @@ findcmd(char *arg0, int docopy)
Cmdnam cn;

cn = (Cmdnam) cmdnamtab->getnode(cmdnamtab, arg0);
if (!cn && isset(HASHCMDS))
if (!cn && isset(HASHCMDS) && !isrelative(arg0))
cn = hashcmd(arg0, path);
if ((int) strlen(arg0) > PATH_MAX)
return NULL;

0 comments on commit b312abc

Please sign in to comment.
You can’t perform that action at this time.