diff options
| author | fuzzyray <fuzzyray@gentoo.org> | 2007-07-30 22:11:08 +0000 |
|---|---|---|
| committer | fuzzyray <fuzzyray@gentoo.org> | 2007-07-30 22:11:08 +0000 |
| commit | a6fc96c9411dc211a952bf4dc9dbf84a2ede7810 (patch) | |
| tree | 2909a8e9f7556eda3d2376c1928cb9d2430e4f69 /trunk/src | |
| parent | 037ff2e19923b1da8a517bafe39dc78d574d9366 (diff) | |
| download | gentoolkit-a6fc96c9411dc211a952bf4dc9dbf84a2ede7810.tar.gz | |
Add patch for find from bug #183657
svn path=/; revision=425
Diffstat (limited to 'trunk/src')
| -rwxr-xr-x | trunk/src/revdep-rebuild/revdep-rebuild-rewrite | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/trunk/src/revdep-rebuild/revdep-rebuild-rewrite b/trunk/src/revdep-rebuild/revdep-rebuild-rewrite index 58ff20b..a87d79f 100755 --- a/trunk/src/revdep-rebuild/revdep-rebuild-rewrite +++ b/trunk/src/revdep-rebuild/revdep-rebuild-rewrite @@ -105,22 +105,22 @@ find() { elif [[ $(command find "$0" -perm /u+x 2> /dev/null) ]]; then find() { a=(${@//-executable/-perm \/u+x}) - a=(${a//-writable/-perm \/u+w}) - a=(${a//-readable/-perm \/r+w}) + a=(${a[@]//-writable/-perm \/u+w}) + a=(${a[@]//-readable/-perm \/r+w}) command find "${a[@]}" } elif [[ $(command find "$0" -perm +u+x 2> /dev/null) ]]; then find() { a=(${@//-executable/-perm +u+x}) - a=(${a//-writable/-perm +u+w}) - a=(${a//-readable/-perm +r+w}) + a=(${a[@]//-writable/-perm +u+w}) + a=(${a[@]//-readable/-perm +r+w}) command find "${a[@]}" } else # Last resort find() { a=(${@//-executable/-exec test -x '{}' \;}) - a=(${a//-writable/-exec test -w '{}' \;}) - a=(${a//-readable/-exec test -r '{}' \;}) + a=(${a[@]//-writable/-exec test -w '{}' \;}) + a=(${a[@]//-readable/-exec test -r '{}' \;}) command find "${a[@]}" } fi |
