summaryrefslogtreecommitdiff
path: root/scripts/brp-compress
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2001-11-24 15:36:50 +0000
committerjbj <devnull@localhost>2001-11-24 15:36:50 +0000
commit82a945940d6ab360f5d6f7e7c80e145a08e8a0a3 (patch)
treea7db165fc5456ec989c9c04b3a12118bab402977 /scripts/brp-compress
parente98018b4d8730a80b2d320e6393f9129b2d13770 (diff)
downloadlibrpm-tizen-82a945940d6ab360f5d6f7e7c80e145a08e8a0a3.tar.gz
librpm-tizen-82a945940d6ab360f5d6f7e7c80e145a08e8a0a3.tar.bz2
librpm-tizen-82a945940d6ab360f5d6f7e7c80e145a08e8a0a3.zip
- protect brp-compress against /bin/ls output ambiguity (#56656,#56336).
CVS patchset: 5208 CVS date: 2001/11/24 15:36:50
Diffstat (limited to 'scripts/brp-compress')
-rwxr-xr-xscripts/brp-compress2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/brp-compress b/scripts/brp-compress
index de955b875..897a7657b 100755
--- a/scripts/brp-compress
+++ b/scripts/brp-compress
@@ -48,7 +48,7 @@ do
for f in `find $d -type l`
do
- l=`ls -l $f | awk '{ print $11 }' | sed -e 's/\.gz$//' -e 's/\.bz2$//' -e 's/\.Z$//'`
+ l=`ls -l $f | sed -e 's/.* -> //' -e 's/\.gz$//' -e 's/\.bz2$//' -e 's/\.Z$//'`
rm -f $f
b=`echo $f | sed -e 's/\.gz$//' -e 's/\.bz2$//' -e 's/\.Z$//'`
ln -sf $l$COMPRESS_EXT $b$COMPRESS_EXT