Imported Upstream version 3.0.27
[platform/upstream/dosfstools.git] / ChangeLog
1 commit e2c8f06 (HEAD, origin/master, master)
2 Author: Andreas Bombe <aeb@debian.org>
3 Date:   Wed Nov 12 00:22:17 2014 +0100
4
5     fsck.fat: Don't print version string every time -v is encountered
6     
7     Remove the printing of the version string every time -v is seen during
8     command line parsing in fsck.fat. The version string is printed anyway
9     before opening the filesystem device/image.
10     
11     Signed-off-by: Andreas Bombe <aeb@debian.org>
12
13 commit 82076b6
14 Author: Andreas Bombe <aeb@debian.org>
15 Date:   Tue Nov 11 23:25:30 2014 +0100
16
17     Fix attempt to rename root dir in fsck due to uninitialized fields
18     
19     When add_file() is called with offset 0, it will construct a DIR_ENT for
20     the root directory instead of reading the contents from the filesystem.
21     It did not initialize the whole DIR_ENT on the stack, just select
22     values.
23     
24     In particular, the lcase field was left with an undefined value. If
25     that value happened to include the FAT_NO_83NAME bit, the "neither long
26     nor short file name" check in bad_name() added in 3.0.26 would trigger
27     and cause an attempt to rename the entry (which is not possible).
28     Example run:
29     
30         $ /sbin/fsck.fat -y bad.img
31         fsck.fat 3.0.26 (2014-03-07)
32         /
33           Bad short file name ().
34           Auto-renaming it.
35           Renamed to
36         bad.img: 14 files, 19388/403266 clusters
37     
38     This commit changes the initialization zeroize the whole struct before
39     setting individual fields. Thanks to AlexisM, who found the cause and
40     posted a patch on the Debian bug http://bugs.debian.org/764992 .
41     
42     Signed-off-by: Andreas Bombe <aeb@debian.org>
43
44 commit c24ecb6
45 Author: Andreas Bombe <aeb@debian.org>
46 Date:   Tue Nov 11 22:49:50 2014 +0100
47
48     Support long file names in volume labeling code
49     
50     The code to find the volume label directory entry in find_volume_de()
51     did not consider long file names so far. Directory entries that make up
52     long file names have four attribute bits set, including the "volume"
53     bit.
54     
55     This caused the code to mistake a directory entry that is part of a
56     long file name as the volume name entry. If such an entry is found
57     first, fatlabel would print garbage when asked to display the label and
58     mangle the long file name when asked to set it. The latter would lead
59     to the loss of the long file name and require a fsck to clean up.
60     
61     Change so that the set of attributes equal that of LFN entries will no
62     langer match as a volume label.
63     
64     Signed-off-by: Andreas Bombe <aeb@debian.org>
65
66 commit 1646f6e (tag: v3.0.26)
67 Author: Daniel Baumann <mail@daniel-baumann.ch>
68 Date:   Fri Mar 7 18:40:13 2014 +0100
69
70     Releasing version 3.0.26.
71     
72     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
73
74 commit 6893c45
75 Author: Dir Lotter <dirk.lotter@siemens.com>
76 Date:   Fri Mar 7 18:25:39 2014 +0100
77
78     Fix "odd" files created by frequent power-loss.
79     
80     After running many power losses the filesystem can degrate, containing "odd"
81     files making the filesystem corrupt that could not be solved by fsck:
82     
83       * file was not visible in a ls -l
84       * ls -i reported a "invalid file name" on the console
85       * a test program with diropen/dirread showed the file, a stat on this file
86         failed
87       * file was not accessible and could not be deleted
88     
89     After digging into the code we found why fsck didn't repair the file system:
90     One thing was we don't have short filenames. Another issue was that the LFN
91     pointer was set to NULL and so it looked like we didn't have short and long
92     filenames.
93     
94     Our patch of check.c includes:
95     
96       * returns 1 from function bad_name() in case no short and no long filename
97         exist
98       * auto_rename() and rename_file() got a special handling for the case no short
99         file name exist:
100         - it enables the short file name (we think here was a weakness of the old
101           code: it changed the short filename but didn't enabled it in the
102           file->dir_ent.lcase entry)
103         - it reset all attributes except ATTR_DIR and ATTR_VOLUME
104     
105     This solved our problem pretty well.
106     
107     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
108
109 commit 621e11f
110 Author: Natanael Copa <ncopa@alpinelinux.org>
111 Date:   Sat Feb 8 18:53:30 2014 +0100
112
113     Build fixes for musl libc.
114     
115     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
116
117 commit 52588b7 (tag: v3.0.25)
118 Author: Daniel Baumann <mail@daniel-baumann.ch>
119 Date:   Fri Jan 17 07:11:11 2014 +0100
120
121     Releasing version 3.0.25.
122     
123     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
124
125 commit acf64ae
126 Author: Daniel Baumann <mail@daniel-baumann.ch>
127 Date:   Fri Jan 17 07:09:54 2014 +0100
128
129     Updating copyright headers for 2014.
130     
131     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
132
133 commit 21fe921
134 Author: Andrew Tridgell <tridge@samba.org>
135 Date:   Tue Jan 14 09:37:51 2014 +1100
136
137     Fixed remaining 64 bit build warnings.
138     
139     Some of these may be real bugs.
140     
141     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
142
143 commit 9e3a2b1
144 Author: Andrew Tridgell <tridge@samba.org>
145 Date:   Tue Jan 14 09:25:28 2014 +1100
146
147     Prevent corruption of FAT during fsck on 64 bit platforms.
148     
149     unsigned long is 64 bit on x86-64, which means set_fat was writing two
150     entries, which corrupts the next entry. This can cause loss of data in
151     another file.
152     
153     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
154
155 commit 0d2c9bc (tag: v3.0.24)
156 Author: Daniel Baumann <mail@daniel-baumann.ch>
157 Date:   Sat Nov 23 10:36:55 2013 +0100
158
159     Releasing version 3.0.24.
160     
161     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
162
163 commit 55bd7b7
164 Author: Jaroslav Skarvada <jskarvad@redhat.com>
165 Date:   Sat Nov 23 10:34:48 2013 +0100
166
167     Fixed dosfsck on big endian platforms (Resolves: rhbz#1029695).
168     
169     It seems there is problem in the double conversion on big endians.
170     The first conversion is done by the explicit conversion to __u16
171     in the GET_UNALIGNED_W macro, so the secondary conversion by le16toh
172     seems to be redundant (and wrong).
173     
174     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
175
176 commit 6debb4a (tag: v3.0.23)
177 Author: Daniel Baumann <mail@daniel-baumann.ch>
178 Date:   Tue Oct 15 08:05:46 2013 +0200
179
180     Releasing version 3.0.23.
181     
182     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
183
184 commit 07d85ff
185 Author: Daniel Baumann <mail@daniel-baumann.ch>
186 Date:   Tue Oct 15 08:04:11 2013 +0200
187
188     Reformating mkfs.fat manpage.
189     
190     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
191
192 commit 137552f
193 Author: Michael Shigorin <mike@altlinux.org>
194 Date:   Tue Oct 15 01:29:33 2013 +0400
195
196     Fixing "Fixing default sectors per cluster for FAT32" for UEFI.
197     
198     FAT32 "EFI System Partition" is basically required for UEFI boot;
199     commit ge048a8d broke that for me with both virtualbox-4.2 and
200     real hardware (ASUS C60M1-I to be exact) given ~250Mb filesystem.
201     
202     This commit amends that one by reverting its effects for these
203     small sizes by restoring 512b cluster size for <= 260Mb FAT32.
204     
205     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
206
207 commit 2000696
208 Author: Daniel Baumann <mail@daniel-baumann.ch>
209 Date:   Fri Aug 9 09:38:13 2013 +0200
210
211     Also allowing lowercase labels in mkfs (with warning message) consistent with the recent fsck change, thanks to Michael Baum <mbaum@devonit.com>.
212     
213     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
214
215 commit 9b04807
216 Author: Tim Harder <radhermit@gentoo.org>
217 Date:   Fri Jul 19 18:15:21 2013 +0200
218
219     Add install-man dependency to install-symlinks Makefile target.
220     
221     This fixes a race condition during parallel installs where man page
222     symlinks won't be installed because install-man hasn't been run yet.
223     
224     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
225
226 commit 651f91c (tag: v3.0.22)
227 Author: Daniel Baumann <mail@daniel-baumann.ch>
228 Date:   Fri Jul 19 07:01:19 2013 +0200
229
230     Releasing version 3.0.22.
231     
232     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
233
234 commit 3dc5560
235 Author: Daniel Baumann <mail@daniel-baumann.ch>
236 Date:   Fri Jul 19 06:55:24 2013 +0200
237
238     Addding install-symlinks target to phony targets in Makefile.
239     
240     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
241
242 commit c6c0581
243 Author: Daniel Baumann <mail@daniel-baumann.ch>
244 Date:   Fri Jul 19 06:55:00 2013 +0200
245
246     Adding uninstall-symlinks target in Makefile.
247     
248     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
249
250 commit 465dd8c
251 Author: Daniel Baumann <mail@daniel-baumann.ch>
252 Date:   Fri Jul 19 06:45:40 2013 +0200
253
254     Allowing fatlabel to write labels in all lowercase but give a warning about DOS/Windows (Closes: #714971).
255     
256     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
257
258 commit 3621b30
259 Author: John S Gruber <JohnSGruber@gmail.com>
260 Date:   Fri Jul 19 06:40:21 2013 +0200
261
262     Add options and make dos boot sector more compatible with reference system (Closes: #552673).
263     
264     Unless overridden by the user sets the DOS boot sector's
265     hidden-sectors field to match the start of a hard disk's
266     partition.
267     
268     Initialize DOS boot sector drive_number according to FAT media type
269     Addresses LP: #398241 and Debian #552673
270     
271     Adds options to override the DOS boot sector device_number and
272     the FAT media type.
273     
274     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
275
276 commit be1eed5
277 Author: Daniel Baumann <mail@daniel-baumann.ch>
278 Date:   Wed Jul 17 12:52:20 2013 +0200
279
280     Correcting wrong check preventing installation of fatlabel legacy manpage symlink.
281     
282     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
283
284 commit d0065d3 (tag: v3.0.21)
285 Author: Daniel Baumann <mail@daniel-baumann.ch>
286 Date:   Tue Jul 16 08:34:28 2013 +0200
287
288     Releasing version 3.0.21.
289     
290     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
291
292 commit a74c12c
293 Author: Jaroslav Skarvada <jskarvad@redhat.com>
294 Date:   Tue Jun 25 14:53:14 2013 +0200
295
296     Adding the missing -p option to the fsck manpage (to be consistent with the output of the tool).
297     
298     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
299
300 commit 25e03c9
301 Author: Patrick J. Volkerding <volkerdi@slackware.com>
302 Date:   Mon Jun 24 14:23:00 2013 +0200
303
304     Using $MANDIR instead of hardcoded ${PREFIX}/share/man in the Makefile.
305     
306     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
307
308 commit 7fd9cf7
309 Author: Daniel Baumann <mail@daniel-baumann.ch>
310 Date:   Fri Jun 14 18:50:31 2013 +0200
311
312     Making install-symlinks Makefile target depend on install-bin to not break when using make in parallel, thanks to David Walser <luigiwalser@yahoo.com>.
313     
314     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
315
316 commit a76bbcd
317 Author: Daniel Baumann <mail@daniel-baumann.ch>
318 Date:   Wed Jun 12 13:00:10 2013 +0200
319
320     Using US digit date format in version date, rather than name abbrev.
321     
322     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
323
324 commit a64195f (tag: v3.0.20)
325 Author: Daniel Baumann <mail@daniel-baumann.ch>
326 Date:   Wed Jun 12 12:25:32 2013 +0200
327
328     Releasing version 3.0.20.
329     
330     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
331
332 commit 1a5d99f
333 Author: Daniel Baumann <mail@daniel-baumann.ch>
334 Date:   Wed Jun 12 12:07:58 2013 +0200
335
336     Softening message about different boot sectors a bit (Closes: #704198).
337     
338     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
339
340 commit 4727286
341 Author: Daniel Baumann <mail@daniel-baumann.ch>
342 Date:   Wed Jun 12 11:42:52 2013 +0200
343
344     Harmonizing program name output.
345     
346     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
347
348 commit 17c956c
349 Author: Martin Wilck <mwilck@arcor.de>
350 Date:   Wed Jun 12 11:38:00 2013 +0200
351
352     Don't align FAT to cluster size.
353     
354     See previous patch for explanation.
355     
356     With this patch and the previous two, the
357     mkdosfs generated FAT32 file systems work well in my extremely
358     picky TechniSat device. Of course, they're also detected cleanly
359     by Linux and Windows.
360     
361     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
362
363 commit d63e0d6
364 Author: Martin Wilck <mwilck@arcor.de>
365 Date:   Wed Jun 12 11:36:08 2013 +0200
366
367     Don't align FAT32 reserved sectors to cluster size.
368     
369     For certain file system sizes (in particular, exact GB sizes -
370     don't ask me why) a Technisat HD S2 Plus DVB receiver will still
371     choke on mkdosfs generated file systems, even if the sectors per
372     cluster problem is fixed.
373     
374     By comparing the properties of generated FAT32 FS with results
375     of the Windows tool "h2format" (www.heise.de/download/h2format.html),
376     I found that the remaining problems were caused by rounding of the
377     reserved sectors and FAT space to cluster size (the h2format tool
378     doesn't do this).
379     
380     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
381
382 commit e048a8d
383 Author: Martin Wilck <mwilck@arcor.de>
384 Date:   Wed Jun 12 11:33:33 2013 +0200
385
386     Fixing default sectors per cluster for FAT32 (Closes: #690062).
387     
388     The default sectors per cluster calculated by mkdosfs are outdated,
389     see http://technet.microsoft.com/en-us/library/cc938438.aspx.
390     
391     The deviations may cause some 3rd party devices (e.g. TechniSat DVB
392     receivers) to hang when reading mkdosfs generated file systems.
393     
394     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
395
396 commit 86509aa
397 Author: Daniel Baumann <mail@daniel-baumann.ch>
398 Date:   Tue Jun 11 20:19:09 2013 +0200
399
400     Splitting out legacy symlink creation in toplevel Makefile to own target.
401     
402     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
403
404 commit da37dd1
405 Author: Daniel Baumann <mail@daniel-baumann.ch>
406 Date:   Wed Jun 12 11:29:12 2013 +0200
407
408     Correcting wrong toolname in fsck.fat.
409     
410     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
411
412 commit b29a722
413 Author: Daniel Baumann <mail@daniel-baumann.ch>
414 Date:   Tue Jun 11 19:51:47 2013 +0200
415
416     Consistently spelling filesystem as filesystem, and not file system.
417     
418     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
419
420 commit 977d7aa
421 Author: Daniel Baumann <mail@daniel-baumann.ch>
422 Date:   Tue Jun 11 19:30:19 2013 +0200
423
424     Removing Debian reference in GPL license headers.
425     
426     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
427
428 commit 5505cc2 (tag: v3.0.19)
429 Author: Daniel Baumann <mail@daniel-baumann.ch>
430 Date:   Tue Jun 11 18:46:03 2013 +0200
431
432     Releasing version 3.0.19.
433     
434     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
435
436 commit 2c88f35
437 Author: Daniel Baumann <mail@daniel-baumann.ch>
438 Date:   Tue Jun 11 18:44:50 2013 +0200
439
440     Running indent on source files.
441     
442     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
443
444 commit d495d43
445 Author: Daniel Baumann <mail@daniel-baumann.ch>
446 Date:   Tue Jun 11 18:41:41 2013 +0200
447
448     Using memcpy instead of strcpy to fix segfault with fortify, thanks to Dave Reisner <falconindy@jabber.org>.
449     
450     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
451
452 commit 9fb4ffc
453 Author: Daniel Baumann <mail@daniel-baumann.ch>
454 Date:   Sun Jun 9 13:17:16 2013 +0200
455
456     Correcting fsck.fat spelling error in manpages, thanks to E.J.M. Hartman <E.J.M.Hartman@tudelft.nl>.
457     
458     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
459
460 commit 2d8ef9b (tag: v3.0.18)
461 Author: Daniel Baumann <mail@daniel-baumann.ch>
462 Date:   Thu Jun 6 09:49:00 2013 +0200
463
464     Releasing version 3.0.18.
465     
466     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
467
468 commit d4e1180
469 Author: Daniel Baumann <mail@daniel-baumann.ch>
470 Date:   Thu Jun 6 09:38:45 2013 +0200
471
472     Adding initial i18n support for manpages with po4a.
473     
474     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
475
476 commit ea8f712
477 Author: Daniel Baumann <mail@daniel-baumann.ch>
478 Date:   Thu Jun 6 09:17:13 2013 +0200
479
480     Renaming tools to sane namespace and keeping legacy symlinks in place.
481     
482     dosfslabel becomes fatlabel,
483     dosfsck becomes fsck.fat,
484     and mkdosfs becomes mkfs.fat.
485     
486     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
487
488 commit a42b127
489 Author: Daniel Baumann <mail@daniel-baumann.ch>
490 Date:   Wed Jun 5 07:12:03 2013 +0200
491
492     Correcting wrong spelling of Debian in mkdosfs manpage.
493     
494     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
495
496 commit 2749084
497 Author: Daniel Baumann <mail@daniel-baumann.ch>
498 Date:   Wed Jun 5 07:10:50 2013 +0200
499
500     Correcting spelling typo in boot.c.
501     
502     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
503
504 commit 6461c83
505 Author: Martin Pitt <martinpitt@gnome.org>
506 Date:   Fri May 24 09:35:44 2013 +0200
507
508     dosfslabel: Do not read beyond string length (Closes: #709587).
509     
510     When checking whether the label contains any lower-case characters, do not read
511     beyond the end of the string.
512     
513     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
514
515 commit 4203a90 (tag: v3.0.17)
516 Author: Daniel Baumann <mail@daniel-baumann.ch>
517 Date:   Wed May 29 10:14:09 2013 +0200
518
519     Releasing version 3.0.17.
520     
521     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
522
523 commit 3aa88ed
524 Author: Daniel Baumann <mail@daniel-baumann.ch>
525 Date:   Wed May 29 09:48:24 2013 +0200
526
527     Updating maximal lenght of a label in manpage to talk about bytes instead of characters, thanks to Francois Wendling <frwendling@gmail.com> (Closes: #655953).
528     
529     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
530
531 commit 0916f8a
532 Author: Jaroslav Skarvada <jskarvad@redhat.com>
533 Date:   Wed May 29 09:56:08 2013 +0200
534
535     Fixing segfault in dosfslabel.
536     
537     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
538
539 commit 4a265c6
540 Author: James Byrne <jbyrne@aminocom.com>
541 Date:   Mon Apr 22 12:29:51 2013 +0100
542
543     Allow operation on SH4 CPUs and remove compiler warnings.
544     
545     Simplify the GET_UNALIGNED_W macro and use it in all cases instead of making it
546     conditional on CPU types. This missed some CPUs that needed it (e.g. SH4), and
547     in any case the implementation caused "dereferencing type-punned pointer will
548     break strict-aliasing rules" warnings.
549     
550     Enable extra warnings, but disable signed comparison and missing field
551     initializer warnings as these are not helpful.
552     
553     Update write_boot_label() so that the boot_sector_16 and boot_sector cases are
554     handled separately instead of using an aliased pointer, as that causes
555     "dereferencing type-punned pointer will break strict-aliasing rules" warnings.
556     
557     Make date_dos2unix(), usage() and cdiv() static functions as they are only used
558     in the files in which they are declared.
559     
560     Update bad_name() and lfn_get() so that the extension is processed separately
561     instead of by indexing past the end of the name field as that causes "array
562     subscript is above array bounds" warnings.
563     
564     Update the dosfsck() main function to avoid a warning that free_clusters may
565     be used uninitialized. Do not print the final count of files and clusters when
566     dosfsck is run with the "-b" option because the used files and clusters have
567     not been counted in this case.
568     
569     Alter the setup_tables() function so that it does not cause an "array subscript
570     is below array bounds" warning.
571     
572     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
573
574 commit eb68a14
575 Author: James Byrne <jbyrne@aminocom.com>
576 Date:   Mon Apr 22 13:32:01 2013 +0100
577
578     Add a .gitignore file.
579     
580     Add a .gitignore file so that the results of compilation do not appear as
581     changes.
582     
583     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
584
585 commit 336e8f1
586 Author: James Byrne <jbyrne@aminocom.com>
587 Date:   Mon Apr 22 12:38:52 2013 +0100
588
589     Finish cleanup of byteswap code.
590     
591     Commit 9ba8992 left three references to the old CT_LE_W macro.
592     Remove these since no conversion was needed as the value being
593     converted was zero.
594     
595     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
596
597 commit 64b6227
598 Author: Daniel Baumann <mail@daniel-baumann.ch>
599 Date:   Thu Apr 4 08:08:00 2013 +0200
600
601     Shortening links to upstream homepage.
602     
603     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
604
605 commit 76304be
606 Author: Cristian Rodríguez <crrodriguez@opensuse.org>
607 Date:   Fri Mar 1 08:23:34 2013 +0100
608
609     Fix offsetof definition.
610     
611       * include stddef.h to get the correct offsetof definition.
612       * remove local offsetof definition, systems not having it on stddef.h
613         are in violation of C89, C99, POSIX.1-2001.
614     
615     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
616
617 commit 9ba8992
618 Author: Cristian Rodríguez <crrodriguez@opensuse.org>
619 Date:   Fri Mar 1 08:58:36 2013 +0100
620
621     Cleanup byteswap code.
622     
623     Remove all duplicate macro definitions for byteswapping routines
624     and replace them for proper usage of userspace endian(3).
625     
626     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
627
628 commit 8733e12 (tag: v3.0.16)
629 Author: Daniel Baumann <mail@daniel-baumann.ch>
630 Date:   Wed May 29 10:06:01 2013 +0200
631
632     Releasing version 3.0.16.
633     
634     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
635
636 commit a9fa87e
637 Author: Petr Gajdos <pgajdos@suse.cz>
638 Date:   Fri Mar 1 08:34:12 2013 +0100
639
640     Create rootdir entry volume label with mkdosfs, create it when
641     it doesn't exist with dosfslabel.
642     
643     See https://bugzilla.novell.com/show_bug.cgi?id=657011#c4
644     for more information.
645     
646     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
647
648 commit 92057f1
649 Author: Petr Gajdos <pgajdos@suse.cz>
650 Date:   Fri Mar 1 08:33:18 2013 +0100
651
652     Forbid lowercase letters in label.
653     
654     See https://bugzilla.novell.com/show_bug.cgi?id=657011#c4 and
655     http://support.microsoft.com/kb/71715/en-us for more information.
656     
657     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
658
659 commit 5e265c4
660 Author: Petr Gajdos <pgajdos@suse.cz>
661 Date:   Fri Mar 1 08:32:02 2013 +0100
662
663     Read label also from rootdir entry.
664     
665     See https://bugzilla.novell.com/show_bug.cgi?id=657011#c4
666     for more information.
667     
668     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
669
670 commit 5cec53c
671 Author: Petr Gajdos <pgajdos@suse.cz>
672 Date:   Fri Mar 1 08:30:21 2013 +0100
673
674     alloc_rootdir_entry() is intended to be called with pattern == "FSCK%04dREC",
675     the old code (probably c&p from auto_rename()) doesn't reflect this.
676     
677     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
678
679 commit 63938f0
680 Author: Petr Gajdos <pgajdos@suse.cz>
681 Date:   Fri Mar 1 08:29:00 2013 +0100
682
683     Instead of eleven blanks, fill in "NO NAME    " as specification tells.
684     
685     See https://bugzilla.novell.com/show_bug.cgi?id=657011#c4 and
686     http://www.win.tue.nl/~aeb/linux/fs/fat/fat-1.html for more information.
687     
688     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
689
690 commit 10c1c41
691 Author: Petr Gajdos <pgajdos@suse.cz>
692 Date:   Fri Mar 1 08:58:15 2013 +0100
693
694     Write uppercase letters in label.
695     
696     See https://bugzilla.novell.com/show_bug.cgi?id=657011#c4 and
697     http://support.microsoft.com/kb/71715/en-us for more information.
698     
699     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
700
701 commit a75fb1c (tag: v3.0.15)
702 Author: Daniel Baumann <mail@daniel-baumann.ch>
703 Date:   Thu Feb 21 15:06:52 2013 +0100
704
705     Releasing version 3.0.15.
706     
707     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
708
709 commit c8f84fd
710 Author: Alexander Korolkov <alexander.korolkov@gmail.com>
711 Date:   Mon Feb 4 00:22:34 2013 +0400
712
713     Using wcstombs() to convert LFN unicode characters to printable text.
714     
715     This closes Debian bug #596336.
716     
717     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
718
719 commit 1546545
720 Author: Alexander Korolkov <alexander.korolkov@gmail.com>
721 Date:   Sun Sep 5 18:59:47 2010 +0400
722
723     Recode short filenames from DOS codepage (default 437).
724     
725     Recode short filenames from DOS codepage (default 437) to the current
726     character encoding. This makes messages of dosfsck more readable.
727     Partially closes Debian bug #596336.
728     
729     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
730
731 commit ad76cae
732 Author: Jaroslav Skarvada <jskarvad@redhat.com>
733 Date:   Thu Feb 21 14:40:52 2013 +0100
734
735     Fixing root directory allocation.
736     
737     See https://bugzilla.redhat.com/show_bug.cgi?id=674095 for more information.
738     
739     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
740
741 commit b8201b3
742 Author: Jaroslav Skarvada <jskarvad@redhat.com>
743 Date:   Thu Feb 21 14:40:25 2013 +0100
744
745     Fixing device detection.
746     
747     See https://bugzilla.redhat.com/show_bug.cgi?id=710480 for more information.
748     
749     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
750
751 commit 7a75638 (tag: v3.0.14)
752 Author: Daniel Baumann <mail@daniel-baumann.ch>
753 Date:   Wed Jan 23 13:22:01 2013 +0100
754
755     Releasing version 3.0.14.
756     
757     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
758
759 commit 5bdd7ef
760 Author: Daniel Baumann <mail@daniel-baumann.ch>
761 Date:   Wed Jan 23 13:16:20 2013 +0100
762
763     Documenting dosfsck -b in its manpage.
764     
765     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
766
767 commit a307be2
768 Author: Oleksij Rempel <bug-track@fisher-privat.net>
769 Date:   Wed Jan 23 12:36:56 2013 +0100
770
771     Adding option for bootsector read-only check.
772     
773     Most boot sectors may contains marker for filesystem state. We can this
774     bit on every mount and warn user if some thing wrong, without checking
775     complete filesystem.
776     
777     Signed-off-by: Oleksij Rempel <bug-track@fisher-privat.net>
778     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
779
780 commit ce2f8dc
781 Author: Oleksij Rempel <bug-track@fisher-privat.net>
782 Date:   Wed Jan 23 12:35:13 2013 +0100
783
784     Checking boot sector for dirty bit.
785     
786     Some OSos use reseved byte of boot sector to set state of the file
787     system. If first bit set, then filesystem is proably damaged - write
788     operation was not finished/cache not snycted/...
789     
790     Signed-off-by: Oleksij Rempel <bug-track@fisher-privat.net>
791     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
792
793 commit f33ee8c
794 Author: Daniel Baumann <mail@daniel-baumann.ch>
795 Date:   Wed Jan 23 12:25:59 2013 +0100
796
797     Completing and updating all copyright headers for 2013.
798     
799     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
800
801 commit bfe6d25
802 Author: Daniel Baumann <mail@daniel-baumann.ch>
803 Date:   Wed Jan 23 12:17:20 2013 +0100
804
805     Updating my email address.
806     
807     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
808
809 commit 13cdb4d (tag: v3.0.13)
810 Author: Daniel Baumann <mail@daniel-baumann.ch>
811 Date:   Sat Jun 30 19:10:44 2012 +0200
812
813     Releasing version 3.0.13.
814     
815     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
816
817 commit d039482
818 Author: Jaroslav Å karvada <jskarvad@redhat.com>
819 Date:   Sat Jun 30 19:09:11 2012 +0200
820
821     Fix 'dosfslabel throws "Seek to 114116076544:Invalid argument" error when labeling'.
822     
823     See https://bugzilla.redhat.com/show_bug.cgi?id=693662 for more information.
824     
825     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
826
827 commit e243612 (tag: v3.0.12)
828 Author: Daniel Baumann <mail@daniel-baumann.ch>
829 Date:   Sat Oct 29 08:40:53 2011 +0200
830
831     Releasing version 3.0.12.
832     
833     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
834
835 commit 025b4f0
836 Author: Michael Casadevall <mcasadevall@ubuntu.com>
837 Date:   Tue Jun 7 19:19:30 2011 +0200
838
839     Correcting miscalculation of sector number in some cases.
840     
841     mkdosfs will incorrectly calculate the number of sectors of a
842     given FAT partition if the number sectors are odd due to
843     count_blocks incorrectly handling the remainder of a division
844     operation. This miscalculation causes the OMAP4 bootloader to
845     fail to boot.
846     
847     This bug can be observed by comparing the total sector size in
848     fdisk expert more to fsck.msdos; this discrepancy only shows up
849     when the number of sectors are odd.
850     
851     See https://bugs.launchpad.net/ubuntu/+source/dosfstools/+bug/794043
852     for more information.
853     
854     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
855
856 commit 91a1fb9
857 Author: Daniel Baumann <mail@daniel-baumann.ch>
858 Date:   Sat Jan 8 23:38:59 2011 +0100
859
860     Re-running Nindent.
861     
862     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
863
864 commit 0390c4c
865 Author: Sergey Gusarov <laborer2008@gmail.com>
866 Date:   Sat Jan 8 23:36:11 2011 +0100
867
868     Fixing compiler warnings related to the mismatch of types "char *" / "unsigned
869     char *".
870     
871     These warnings appear when you compile the project with the option "-Wall", what
872     is done with the current default Makefile.
873     
874     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
875
876 commit 4a8f8a6
877 Author: Jaroslav Skarvada <jskarvad@redhat.com>
878 Date:   Thu Jan 6 22:35:00 2011 +0100
879
880     Fixing overflow bug in reclaim_file function, see
881     https://bugzilla.redhat.com/show_bug.cgi?id=660154 for more information.
882     
883     The problem is that alloc_rootdir_entry counts with 10000 files at max, but the
884     filename buffer is only 8 chars long. Due to pattern mask used it results to
885     only 10 files at max (FSCK0-9REC). If there is more than 10 files, it overflows
886     and hangs.
887     
888     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
889
890 commit e0366da
891 Author: Sergey Gusarov <laborer2008@gmail.com>
892 Date:   Thu Jan 6 22:31:39 2011 +0100
893
894     Fixing conversion specifiers in accordance with the type of expressions.
895     
896     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
897
898 commit 2d8be9c
899 Author: Daniel Baumann <mail@daniel-baumann.ch>
900 Date:   Sun Jan 2 15:41:44 2011 +0100
901
902     Indenting source files.
903     
904     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
905
906 commit 697af85
907 Author: Daniel Baumann <mail@daniel-baumann.ch>
908 Date:   Sun Jan 2 15:39:03 2011 +0100
909
910     Adding Nindent script from syslinux.
911     
912     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
913
914 commit 66d55cd (tag: v3.0.11)
915 Author: Daniel Baumann <mail@daniel-baumann.ch>
916 Date:   Fri Dec 24 17:58:29 2010 +0100
917
918     Releasing version 3.0.11.
919     
920     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
921
922 commit d579802
923 Author: Michael Stapelberg <michael@stapelberg.de>
924 Date:   Fri Nov 19 14:09:36 2010 +0100
925
926     Add better error message when the device cannot be opened.
927     
928     This is helpful for SD cards or other removable media which have an enabled
929     write lock -- without the "Permission denied" message, the user has to strace
930     mkdosfs to find out what's going on.
931     
932     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
933
934 commit bb6000f
935 Author: Jaroslav Skarvada <jskarvad@redhat.com>
936 Date:   Fri Oct 8 13:38:16 2010 +0200
937
938     Unalign on s390x, see http://bugzilla.redhat.com/show_bug.cgi?id=624596 for
939     more information.
940     
941     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
942
943 commit 5ef7f1f (tag: v3.0.10)
944 Author: Daniel Baumann <mail@daniel-baumann.ch>
945 Date:   Sun Sep 12 09:35:47 2010 +0200
946
947     Releasing version 3.0.10.
948     
949     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
950
951 commit ea41797
952 Author: Alexander Korolkov <alexander.korolkov@gmail.com>
953 Date:   Sun Sep 12 09:29:12 2010 +0200
954
955     Modify LFN direntries when file is renamed or deleted, see
956     Debian bug #596329.
957     
958     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
959
960 commit e56ff72
961 Author: Alexander Korolkov <alexander.korolkov@gmail.com>
962 Date:   Sun Sep 12 09:27:07 2010 +0200
963
964     If the test of short filename fails, dosfsck could complain about
965     bad long filename, see Debian bug #596327.
966     
967     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
968
969 commit f0a42d0
970 Author: Alexander Korolkov <alexander.korolkov@gmail.com>
971 Date:   Sun Sep 12 09:24:47 2010 +0200
972
973     dosfsck: don't complain about bad filenames when short filename
974     contains 7 or more characters with codes 128-255, see Debian
975     bug #596327.
976     
977     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
978
979 commit 0113c5b
980 Author: Mitch Rybczynski <mrybczynski@miovision.com>
981 Date:   Mon Jul 5 14:45:54 2010 +0200
982
983     Adding __arm__ define check for some crosscompile toolchains.
984     
985     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
986
987 commit 88cb84f
988 Author: Daniel Baumann <mail@daniel-baumann.ch>
989 Date:   Sun Mar 14 16:42:32 2010 +0100
990
991     Modernizing dosfslabel manpage.
992     
993     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
994
995 commit 5aa7ec4
996 Author: Daniel Baumann <mail@daniel-baumann.ch>
997 Date:   Sun Mar 14 16:33:47 2010 +0100
998
999     Modernizing dosfsck manpage.
1000     
1001     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1002
1003 commit 807ed80
1004 Author: Daniel Baumann <mail@daniel-baumann.ch>
1005 Date:   Sun Mar 14 16:05:32 2010 +0100
1006
1007     Fixing spelling error in boot.c.
1008     
1009     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1010
1011 commit 5b6849d (tag: v3.0.9)
1012 Author: Daniel Baumann <mail@daniel-baumann.ch>
1013 Date:   Sun Jan 31 08:31:32 2010 +0100
1014
1015     Releasing version 3.0.9.
1016     
1017     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1018
1019 commit 33bca7d
1020 Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
1021 Date:   Sun Jan 31 00:11:41 2010 -0500
1022
1023     Be sure to store the updated reserved_sector count in the boot sector,
1024     see Debian bug #567337.
1025     
1026     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1027
1028 commit 2a3bef8 (tag: v3.0.8)
1029 Author: Daniel Baumann <mail@daniel-baumann.ch>
1030 Date:   Sat Jan 23 10:16:18 2010 +0100
1031
1032     Releasing version 3.0.8.
1033     
1034     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1035
1036 commit 726c02d
1037 Author: Daniel Baumann <mail@daniel-baumann.ch>
1038 Date:   Sat Jan 23 10:15:01 2010 +0100
1039
1040     Removing some cruft in end-comments.
1041     
1042     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1043
1044 commit a5961d7
1045 Author: Steven J. Magnani <steve@digidescorp.com>
1046 Date:   Thu Jan 21 16:58:11 2010 +0100
1047
1048     When compiling a 32-bit version of dosfstools on an x86_64 machine,
1049     the resulting applications report strange errors on "large" (> 2 GiB)
1050     partitions:
1051     
1052       Seek to -2118967808:Invalid argument
1053     
1054       Warning: Filesystem is FAT32 according to fat_length and fat32_length fields,
1055       but has only 8613 clusters, less than the required minimum of 65525.
1056       This may lead to problems on some systems.
1057     
1058     This appears to be due to compilation with a 32-bit off_t and lseek() library
1059     function.
1060     
1061     Use lseek64 for positioning, and change some suspect uses of off_t to loff_t.
1062     
1063     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1064
1065 commit bbb25bf
1066 Author: Steven J. Magnani <steve@digidescorp.com>
1067 Date:   Thu Jan 21 16:56:26 2010 +0100
1068
1069     If dosfsck is run in read-only mode (-n), exit with code 0
1070     if the only issue found is an uninitialized free cluster summary.
1071     
1072     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1073
1074 commit 1cae726
1075 Author: Steven J. Magnani <steve@digidescorp.com>
1076 Date:   Thu Jan 21 16:55:30 2010 +0100
1077
1078     On x86_64, dosfsck incorrectly claims that a free_cluster summary of
1079     0xFFFFFFFF, defined by Microsoft to be "uninitialized," is wrong.
1080     
1081     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1082
1083 commit 62f806a
1084 Author: H. Peter Anvin <hpa@zytor.com>
1085 Date:   Fri Jan 8 09:16:38 2010 +0100
1086
1087     mkdosfs: correct alignment of the root directory.
1088     
1089     Correct the code to align the root directory; it was broken before
1090     since bs.dir_entries had already been set at the point of alignment.
1091     This patch removes the dual use of bs.dir_entries and root_dir_entries
1092     to carry the same information: the information is carried in
1093     root_dir_entires exclusively, and then bs.dir_entries is set inside
1094     setup_tables() at a late point.
1095     
1096     The code to align the root directory is also wrapped in
1097     if (align_structures); this avoids rounding the number of root
1098     directory entries up to a whole sector when used with -a
1099     (i.e. preserves the previous behavior.)
1100     
1101     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1102
1103 commit 8825bda
1104 Author: H. Peter Anvin <hpa@zytor.com>
1105 Date:   Wed Jan 6 20:55:36 2010 +0100
1106
1107     mkdosfs: improve wording in the man page for the -a option.
1108     
1109     Improve the English language used in the man page for the -a (no
1110     align) option to mkdosfs.
1111     
1112     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1113
1114 commit 21d3f81
1115 Author: Daniel Baumann <mail@daniel-baumann.ch>
1116 Date:   Wed Jan 6 11:27:25 2010 +0100
1117
1118     Adding reference to dosfslable in mkdosfs manpage.
1119     
1120     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1121
1122 commit 247ba06
1123 Author: H. Peter Anvin <hpa@zytor.com>
1124 Date:   Wed Jan 6 11:18:55 2010 +0100
1125
1126     mkdosfs: by default align all structures to cluster boundaries
1127     
1128     Align all data structures (reserved sectors, FATs, root directory for
1129     FAT12/16) to an even multiple of the cluster size. This means that if
1130     the partition is aligned, so will all clusters be. This adds
1131     significant performance for anything where the physical sector size is
1132     larger than the logical sector size, e.g. flash media or large-sector
1133     hard disks.
1134     
1135     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1136
1137 commit 171bc07 (tag: v3.0.7)
1138 Author: Daniel Baumann <mail@daniel-baumann.ch>
1139 Date:   Thu Dec 24 10:53:36 2009 +0100
1140
1141     Releasing version 3.0.7.
1142     
1143     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1144
1145 commit 28708fc
1146 Author: Ben Hutchings <ben@decadent.org.uk>
1147 Date:   Thu Dec 24 09:55:52 2009 +0100
1148
1149     Fixing dosfslabel to set volume label in the right place,
1150     see Debian bug #559985.
1151     
1152     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1153
1154 commit 2c405dd
1155 Author: Lubomir Rintel <lkundrak@v3.sk>
1156 Date:   Thu Dec 24 09:39:39 2009 +0100
1157
1158     Fixing out-of bound writes.
1159     
1160     Firstly, packed attribute is added to the structure so that extension
1161     is guarranteed to immediately follow name for the cross-name-extension
1162     reads to succeed.
1163     
1164     Secondly, writes into dir_entry->name that span through the extension as
1165     well are split into two, so that FORTIFY_SOURCE's bound checking does
1166     not abort dosfsck. There also was an off-by-one error in auto_rename()'s
1167     sprintf().
1168     
1169     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1170
1171 commit b8f3efe
1172 Author: San Mehat <san@google.com>
1173 Date:   Thu Dec 24 09:31:41 2009 +0100
1174
1175     Adding custom exit code in dosfsck for the case where the FS is read only.
1176     
1177     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1178
1179 commit 0657e01 (tag: v3.0.6)
1180 Author: Daniel Baumann <mail@daniel-baumann.ch>
1181 Date:   Sun Oct 4 10:59:33 2009 +0200
1182
1183     Releasing version 3.0.6.
1184     
1185     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1186
1187 commit bc84254
1188 Author: Steven J. Magnani <steve@digidescorp.com>
1189 Date:   Sun Oct 4 10:58:43 2009 +0200
1190
1191     Attempt to improve clarity of the orphan cluster reclaim code.
1192     Minor optimization - remove some unnecessary checking.
1193     
1194     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1195
1196 commit 8054b4a
1197 Author: Steven J. Magnani <steve@digidescorp.com>
1198 Date:   Sun Oct 4 08:37:19 2009 +0200
1199
1200     Close hole that permitted clusters to link to (invalid) cluster 1.
1201     
1202     If an orphan chain that linked to cluster 1 was reclaimed to a file,
1203     deletion of the file would result in a filesystem panic.
1204     
1205     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1206
1207 commit e51af88
1208 Author: Steven J. Magnani <steve@digidescorp.com>
1209 Date:   Sun Oct 4 08:32:30 2009 +0200
1210
1211     Fix erroneous report of huge number of clusters in use on big-endian
1212     systems when the FSINFO free cluster count is reset.
1213     
1214     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1215
1216 commit 16ba63f (tag: v3.0.5)
1217 Author: Daniel Baumann <mail@daniel-baumann.ch>
1218 Date:   Mon Jul 27 14:26:11 2009 +0200
1219
1220     Releasing version 3.0.5.
1221     
1222     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1223
1224 commit 28ff9d9
1225 Author: Piotr Kaczuba <pepe@attika.ath.cx>
1226 Date:   Sun Jul 26 22:21:25 2009 +0200
1227
1228     Signed/unsigned char mismatch in check.c causes false positives
1229     in bad_name() and can result in data loss, see Debian bug #538758.
1230     
1231     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1232
1233 commit d42a273
1234 Author: Andrew Tridgell <tridge@samba.org>
1235 Date:   Sun Jul 26 22:12:06 2009 +0200
1236
1237     Update to new kernel patches that add FAT_NO_83NAME flag.
1238     
1239     See http://lkml.org/lkml/2009/7/20/425 and
1240     http://lkml.org/lkml/2009/7/20/424 for more information.
1241     
1242     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1243
1244 commit dd0f0b5 (tag: v3.0.4)
1245 Author: Daniel Baumann <mail@daniel-baumann.ch>
1246 Date:   Tue Jul 21 08:10:52 2009 +0200
1247
1248     Releasing version 3.0.4.
1249     
1250     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1251
1252 commit b9f37a6
1253 Author: Andrew Tridgell <tridge@samba.org>
1254 Date:   Tue Jul 21 07:59:22 2009 +0200
1255
1256     Modify dosfstools to support the dummy 8.3 short filename values
1257     used by Linux systems with the VFAT_FS_DUALNAMES option disabled.
1258     
1259     See http://lkml.org/lkml/2009/6/26/313 and
1260     http://lkml.org/lkml/2009/6/26/314 for more information.
1261     
1262     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1263
1264 commit ecd15e8
1265 Author: Paul Rupe <prupe@nc.rr.com>
1266 Date:   Tue May 19 10:37:52 2009 +0200
1267
1268     Fixing "Too many files need repair" error during fsck.
1269     
1270     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1271
1272 commit 7c16098 (tag: v3.0.3)
1273 Author: Daniel Baumann <mail@daniel-baumann.ch>
1274 Date:   Mon May 18 15:12:04 2009 +0200
1275
1276     Releasing version 3.0.3.
1277     
1278     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1279
1280 commit b396dcf
1281 Author: Daniel Baumann <mail@daniel-baumann.ch>
1282 Date:   Mon May 18 15:10:55 2009 +0200
1283
1284     Also declaring arm as an unaligned architecture, see Debian bug #502961.
1285     
1286     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1287
1288 commit ff1b24e
1289 Author: Steven J. Magnani <steve@digidescorp.com>
1290 Date:   Mon May 18 15:01:49 2009 +0200
1291
1292     Adding support for limited-memory embedded systems.
1293     
1294     This patch reorganizes heap memory usage by dosfsck and mkdosfs
1295     to support limited-memory embedded systems - in particular, those
1296     based on Xilinx's Microblaze processor. It also adds a few comments.
1297     
1298     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1299
1300 commit 89f0b72
1301 Author: Mike Frysinger <vapier@gentoo.org>
1302 Date:   Thu Mar 5 07:03:36 2009 +0100
1303
1304     Declaring Blackfin as an unaligned architecture.
1305     
1306     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1307
1308 commit b54a8a4 (tag: v3.0.2)
1309 Author: Daniel Baumann <mail@daniel-baumann.ch>
1310 Date:   Sat Feb 28 09:48:04 2009 +0100
1311
1312     Releasing version 3.0.2.
1313     
1314     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1315
1316 commit 9500529
1317 Author: Hiroaki Ishizawa <hiroaki.ishizawa@gmail.com>
1318 Date:   Fri Feb 13 10:00:46 2009 +0100
1319
1320     dosfsck corrupts root directory when fs->nfats is 1.
1321     
1322     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1323
1324 commit 043f8a8
1325 Author: Stepan Kasal <skasal@redhat.com>
1326 Date:   Fri Jan 30 14:56:33 2009 +0100
1327
1328     src/dosfslabel.c (main): After writing the label, exit code should be 0.
1329     
1330     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1331
1332 commit 017da27
1333 Author: Daniel Baumann <mail@daniel-baumann.ch>
1334 Date:   Fri Jan 30 14:06:01 2009 +0100
1335
1336     Also installing ChangeLog in install-doc target of Makefile.
1337     
1338     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1339
1340 commit 1c76f0f
1341 Author: Stepan Kasal <skasal@redhat.com>
1342 Date:   Fri Jan 30 14:05:12 2009 +0100
1343
1344     Makefile: Do not clobber time stamps of doc files.
1345     
1346     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1347
1348 commit df2d2f1 (tag: v3.0.1)
1349 Author: Daniel Baumann <mail@daniel-baumann.ch>
1350 Date:   Sun Nov 23 22:45:45 2008 +0100
1351
1352     Releasing version 3.0.1.
1353     
1354     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1355
1356 commit 17b269b
1357 Author: Daniel Baumann <mail@daniel-baumann.ch>
1358 Date:   Sun Nov 23 18:41:01 2008 +0100
1359
1360     Applying Fedoras dosfstools-vfat-timingfix.diff from Bill Nottingham
1361     <notting@redhat.com> to fix vfat timing issue. See
1362     https://bugzilla.redhat.com/show_bug.cgi?id=448247 for more information.
1363     
1364     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1365
1366 commit e597caf
1367 Author: Ulrich Mueller <ulm@gentoo.org>
1368 Date:   Tue Oct 7 07:55:37 2008 +0200
1369
1370     Patch to check for bad number of clusters in dosfsck:
1371     
1372       * FAT16 filesystems with 65525 clusters or more will be rejected
1373         (Before, this was not tested for. Up to 65535 clusters were accepted
1374         as good).
1375     
1376       * For FAT32 filesystems with less than 65525 a warning message will be
1377         output.
1378     
1379     Macro MSDOS_FAT12 is now replaced by FAT12_THRESHOLD to make it
1380     consistent with the definition in mkdosfs and to remove the dependency
1381     on the kernel version.
1382     
1383     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1384
1385 commit 90102bc
1386 Author: Dann Frazier <dannf@hp.com>
1387 Date:   Tue Sep 30 07:25:19 2008 +0200
1388
1389     Changing some wording to make the indended meaning of "full-disk device"
1390     more obvious.
1391     
1392     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1393
1394 commit 21e9ba0 (tag: v3.0.0)
1395 Author: Daniel Baumann <mail@daniel-baumann.ch>
1396 Date:   Sun Sep 28 11:43:19 2008 +0200
1397
1398     Releasing version 3.0.0.
1399     
1400     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1401
1402 commit eaf145d
1403 Author: Daniel Baumann <mail@daniel-baumann.ch>
1404 Date:   Sun Sep 28 11:29:01 2008 +0200
1405
1406     Adding GPL headers to all files.
1407     
1408     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1409
1410 commit 0826117
1411 Author: Daniel Baumann <mail@daniel-baumann.ch>
1412 Date:   Sun Sep 28 10:51:55 2008 +0200
1413
1414     Adding new GPL license file.
1415     
1416     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1417
1418 commit f8d6127
1419 Author: Daniel Baumann <mail@daniel-baumann.ch>
1420 Date:   Fri Sep 26 23:31:12 2008 +0200
1421
1422     Redoing Makefile from scratch.
1423     
1424     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1425
1426 commit b4feb73
1427 Author: Daniel Baumann <mail@daniel-baumann.ch>
1428 Date:   Sat Sep 27 00:17:38 2008 +0200
1429
1430     Removing whitespaces in all files at EOL and EOF.
1431     
1432     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1433
1434 commit 1410138
1435 Author: Daniel Baumann <mail@daniel-baumann.ch>
1436 Date:   Fri Sep 26 23:48:56 2008 +0200
1437
1438     Adding Debians dosfslabel.8 manpage from Francois Wendling
1439     <frwendling@free.fr>.
1440     
1441     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1442
1443 commit f62e7f2
1444 Author: Daniel Baumann <mail@daniel-baumann.ch>
1445 Date:   Fri Sep 26 18:36:04 2008 +0200
1446
1447     Updating version.h includes to new location of version.h file.
1448     
1449     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1450
1451 commit 32e5952
1452 Author: Daniel Baumann <mail@daniel-baumann.ch>
1453 Date:   Fri Sep 26 18:19:36 2008 +0200
1454
1455     Removing old lsm file.
1456     
1457     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1458
1459 commit 25a433b
1460 Author: Daniel Baumann <mail@daniel-baumann.ch>
1461 Date:   Fri Sep 26 18:07:47 2008 +0200
1462
1463     Removing old cvsignore files.
1464     
1465     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1466
1467 commit acac13f
1468 Author: Daniel Baumann <mail@daniel-baumann.ch>
1469 Date:   Fri Sep 26 18:18:39 2008 +0200
1470
1471     Removing old build file.
1472     
1473     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1474
1475 commit 3ecdd21
1476 Author: Daniel Baumann <mail@daniel-baumann.ch>
1477 Date:   Fri Sep 26 18:19:16 2008 +0200
1478
1479     Removing old GPL license files.
1480     
1481     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1482
1483 commit f183d0e
1484 Author: Daniel Baumann <mail@daniel-baumann.ch>
1485 Date:   Fri Sep 26 18:21:57 2008 +0200
1486
1487     Unifying dosfsck and mkdosfs Makefiles in common src/Makefile.
1488     
1489     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1490
1491 commit 61e7466
1492 Author: Daniel Baumann <mail@daniel-baumann.ch>
1493 Date:   Fri Sep 26 18:04:02 2008 +0200
1494
1495     Unifying dosfsck and mkdosfs sources in common src directory.
1496     
1497     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1498
1499 commit 7552d57
1500 Author: Daniel Baumann <mail@daniel-baumann.ch>
1501 Date:   Fri Sep 26 18:05:27 2008 +0200
1502
1503     Unifying dosfsck and mkdosfs manpages in common man directory.
1504     
1505     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1506
1507 commit 124598b
1508 Author: Daniel Baumann <mail@daniel-baumann.ch>
1509 Date:   Fri Sep 26 18:12:29 2008 +0200
1510
1511     Unifying dosfsck and mkdosfs documents in common doc directory.
1512     
1513     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1514
1515 commit fb9c46b
1516 Author: Daniel Baumann <mail@daniel-baumann.ch>
1517 Date:   Fri Sep 26 15:39:51 2008 +0200
1518
1519     Applying Gentoos dosfstools-2.11-preen.patch from Roy Marples
1520     <uberlord@gentoo.org> to alias dosfsck -p to -a:
1521     
1522       * Map -p to -a for baselayout-2, #177514.
1523     
1524     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1525
1526 commit aaa40a9
1527 Author: Daniel Baumann <mail@daniel-baumann.ch>
1528 Date:   Fri Sep 26 15:49:43 2008 +0200
1529
1530     Applying Gentoos dosfstools-2.11-build.patch from Mike Frysinger
1531     <vapier@gentoo.org> to improve Makefile:
1532     
1533       * Respect user settings #157785/#157786 by Diego Petteno.
1534     
1535     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1536
1537 commit 251626d
1538 Author: Daniel Baumann <mail@daniel-baumann.ch>
1539 Date:   Fri Sep 26 15:37:34 2008 +0200
1540
1541     Applying Gentoos dosfstools-2.11-verify-double-count-fix.patch from
1542     Robin H. Johnson <robbat2@gentoo.org> to fix double count of files
1543     during verification:
1544     
1545       * Don't double-count n_files during a verification pass.
1546         Bugzilla: http://bugs.gentoo.org/show_bug.cgi?id=99845
1547     
1548     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1549
1550 commit e670ea8
1551 Author: Daniel Baumann <mail@daniel-baumann.ch>
1552 Date:   Fri Sep 26 15:33:36 2008 +0200
1553
1554     Applying Gentoos dosfstools-2.11-fat32size.patch from Mike Frysinger
1555     <vapier@gentoo.org> to fix generation of filesystems on 256meg devices:
1556     
1557       * Fix generation of FAT filesystems on devices that are 256meg in size
1558         Patch by Ulrich Mueller and accepted upstream
1559         http://bugs.gentoo.org/112504
1560     
1561     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1562
1563 commit a6dc6a4
1564 Author: Daniel Baumann <mail@daniel-baumann.ch>
1565 Date:   Fri Sep 26 15:22:06 2008 +0200
1566
1567     Applying Suses dosfstools-2.11-unsupported-sector-size.patch from Petr
1568     Gajdos <pgajdos@suse.cz> to add sector size warning:
1569     
1570       * added warning for creation msdos on filesystem with sector size
1571         greater than 4096 [fate#303325]
1572     
1573     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1574
1575 commit f746956
1576 Author: Daniel Baumann <mail@daniel-baumann.ch>
1577 Date:   Fri Sep 26 15:18:35 2008 +0200
1578
1579     Applying Suses dosfstools-2.11-mkdosfs-geo0.diff from Ludwig Nussel
1580     <lnussel@suse.de> to fix handling of zero heads and sectors:
1581     
1582       * the HDIO_GETGEO ioctl works on device mapper devices but returns
1583         zero heads and sectors. Therefore let's a) assume dummy values in
1584         that case in mkdosfs and b) don't consider such fat file systems as
1585         invalid in dosfsck. The Linux kernel accepts them anyways.
1586     
1587     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1588
1589 commit cf243e4
1590 Author: Daniel Baumann <mail@daniel-baumann.ch>
1591 Date:   Fri Sep 26 15:15:40 2008 +0200
1592
1593     Applying Suses dosfstools-2.11-linuxfs.patch from Ruediger Oertel
1594     <ro@suse.de> to not include linux/fs.h.
1595     
1596     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1597
1598 commit 2d4f184
1599 Author: Daniel Baumann <mail@daniel-baumann.ch>
1600 Date:   Fri Sep 26 15:11:50 2008 +0200
1601
1602     Applying Fedoras dosfstools-2.11-assumeKernel26.patch from Peter Vrabec
1603     <pvrabec@redhat.com> to remove linux 2.6 conditionals:
1604     
1605       * LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) does not work with
1606         glibc-kernheaders-2.4-9.1.94
1607     
1608     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1609
1610 commit 739a6fb
1611 Author: Daniel Baumann <mail@daniel-baumann.ch>
1612 Date:   Fri Sep 26 15:05:00 2008 +0200
1613
1614     Applying Debians 99-conglomeration.dpatch (no other information
1615     available).
1616     
1617     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1618
1619 commit 3b5ed8a
1620 Author: Daniel Baumann <mail@daniel-baumann.ch>
1621 Date:   Fri Sep 26 14:26:41 2008 +0200
1622
1623     Applying Debians 15-manpage-files.dpatch from Daniel Baumann
1624     <daniel@debian.org> to improve dosfsck manpage:
1625     
1626       * Lists fsckNNNN.rec files in FILES section (Closes: #444596).
1627     
1628     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1629
1630 commit 3b6a863
1631 Author: Daniel Baumann <mail@daniel-baumann.ch>
1632 Date:   Fri Sep 26 14:34:42 2008 +0200
1633
1634     Applying Debians 13-getopt.dpatch from Adonikam Virgo
1635     <adonikam@virgonet.org> to fix mkdosfs getopt:
1636     
1637       * Fixes backup sector getopt (Closes: #232387, #479794).
1638     
1639     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1640
1641 commit 1b2c8ca
1642 Author: Daniel Baumann <mail@daniel-baumann.ch>
1643 Date:   Fri Sep 26 14:34:17 2008 +0200
1644
1645     Applying Debians 12-zero-slot.dpatch by Karl Tomlinson
1646     <karlt@karlt.net> to fix dosfsck zero slot crashes:
1647     
1648       * Fixes crashes due to zero slot numbers causing a negative offset in
1649         the call to copy_lfn_part in lfn_add_slot. On amd64 this results in
1650         a SIGSEGV in copy_lfn_part. On x86 the result is heap corruption and
1651         thus sometimes a SIGSEGV or double free abort later. (Closes:
1652         #152550, #353198, #356377, #401798).
1653     
1654     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1655
1656 commit eec8585
1657 Author: Daniel Baumann <mail@daniel-baumann.ch>
1658 Date:   Fri Sep 26 14:33:54 2008 +0200
1659
1660     Applying Debians 11-memory-efficiency.dpatch from Eero Tamminen
1661     <eero.tamminen@nokia.com> to improve dosfsck memory efficiency:
1662     
1663       * Improves memory efficiency when checking filesystems.
1664     
1665     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1666
1667 commit 06bd669
1668 Author: Daniel Baumann <mail@daniel-baumann.ch>
1669 Date:   Fri Sep 26 14:33:28 2008 +0200
1670
1671     Applying Debians 10-manpage-synopsis.dpatch from Daniel Baumann
1672     <daniel@debian.org> to fix manpage synopsis:
1673     
1674       * List alternative binary names in manpage synopsis (Closes: #284983).
1675     
1676     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1677
1678 commit 42d340d
1679 Author: Daniel Baumann <mail@daniel-baumann.ch>
1680 Date:   Fri Sep 26 14:32:46 2008 +0200
1681
1682     Applying Debians 09-manpage-fat32.dpatch from Daniel Baumann
1683     <daniel@debian.org> to improve mkdosfs manpage:
1684     
1685       * Don't claim that FAT32 is not choosed automatically (Closes:
1686         #414183).
1687     
1688     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1689
1690 commit 0f5ce0d
1691 Author: Daniel Baumann <mail@daniel-baumann.ch>
1692 Date:   Fri Sep 26 14:32:23 2008 +0200
1693
1694     Applying Debians 08-manpage-drop.dpatch from Daniel Baumann
1695     <daniel@debian.org> to improve dosfsck manpage:
1696     
1697       * Don't use confusing word 'drop' when 'delete' is meant (Closes:
1698         #134100).
1699     
1700     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1701
1702 commit 8ec54dd
1703 Author: Daniel Baumann <mail@daniel-baumann.ch>
1704 Date:   Fri Sep 26 14:31:50 2008 +0200
1705
1706     Applying Debians 07-manpage-spelling.dpatch from Justin Pryzby
1707     <justinpryzby@users.sourceforge.net> to fix mkdosfs manpage typos.
1708     
1709     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1710
1711 commit 4371588
1712 Author: Daniel Baumann <mail@daniel-baumann.ch>
1713 Date:   Fri Sep 26 14:30:31 2008 +0200
1714
1715     Applying Suses dosfstools-2.11_determine-sector-size.patch from Petr
1716     Gajdos <pgajdos@suse.cz> to determine mkdosfs sector size automatically:
1717     
1718       * determine sector size of device automatically or if -S parameter
1719         present, verify, that it's not under physical sector size
1720     
1721     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1722
1723 commit fc92e19
1724 Author: Daniel Baumann <mail@daniel-baumann.ch>
1725 Date:   Fri Sep 26 14:30:03 2008 +0200
1726
1727     Applying Suses dosfstools-2.11-o_excl.patch from Pavol Rusnak
1728     <prusnak@suse.cz> to use O_EXCL in mkdosfs:
1729     
1730       * mkdosfs now opens device with O_EXCL [#238687]
1731     
1732     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1733
1734 commit 3084697
1735 Author: Daniel Baumann <mail@daniel-baumann.ch>
1736 Date:   Fri Sep 26 14:29:36 2008 +0200
1737
1738     Applying Debians 04-unaligned-memory.dpatch from Khalid Aziz
1739     <khalid_aziz@hp.com> to fix dosfsck unaligned memory accesses:
1740     
1741       * Fix unaligned memory accesses which cause warnings to appear
1742         everytime the elilo bootloader script runs. This has led a number of
1743         users to believe their install has failed (Closes: #258839).
1744     
1745     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1746
1747 commit 6d5c091
1748 Author: Daniel Baumann <mail@daniel-baumann.ch>
1749 Date:   Fri Sep 26 13:47:40 2008 +0200
1750
1751     Applying Fedoras dosfstools-2.11-label.patch from Jeremy Katz
1752     <katzj@redhat.com> to add dosfslabel (originally by Peter Jones).
1753     
1754     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1755
1756 commit 07ef487
1757 Author: Daniel Baumann <mail@daniel-baumann.ch>
1758 Date:   Fri Sep 26 13:41:14 2008 +0200
1759
1760     Applying Fedoras dosfstools-2.11-fortify.patch from Jakub Jelinek
1761     <jakub@redhat.com> to make it build with -D_FORTIFY_SOURCE=2:
1762     
1763       * This violates -D_FORTIFY_SOURCE=2 (which is stricter than C
1764         standard), but isn't actually any buffer overflow. But using memcpy
1765         is more efficient anyway.
1766     
1767     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1768
1769 commit 78f9dca
1770 Author: Daniel Baumann <mail@daniel-baumann.ch>
1771 Date:   Fri Sep 26 13:40:47 2008 +0200
1772
1773     Applying Fedoras dosfstools-2.7-argfix.patch (no other information
1774     available).
1775     
1776     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
1777
1778 commit ba6774a (tag: v2.11)
1779 Author: Daniel Baumann <mail@daniel-baumann.ch>
1780 Date:   Thu Jun 26 12:45:36 2008 +0200
1781
1782     Adding version 2.11.
1783     
1784     Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>