mirror of
git://slackware.nl/current.git
synced 2024-12-28 09:59:53 +01:00
730d3ea742
a/rpm2tgz-1.2.2-x86_64-5.txz: Rebuilt. rpm2targz: when extracting the cpio archive from inside the RPM, use --no-absolute-filenames to protect against a poorly made RPM scribbling all over system files/directories. Thanks to Sl4ck3ver. Support -i option to ignore non-zero exit value from rpm2cpio. This allows repackaging some malformed RPMs. Thanks to ricky_cardo for the sample malformed RPM.
11 lines
368 B
Diff
11 lines
368 B
Diff
--- ./rpm2targz.orig 2022-01-28 23:26:57.686681986 -0600
|
|
+++ ./rpm2targz 2022-01-28 23:28:18.872683802 -0600
|
|
@@ -175,7 +175,7 @@
|
|
fi
|
|
mkdir -p $DEST
|
|
( cd $DEST
|
|
- cpio -i -m -d < $ofn 1> /dev/null 2> /dev/null
|
|
+ cpio -i -m -d --no-absolute-filenames < $ofn 1> /dev/null 2> /dev/null
|
|
rm -f $ofn
|
|
find . -type d -perm 700 -exec chmod 755 {} \;
|
|
)
|