From bf192e3b0632737384709b47c0a662c844a74a6e Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Wed, 21 Jan 2009 18:40:47 +0000 Subject: [PATCH] - fixed off-by-two error in unix_name function (#480112) --- mtools.spec | 7 ++++++- mtools400-rh480112.patch | 12 ++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 mtools400-rh480112.patch diff --git a/mtools.spec b/mtools.spec index a3602db..085d682 100644 --- a/mtools.spec +++ b/mtools.spec @@ -1,7 +1,7 @@ Summary: Programs for accessing MS-DOS disks without mounting the disks Name: mtools Version: 4.0.0 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2+ Group: Applications/System Source: http://mtools.linux.lu/mtools-%{version}.tar.bz2 @@ -9,6 +9,7 @@ Url: http://mtools.linux.lu/ Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Patch0: mtools-3.9.6-config.patch Patch3: mtools-3.9.7-bigdisk.patch +Patch4: mtools400-rh480112.patch Requires: info BuildRequires: texinfo, autoconf @@ -25,6 +26,7 @@ Mtools should be installed if you need to use MS-DOS disks %setup -q -n %{name}-%{version} %patch0 -p1 %patch3 -p1 -b .big +%patch4 -p1 -b .rh480112 # Correct system paths for all in mtools.5 mtools.texi; do @@ -69,6 +71,9 @@ fi %{_infodir}/%{name}.info.gz %changelog +* Wed Jan 21 2009 Adam Tkac 4.0.0-3 +- fixed off-by-two error in unix_name function (#480112) + * Mon Jan 12 2009 Adam Tkac 4.0.0-2 - don't ship infodir/dir.gz (#478322) diff --git a/mtools400-rh480112.patch b/mtools400-rh480112.patch new file mode 100644 index 0000000..c266a9e --- /dev/null +++ b/mtools400-rh480112.patch @@ -0,0 +1,12 @@ +diff -up mtools-4.0.0/file_name.c.rh480112 mtools-4.0.0/file_name.c +--- mtools-4.0.0/file_name.c.rh480112 2009-01-21 19:35:08.000000000 +0100 ++++ mtools-4.0.0/file_name.c 2009-01-21 19:35:36.000000000 +0100 +@@ -145,7 +145,7 @@ void dos_name(doscp_t *toDos, const char + wchar_t *unix_name(doscp_t *dosCp, + const char *base, const char *ext, char Case, wchar_t *ret) + { +- char *s, tname[9], text[4], ans[11]; ++ char *s, tname[9], text[4], ans[13]; + int i; + + strncpy(tname, base, 8);