slackware-current/source/a/rpm2tgz/patches/0010-no-absolute-filenames-extracting-cpio.patch
Patrick J Volkerding 730d3ea742 Sat Jan 29 06:17:05 UTC 2022
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.
2022-01-29 17:59:50 +01:00

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 {} \;
)