git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [BUG] Directory probing for aliases
@ 2012-10-11 10:22 Vasiliy Yeremeyev
  2012-10-11 11:28 ` Andreas Schwab
  0 siblings, 1 reply; 2+ messages in thread
From: Vasiliy Yeremeyev @ 2012-10-11 10:22 UTC (permalink / raw)
  To: git

Hi,
Git aliases stop working when user doesn't have permissions to any
directory within $PATH list:

% git config alias.br branch
% git br
fatal: cannot exec 'git-br': Permission denied

Problem seems to be in directories probing:

execve("/usr/libexec/git-core/git-br", ["git-br"], [/* 76 vars */]) =
-1 ENOENT (No such file or directory)
execve("/home/vayerx/bin/git-br", ["git-br"], [/* 76 vars */]) = -1
ENOENT (No such file or directory)
execve("/usr/local/bin/git-br", ["git-br"], [/* 76 vars */]) = -1
ENOENT (No such file or directory)
execve("/usr/bin/git-br", ["git-br"], [/* 76 vars */]) = -1 ENOENT (No
such file or directory)
execve("/bin/git-br", ["git-br"], [/* 76 vars */]) = -1 ENOENT (No
such file or directory)
execve("/opt/bin/git-br", ["git-br"], [/* 76 vars */]) = -1 ENOENT (No
such file or directory)
execve("/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3/git-br", ["git-br"],
[/* 76 vars */]) = -1 ENOENT (No such file or directory)
execve("/usr/games/bin/git-br", ["git-br"], [/* 76 vars */]) = -1
EACCES (Permission denied)
write(2, "fatal: ", 7fatal: )      = 7
write(2, "cannot exec 'git-br': Permission"..., 39cannot exec
'git-br': Permission denied) = 39

(user doesn't have access to '/usr/games/bin' directory)
Everything works fine if '/usr/games/bin' is not listed in $PATH variable.
Standard/built-in git commands work fine regardless of  $PATH variable.

-- 
With Best Regards,
Vasiliy Yeremeyev

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [BUG] Directory probing for aliases
  2012-10-11 10:22 [BUG] Directory probing for aliases Vasiliy Yeremeyev
@ 2012-10-11 11:28 ` Andreas Schwab
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Schwab @ 2012-10-11 11:28 UTC (permalink / raw)
  To: Vasiliy Yeremeyev; +Cc: git

Vasiliy Yeremeyev <vayerx@gmail.com> writes:

> Git aliases stop working when user doesn't have permissions to any
> directory within $PATH list:
>
> % git config alias.br branch
> % git br
> fatal: cannot exec 'git-br': Permission denied

This has been fixed in git-1.7.10.1.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-11 11:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-11 10:22 [BUG] Directory probing for aliases Vasiliy Yeremeyev
2012-10-11 11:28 ` Andreas Schwab

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).