commit:     53a5c9cababc4a681c026b7ce445e29da4666d6c
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sun Jun  1 00:27:08 2014 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Jun  1 00:27:18 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=53a5c9ca

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.

---
 misc/install-xattr/install-xattr.c | 6 ------
 1 file changed, 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,

Reply via email to