public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in sys-fs/dosfstools/files: dosfstools-3.0.12-name-ext.patch
@ 2011-11-12 17:35 Mike Frysinger (vapier)
  0 siblings, 0 replies; only message in thread
From: Mike Frysinger (vapier) @ 2011-11-12 17:35 UTC (permalink / raw
  To: gentoo-commits

vapier      11/11/12 17:35:20

  Added:                dosfstools-3.0.12-name-ext.patch
  Log:
  Version bump. #371793 by Martin Mokrejš.
  
  (Portage version: 2.2.0_alpha72/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  sys-fs/dosfstools/files/dosfstools-3.0.12-name-ext.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/dosfstools/files/dosfstools-3.0.12-name-ext.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/dosfstools/files/dosfstools-3.0.12-name-ext.patch?rev=1.1&content-type=text/plain

Index: dosfstools-3.0.12-name-ext.patch
===================================================================
avoid fortify warnings about going beyond array bounds as the strcmp
assumes name[8] and ext[3] are together

--- src/check.c
+++ src/check.c
@@ -257,7 +257,7 @@
 {
     int i, spc, suspicious = 0;
     char *bad_chars = atari_format ? "*?\\/:" : "*?<>|\"\\/:";
-    unsigned char *name = file->dir_ent.name;
+    unsigned char *name = file->dir_ent.name_ext;
 
     /* Do not complain about (and auto-correct) the extended attribute files
      * of OS/2. */
--- src/dosfsck.h
+++ src/dosfsck.h
@@ -139,7 +139,12 @@
 };
 
 typedef struct {
+    union {
+    struct {
     __u8 name[8], ext[3];	/* name and extension */
+    };
+    __u8 name_ext[11];
+    };
     __u8 attr;			/* attribute bits */
     __u8 lcase;			/* Case for base and extension */
     __u8 ctime_ms;		/* Creation time, milliseconds */






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-11-12 17:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-12 17:35 [gentoo-commits] gentoo-x86 commit in sys-fs/dosfstools/files: dosfstools-3.0.12-name-ext.patch Mike Frysinger (vapier)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox