]> git.ipfire.org Git - thirdparty/git.git/commit - read-cache.c
[PATCH] fix compare symlink against readlink not data
authorKay Sievers <kay.sievers@vrfy.org>
Fri, 6 May 2005 13:45:01 +0000 (15:45 +0200)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 6 May 2005 15:41:12 +0000 (08:41 -0700)
commitffbe1addd5a5b7b7c2f987625a5aa6c1d22e3705
tree68127262b118858d0dc4d898a3b89d78be6180cf
parent20d37ef67286e5131d2333d7b4662bc70f9d4937
[PATCH] fix compare symlink against readlink not data

Fix update-cache to compare the blob of a symlink against the link-target
and not the file it points to. Also ignore all permissions applied to
links.

Thanks to Greg for recognizing this while he added our list of symlinks
back to the udev repository.

Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
diff-files.c
read-cache.c
update-cache.c