shared/install: skip unnecessary chasing of symlinks in disable
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 16 Mar 2022 08:28:46 +0000 (09:28 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 29 Mar 2022 14:17:56 +0000 (16:17 +0200)
commit7a6c73dabf6451d6ef22d0cdfbb1749a77450d5b
tree77effeba453688e608e5d73af18c0a6e408d533a
parent85516075a24fd2f1316575570d7d5f5a37f43dbd
shared/install: skip unnecessary chasing of symlinks in disable

We use the symlink source name and destination names to decide whether to remove
the symlink. But if the source name is enough to decide to remove the symlink,
we'd still look up the destination for no good reason. This is a slow operation,
let's skip it.
src/shared/install.c