1 |
commit: 0b657f683f8498de59cf254dfb016bf313930b1d |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 1 22:51:25 2012 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 1 22:51:25 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=0b657f68 |
7 |
|
8 |
ebuild-helpers/sed: use -ef to check recursion |
9 |
|
10 |
--- |
11 |
bin/ebuild-helpers/sed | 4 ++-- |
12 |
1 files changed, 2 insertions(+), 2 deletions(-) |
13 |
|
14 |
diff --git a/bin/ebuild-helpers/sed b/bin/ebuild-helpers/sed |
15 |
index b21e856..cc44769 100755 |
16 |
--- a/bin/ebuild-helpers/sed |
17 |
+++ b/bin/ebuild-helpers/sed |
18 |
@@ -1,5 +1,5 @@ |
19 |
#!/bin/bash |
20 |
-# Copyright 2007 Gentoo Foundation |
21 |
+# Copyright 2007-2012 Gentoo Foundation |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
scriptpath=${BASH_SOURCE[0]} |
25 |
@@ -14,8 +14,8 @@ else |
26 |
IFS=":" |
27 |
|
28 |
for path in $PATH; do |
29 |
- [[ ${path}/${scriptname} == ${scriptpath} ]] && continue |
30 |
if [[ -x ${path}/${scriptname} ]]; then |
31 |
+ [[ ${path}/${scriptname} -ef ${scriptpath} ]] && continue |
32 |
exec ${path}/${scriptname} "$@" |
33 |
exit 0 |
34 |
fi |