1 |
commit: 53a5c9cababc4a681c026b7ce445e29da4666d6c |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 1 00:27:08 2014 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 1 00:27:18 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=53a5c9ca |
7 |
|
8 |
misc/install-xattr: remove argv[0]'s dirname check |
9 |
|
10 |
We should not skip argv[0]'s canonical dirname == the path's canonical dirname |
11 |
because both install and install-xattr are usually installed in /usr/bin. We |
12 |
won't get into an infinite self-invocation because the basename is different. |
13 |
|
14 |
--- |
15 |
misc/install-xattr/install-xattr.c | 6 ------ |
16 |
1 file changed, 6 deletions(-) |
17 |
|
18 |
diff --git a/misc/install-xattr/install-xattr.c b/misc/install-xattr/install-xattr.c |
19 |
index 8de76db..c0c68f9 100644 |
20 |
--- a/misc/install-xattr/install-xattr.c |
21 |
+++ b/misc/install-xattr/install-xattr.c |
22 |
@@ -191,12 +191,6 @@ which(const char *mydir) |
23 |
if (!candir) |
24 |
goto skip; |
25 |
|
26 |
- /* If argv[0]'s canonical dirname == the path's canonical dirname, then we |
27 |
- * skip this path otheriwise we get into an infinite self-invocation. |
28 |
- */ |
29 |
- if (!strcmp(mycandir, candir)) |
30 |
- goto skip; |
31 |
- |
32 |
file = path_join(candir, "install"); |
33 |
|
34 |
/* If the file exists and is either a regular file or sym link, |