#! /bin/sh /usr/share/dpatch/dpatch-run ## 05_CVE-2006-1269.dpatch by Alec Berryman ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=183426 [ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts patch_opts="${patch_opts:--f --no-backup-if-mismatch ${2:+-d $2}}" if [ $# -lt 1 ]; then echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" exit 1 fi case "$1" in -patch) patch $patch_opts -p1 < $0;; -unpatch) patch $patch_opts -p1 -R < $0;; *) echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" exit 1;; esac exit 0 @DPATCH@ diff -urNad zoo-2.10~/parse.c zoo-2.10/parse.c --- zoo-2.10~/parse.c 1991-07-05 17:00:00.000000000 +0100 +++ zoo-2.10/parse.c 2006-05-18 14:16:32.000000000 +0100 @@ -39,7 +39,7 @@ char *namep; /* points to relevant part of tempname */ char *p; - strcpy (tempname, fname); + strncpy (tempname, fname, LFNAMESIZE); #ifdef DEBUG printf ("parse: supplied name is [%s].\n", tempname);