Bug? Bad permissions in $PATH breaks Git aliases

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm not sure if this should be considered a bug or not, but I've noticed that
when my $PATH contains an inaccessible directory, Git fails to execute aliases.
For example:

git config alias.l log
git l
# works fine
PATH=boguspath:$PATH
mkdir boguspath
chmod 000 boguspath
git l
# fatal: cannot exec 'git-l': Permission denied

I lean towards calling it a bug, since my shell doesn't seem to care if there
are inaccessible directories in my $PATH.  It just ignores them, and I think Git
ought to do the same.

James
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]