From 62a8806940ca373fba36efa72a81505fec2f99a2 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 8 Sep 2014 22:24:26 +0700 Subject: system/d52: Fix broken patch. Signed-off-by: Willy Sudiarto Raharjo --- system/d52/20-fix-format-security-error.patch | 12 ------------ system/d52/20-fix-format-security-error.patch.gz | Bin 0 -> 272 bytes system/d52/d52.SlackBuild | 4 ++-- 3 files changed, 2 insertions(+), 14 deletions(-) delete mode 100644 system/d52/20-fix-format-security-error.patch create mode 100644 system/d52/20-fix-format-security-error.patch.gz (limited to 'system/d52') diff --git a/system/d52/20-fix-format-security-error.patch b/system/d52/20-fix-format-security-error.patch deleted file mode 100644 index c7ed896ade..0000000000 --- a/system/d52/20-fix-format-security-error.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -Nur -x '*.orig' -x '*~' d52-3.4.1/d52pass2.c d52-3.4.1.new/d52pass2.c ---- d52-3.4.1/d52pass2.c 2007-09-02 15:31:16.000000000 +0000 -+++ d52-3.4.1.new/d52pass2.c 2011-11-08 02:22:21.000000000 +0000 -@@ -932,7 +932,7 @@ - } - else if (dir < 0x80) - { -- kcnt += fprintf(fp, rbname[dir].dent); -+ kcnt += fprintf(fp, "%s",rbname[dir].dent); - dirregs[dir] |= 1; - } - else diff --git a/system/d52/20-fix-format-security-error.patch.gz b/system/d52/20-fix-format-security-error.patch.gz new file mode 100644 index 0000000000..7e949b06ff Binary files /dev/null and b/system/d52/20-fix-format-security-error.patch.gz differ diff --git a/system/d52/d52.SlackBuild b/system/d52/d52.SlackBuild index 19747701bd..35eb2071d3 100644 --- a/system/d52/d52.SlackBuild +++ b/system/d52/d52.SlackBuild @@ -8,7 +8,7 @@ PRGNAM=d52 VERSION=${VERSION:-3.4.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -57,7 +57,7 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; # Patch from Debian, fix minor security flaw -patch -p1 < $CWD/20-fix-format-security-error.patch +zcat $CWD/20-fix-format-security-error.patch.gz | patch -p1 make CFLAGS="$SLKCFLAGS" mkdir -p $PKG/usr/bin -- cgit v1.2.3-65-gdbad