[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>
This commit is contained in:
committed by
Linus Torvalds
parent
20d37ef672
commit
ffbe1addd5
@ -111,7 +111,7 @@ int main(int argc, char **argv)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (stat(ce->name, &st) < 0) {
|
||||
if (lstat(ce->name, &st) < 0) {
|
||||
if (errno != ENOENT) {
|
||||
perror(ce->name);
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user