pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/mtools Fix fencepost error when the filename ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/12cdf241df4c
branches:  trunk
changeset: 519987:12cdf241df4c
user:      is <is%pkgsrc.org@localhost>
date:      Fri Oct 13 13:04:31 2006 +0000

description:
Fix fencepost error when the filename length is N*13 characters.
Contributed by Michael Eriksson in PR 25439; reviewed by Joerg
Sonnenberger.

diffstat:

 sysutils/mtools/distinfo         |   4 +++-
 sysutils/mtools/patches/patch-ai |  13 +++++++++++++
 sysutils/mtools/patches/patch-aj |  14 ++++++++++++++
 3 files changed, 30 insertions(+), 1 deletions(-)

diffs (50 lines):

diff -r bb39a8742ea2 -r 12cdf241df4c sysutils/mtools/distinfo
--- a/sysutils/mtools/distinfo  Fri Oct 13 12:56:01 2006 +0000
+++ b/sysutils/mtools/distinfo  Fri Oct 13 13:04:31 2006 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.10 2006/03/25 19:50:20 joerg Exp $
+$NetBSD: distinfo,v 1.11 2006/10/13 13:04:31 is Exp $
 
 SHA1 (mtools-3.9.10.tar.bz2) = f916e54e1bff599946bb1e72601f99096ea79456
 RMD160 (mtools-3.9.10.tar.bz2) = 566d3f3e3c6201cfe750ba05826f8013778f90b9
@@ -11,3 +11,5 @@
 SHA1 (patch-af) = 7bb55c2c48987043b18532e56e4236d22342ca60
 SHA1 (patch-ag) = 9f8b3777ba34d986580af3fc9d06b84e5548e6fa
 SHA1 (patch-ah) = b43f06d990e029c753659b792c4b8ec17bfbffe5
+SHA1 (patch-ai) = 8cf7cd793645ad16120faf0edd1cff2f7cb50c1c
+SHA1 (patch-aj) = 176ebd3c80b9daa65765e939accbbfe31af92b96
diff -r bb39a8742ea2 -r 12cdf241df4c sysutils/mtools/patches/patch-ai
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/mtools/patches/patch-ai  Fri Oct 13 13:04:31 2006 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ai,v 1.1 2006/10/13 13:04:31 is Exp $
+
+--- vfat.c.orig        2005-02-13 15:40:17.000000000 +0100
++++ vfat.c
+@@ -238,7 +238,7 @@ int write_vfat(Stream_t *Dir, char *shor
+               printf("Wrote checksum=%d for shortname %s.\n", 
+                      vse->sum,shortname);
+ #endif
+-              num_vses = strlen(longname)/VSE_NAMELEN + 1;
++              num_vses = (strlen(longname) + VSE_NAMELEN - 1)/VSE_NAMELEN;
+               for (vse_id = num_vses; vse_id; --vse_id) {
+                       int end = 0;
+                       
diff -r bb39a8742ea2 -r 12cdf241df4c sysutils/mtools/patches/patch-aj
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/mtools/patches/patch-aj  Fri Oct 13 13:04:31 2006 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-aj,v 1.1 2006/10/13 13:04:31 is Exp $
+
+--- mk_direntry.c.orig 2005-02-28 00:17:45.000000000 +0100
++++ mk_direntry.c
+@@ -227,7 +227,8 @@ static void clear_scan(char *longname, i
+       s->free_end = s->got_slots = s->free_start = 0;
+ 
+       if (use_longname & 1)
+-                s->size_needed = 2 + (strlen(longname)/VSE_NAMELEN);
++                s->size_needed = 1 +
++                  (strlen(longname) + VSE_NAMELEN - 1)/VSE_NAMELEN;
+       else
+                 s->size_needed = 1;
+ }



Home | Main Index | Thread Index | Old Index