aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2014-05-31 20:27:08 -0400
committerAnthony G. Basile <blueness@gentoo.org>2014-05-31 20:27:18 -0400
commit53a5c9cababc4a681c026b7ce445e29da4666d6c (patch)
treee093ac4e9ea43bc961d12fc611d7f8ac22683819 /misc
parentmisc/ldd: refactor all_dt_needed_paths for recursion (diff)
downloadelfix-53a5c9cababc4a681c026b7ce445e29da4666d6c.tar.gz
elfix-53a5c9cababc4a681c026b7ce445e29da4666d6c.tar.bz2
elfix-53a5c9cababc4a681c026b7ce445e29da4666d6c.zip
misc/install-xattr: remove argv[0]'s dirname check
We should not skip argv[0]'s canonical dirname == the path's canonical dirname because both install and install-xattr are usually installed in /usr/bin. We won't get into an infinite self-invocation because the basename is different.
Diffstat (limited to 'misc')
-rw-r--r--misc/install-xattr/install-xattr.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/misc/install-xattr/install-xattr.c b/misc/install-xattr/install-xattr.c
index 8de76db..c0c68f9 100644
--- a/misc/install-xattr/install-xattr.c
+++ b/misc/install-xattr/install-xattr.c
@@ -191,12 +191,6 @@ which(const char *mydir)
if (!candir)
goto skip;
- /* If argv[0]'s canonical dirname == the path's canonical dirname, then we
- * skip this path otheriwise we get into an infinite self-invocation.
- */
- if (!strcmp(mycandir, candir))
- goto skip;
-
file = path_join(candir, "install");
/* If the file exists and is either a regular file or sym link,