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