]> git.ipfire.org Git - thirdparty/git.git/commit
Do not check if getcwd() result begins with a slash.
authorJunio C Hamano <gitster@pobox.com>
Wed, 4 Jul 2007 19:45:42 +0000 (12:45 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 4 Jul 2007 19:45:42 +0000 (12:45 -0700)
commitf66a4d68d2066998605f5910c3c8dd1e4a25fc7f
treeec87b382245a4764a395cdf0f09f4c5c7c50652f
parent73616fd3d21ab5eefc912fa886ff8808e59d6e7e
Do not check if getcwd() result begins with a slash.

In user space, and for getcwd(), the check to see if the
resulting path begins with a '/' does not make sense.  This is
merely a mistake by Linus who is so used to code for the kernel,
where a d_path() return value pathname can be either a real
path, or something like "pipe:[8003]", and the difference is the
'/' at the beginning.

Pointed out by Dscho, Matthias Lederhofer and clarified by Linus.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
setup.c