summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorewt <devnull@localhost>1997-03-04 02:07:12 +0000
committerewt <devnull@localhost>1997-03-04 02:07:12 +0000
commite91eaa89c9f71dc223562350a8421d775227beb7 (patch)
treee60d81ba00c0d24169e10e259fb3c32840c75df6
parent1874a35403f88f592f31d07a243102d94ab10827 (diff)
downloadrpm-e91eaa89c9f71dc223562350a8421d775227beb7.tar.gz
rpm-e91eaa89c9f71dc223562350a8421d775227beb7.tar.bz2
rpm-e91eaa89c9f71dc223562350a8421d775227beb7.zip
made xargs more resilant to quoting characters in filenames
CVS patchset: 1466 CVS date: 1997/03/04 02:07:12
-rw-r--r--autodeps/linux.req2
-rw-r--r--autodeps/solaris.req2
2 files changed, 2 insertions, 2 deletions
diff --git a/autodeps/linux.req b/autodeps/linux.req
index 3f8c209db..f4914aca8 100644
--- a/autodeps/linux.req
+++ b/autodeps/linux.req
@@ -8,5 +8,5 @@ filelist=`xargs -r file | fgrep executable | cut -d: -f1 `
for f in $filelist; do
ldd $f | awk '/=>/ { print $1 }'
-done | sort -u | xargs -r -n 1 basename | sort -u
+done | sort -u | | sed "s/['\"]/\\\&/g" | xargs -r -n 1 basename | sort -u
diff --git a/autodeps/solaris.req b/autodeps/solaris.req
index 3f8c209db..f4914aca8 100644
--- a/autodeps/solaris.req
+++ b/autodeps/solaris.req
@@ -8,5 +8,5 @@ filelist=`xargs -r file | fgrep executable | cut -d: -f1 `
for f in $filelist; do
ldd $f | awk '/=>/ { print $1 }'
-done | sort -u | xargs -r -n 1 basename | sort -u
+done | sort -u | | sed "s/['\"]/\\\&/g" | xargs -r -n 1 basename | sort -u