diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2022-01-29 06:17:05 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2022-01-29 17:59:50 +0100 |
commit | 730d3ea742358a7ffbb6ad5e024c33dc7a77a11c (patch) | |
tree | f23af3763d69c38c600589a7113975cc5e208b00 /source/a/rpm2tgz/patches/0010-no-absolute-filenames-extracting-cpio.patch | |
parent | 131d525a4725408e03739c47eab762874f77fd55 (diff) | |
download | current-730d3ea742358a7ffbb6ad5e024c33dc7a77a11c.tar.gz current-730d3ea742358a7ffbb6ad5e024c33dc7a77a11c.tar.xz |
Sat Jan 29 06:17:05 UTC 202220220129061705
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.
Diffstat (limited to 'source/a/rpm2tgz/patches/0010-no-absolute-filenames-extracting-cpio.patch')
-rw-r--r-- | source/a/rpm2tgz/patches/0010-no-absolute-filenames-extracting-cpio.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/a/rpm2tgz/patches/0010-no-absolute-filenames-extracting-cpio.patch b/source/a/rpm2tgz/patches/0010-no-absolute-filenames-extracting-cpio.patch new file mode 100644 index 000000000..779012238 --- /dev/null +++ b/source/a/rpm2tgz/patches/0010-no-absolute-filenames-extracting-cpio.patch @@ -0,0 +1,11 @@ +--- ./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 {} \; + ) |