From a6fc96c9411dc211a952bf4dc9dbf84a2ede7810 Mon Sep 17 00:00:00 2001 From: fuzzyray Date: Mon, 30 Jul 2007 22:11:08 +0000 Subject: [PATCH] Add patch for find from bug #183657 svn path=/; revision=425 --- trunk/src/revdep-rebuild/revdep-rebuild-rewrite | 12 ++++++------ 1 file 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 -- 2.26.2