Hello community,

here is the log from the commit of package dosfstools for openSUSE:Factory 
checked in at 2014-03-09 18:18:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/dosfstools (Old)
 and      /work/SRC/openSUSE:Factory/.dosfstools.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "dosfstools"

Changes:
--------
--- /work/SRC/openSUSE:Factory/dosfstools/dosfstools.changes    2013-11-25 
14:32:52.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.dosfstools.new/dosfstools.changes       
2014-03-09 18:18:42.000000000 +0100
@@ -1,0 +2,10 @@
+Thu Mar  6 12:24:03 UTC 2014 - [email protected]
+
+- updated to 3.0.25:
+  * Prevent corruption of FAT during fsck on 64 bit platforms.
+     unsigned long is 64 bit on x86-64, which means set_fat was writing two
+     entries, which corrupts the next entry. This can cause loss of data in
+     another file.
+  * Fixed remaining 64 bit build warnings.
+
+-------------------------------------------------------------------

Old:
----
  dosfstools-3.0.24.tar.xz
  dosfstools-3.0.24.tar.xz.sig

New:
----
  dosfstools-3.0.25.tar.xz
  dosfstools-3.0.25.tar.xz.sig

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ dosfstools.spec ++++++
--- /var/tmp/diff_new_pack.Z8Gs23/_old  2014-03-09 18:18:42.000000000 +0100
+++ /var/tmp/diff_new_pack.Z8Gs23/_new  2014-03-09 18:18:42.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package dosfstools
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -20,7 +20,7 @@
 Summary:        Utilities for Making and Checking MS-DOS FAT File Systems on 
Linux
 License:        GPL-3.0+
 Group:          System/Filesystems
-Version:        3.0.24
+Version:        3.0.25
 Release:        0
 Url:            http://daniel-baumann.ch/software/dosfstools/
 

++++++ dosfstools-3.0.24.tar.xz -> dosfstools-3.0.25.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/ChangeLog 
new/dosfstools-3.0.25/ChangeLog
--- old/dosfstools-3.0.24/ChangeLog     2013-11-23 10:36:44.000000000 +0100
+++ new/dosfstools-3.0.25/ChangeLog     2014-01-17 07:10:47.000000000 +0100
@@ -1,4 +1,42 @@
-commit 55bd7b7 (HEAD, master)
+commit acf64ae (HEAD, origin/master, origin/HEAD, master)
+Author: Daniel Baumann <[email protected]>
+Date:   Fri Jan 17 07:09:54 2014 +0100
+
+    Updating copyright headers for 2014.
+    
+    Signed-off-by: Daniel Baumann <[email protected]>
+
+commit 21fe921
+Author: Andrew Tridgell <[email protected]>
+Date:   Tue Jan 14 09:37:51 2014 +1100
+
+    Fixed remaining 64 bit build warnings.
+    
+    Some of these may be real bugs.
+    
+    Signed-off-by: Daniel Baumann <[email protected]>
+
+commit 9e3a2b1
+Author: Andrew Tridgell <[email protected]>
+Date:   Tue Jan 14 09:25:28 2014 +1100
+
+    Prevent corruption of FAT during fsck on 64 bit platforms.
+    
+    unsigned long is 64 bit on x86-64, which means set_fat was writing two
+    entries, which corrupts the next entry. This can cause loss of data in
+    another file.
+    
+    Signed-off-by: Daniel Baumann <[email protected]>
+
+commit 0d2c9bc (tag: v3.0.24)
+Author: Daniel Baumann <[email protected]>
+Date:   Sat Nov 23 10:36:55 2013 +0100
+
+    Releasing version 3.0.24.
+    
+    Signed-off-by: Daniel Baumann <[email protected]>
+
+commit 55bd7b7
 Author: Jaroslav Skarvada <[email protected]>
 Date:   Sat Nov 23 10:34:48 2013 +0100
 
@@ -11,7 +49,7 @@
     
     Signed-off-by: Daniel Baumann <[email protected]>
 
-commit 6debb4a (tag: v3.0.23, origin/master, origin/HEAD)
+commit 6debb4a (tag: v3.0.23)
 Author: Daniel Baumann <[email protected]>
 Date:   Tue Oct 15 08:05:46 2013 +0200
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/Makefile 
new/dosfstools-3.0.25/Makefile
--- old/dosfstools-3.0.24/Makefile      2013-07-19 18:14:31.000000000 +0200
+++ new/dosfstools-3.0.25/Makefile      2014-01-17 07:09:28.000000000 +0100
@@ -1,6 +1,6 @@
 # Makefile
 #
-# Copyright (C) 2008-2013 Daniel Baumann <[email protected]>
+# Copyright (C) 2008-2014 Daniel Baumann <[email protected]>
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/VERSION 
new/dosfstools-3.0.25/VERSION
--- old/dosfstools-3.0.24/VERSION       2013-11-23 10:36:23.000000000 +0100
+++ new/dosfstools-3.0.25/VERSION       2014-01-17 07:10:17.000000000 +0100
@@ -1 +1 @@
-3.0.24
+3.0.25
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/manpages/Makefile 
new/dosfstools-3.0.25/manpages/Makefile
--- old/dosfstools-3.0.24/manpages/Makefile     2013-07-19 07:03:32.000000000 
+0200
+++ new/dosfstools-3.0.25/manpages/Makefile     2014-01-17 07:08:57.000000000 
+0100
@@ -1,7 +1,7 @@
 # Makefile
 
 ## dosfstools(7)
-## Copyright (C) 2006-2013 Daniel Baumann <[email protected]>
+## Copyright (C) 2006-2014 Daniel Baumann <[email protected]>
 ##
 ## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
 ## This is free software, and you are welcome to redistribute it
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/manpages/bin/update-version.sh 
new/dosfstools-3.0.25/manpages/bin/update-version.sh
--- old/dosfstools-3.0.24/manpages/bin/update-version.sh        2013-07-19 
07:03:32.000000000 +0200
+++ new/dosfstools-3.0.25/manpages/bin/update-version.sh        2014-01-17 
07:07:51.000000000 +0100
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 ## dosfstools(7)
-## Copyright (C) 2006-2013 Daniel Baumann <[email protected]>
+## Copyright (C) 2006-2014 Daniel Baumann <[email protected]>
 ##
 ## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
 ## This is free software, and you are welcome to redistribute it
@@ -36,8 +36,8 @@
        then
                for _FILE in po/${_LANGUAGE}/*.po
                do
-                       sed -i  -e "s|^msgstr .*.2013-.*$|msgstr 
\"${DAY}.${MONTH}.${YEAR}\"|g" \
-                               -e "s|^msgstr .*.2013\"$|msgstr 
\"${DAY}.${MONTH}.${YEAR}\"|g" \
+                       sed -i  -e "s|^msgstr .*.2014-.*$|msgstr 
\"${DAY}.${MONTH}.${YEAR}\"|g" \
+                               -e "s|^msgstr .*.2014\"$|msgstr 
\"${DAY}.${MONTH}.${YEAR}\"|g" \
                        "${_FILE}"
                done
        fi
@@ -48,8 +48,8 @@
 then
        for _FILE in po/pt_BR/*.po
        do
-               sed -i  -e "s|^msgstr .*.2013-.*$|msgstr 
\"${DAY}-${MONTH}-${YEAR}\"|g" \
-                       -e "s|^msgstr .*-2013\"$|msgstr 
\"${DAY}-${MONTH}-${YEAR}\"|g" \
+               sed -i  -e "s|^msgstr .*.2014-.*$|msgstr 
\"${DAY}-${MONTH}-${YEAR}\"|g" \
+                       -e "s|^msgstr .*-2014\"$|msgstr 
\"${DAY}-${MONTH}-${YEAR}\"|g" \
                "${_FILE}"
        done
 fi
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/manpages/de/fatlabel.de.8 
new/dosfstools-3.0.25/manpages/de/fatlabel.de.8
--- old/dosfstools-3.0.24/manpages/de/fatlabel.de.8     2013-11-23 
10:36:36.000000000 +0100
+++ new/dosfstools-3.0.25/manpages/de/fatlabel.de.8     2014-01-17 
07:10:32.000000000 +0100
@@ -1,6 +1,6 @@
 .\" fatlabel.8 - manpage for fatlabel
 .\"
-.\" Copyright (C) 2006-2013 Daniel Baumann <[email protected]>
+.\" Copyright (C) 2006-2014 Daniel Baumann <[email protected]>
 .\"
 .\" This program is free software: you can redistribute it and/or modify
 .\" it under the terms of the GNU General Public License as published by
@@ -24,7 +24,7 @@
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
-.TH FATLABEL 8 2013\-11\-23 3.0.24 dosfstools
+.TH FATLABEL 8 2014\-01\-17 3.0.25 dosfstools
 
 .SH NAME
 \fBfatlabel\fP \- set or get MS\-DOS filesystem label
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/manpages/de/fsck.fat.de.8 
new/dosfstools-3.0.25/manpages/de/fsck.fat.de.8
--- old/dosfstools-3.0.24/manpages/de/fsck.fat.de.8     2013-11-23 
10:36:36.000000000 +0100
+++ new/dosfstools-3.0.25/manpages/de/fsck.fat.de.8     2014-01-17 
07:10:32.000000000 +0100
@@ -1,6 +1,6 @@
 .\" fsck.fat.8 - manpage for fsck.fat
 .\"
-.\" Copyright (C) 2006-2013 Daniel Baumann <[email protected]>
+.\" Copyright (C) 2006-2014 Daniel Baumann <[email protected]>
 .\"
 .\" This program is free software: you can redistribute it and/or modify
 .\" it under the terms of the GNU General Public License as published by
@@ -24,7 +24,7 @@
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
-.TH FSCK.FAT 8 2013\-11\-23 3.0.24 dosfstools
+.TH FSCK.FAT 8 2014\-01\-17 3.0.25 dosfstools
 
 .SH NAME
 \fBfsck.fat\fP \- check and repair MS\-DOS filesystems
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/manpages/de/mkfs.fat.de.8 
new/dosfstools-3.0.25/manpages/de/mkfs.fat.de.8
--- old/dosfstools-3.0.24/manpages/de/mkfs.fat.de.8     2013-11-23 
10:36:36.000000000 +0100
+++ new/dosfstools-3.0.25/manpages/de/mkfs.fat.de.8     2014-01-17 
07:10:32.000000000 +0100
@@ -1,6 +1,6 @@
 .\" mkfs.fat.8 - manpage for fs.fatck
 .\"
-.\" Copyright (C) 2006-2013 Daniel Baumann <[email protected]>
+.\" Copyright (C) 2006-2014 Daniel Baumann <[email protected]>
 .\"
 .\" This program is free software: you can redistribute it and/or modify
 .\" it under the terms of the GNU General Public License as published by
@@ -24,7 +24,7 @@
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
-.TH MKFS.FAT 8 2013\-11\-23 3.0.24 dosfstools
+.TH MKFS.FAT 8 2014\-01\-17 3.0.25 dosfstools
 
 .SH NAME
 \fBmkfs.fat\fP \- create an MS\-DOS filesystem under Linux
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/manpages/en/fatlabel.8 
new/dosfstools-3.0.25/manpages/en/fatlabel.8
--- old/dosfstools-3.0.24/manpages/en/fatlabel.8        2013-11-23 
10:36:35.000000000 +0100
+++ new/dosfstools-3.0.25/manpages/en/fatlabel.8        2014-01-17 
07:10:31.000000000 +0100
@@ -1,6 +1,6 @@
 .\" fatlabel.8 - manpage for fatlabel
 .\"
-.\" Copyright (C) 2006-2013 Daniel Baumann <[email protected]>
+.\" Copyright (C) 2006-2014 Daniel Baumann <[email protected]>
 .\"
 .\" This program is free software: you can redistribute it and/or modify
 .\" it under the terms of the GNU General Public License as published by
@@ -19,7 +19,7 @@
 .\" can be found in /usr/share/common-licenses/GPL-3 file.
 .\"
 .\"
-.TH FATLABEL 8 2013\-11\-23 3.0.24 "dosfstools"
+.TH FATLABEL 8 2014\-01\-17 3.0.25 "dosfstools"
 
 .SH NAME
 \fBfatlabel\fR \- set or get MS\-DOS filesystem label
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/manpages/en/fsck.fat.8 
new/dosfstools-3.0.25/manpages/en/fsck.fat.8
--- old/dosfstools-3.0.24/manpages/en/fsck.fat.8        2013-11-23 
10:36:35.000000000 +0100
+++ new/dosfstools-3.0.25/manpages/en/fsck.fat.8        2014-01-17 
07:10:31.000000000 +0100
@@ -1,6 +1,6 @@
 .\" fsck.fat.8 - manpage for fsck.fat
 .\"
-.\" Copyright (C) 2006-2013 Daniel Baumann <[email protected]>
+.\" Copyright (C) 2006-2014 Daniel Baumann <[email protected]>
 .\"
 .\" This program is free software: you can redistribute it and/or modify
 .\" it under the terms of the GNU General Public License as published by
@@ -19,7 +19,7 @@
 .\" can be found in /usr/share/common-licenses/GPL-3 file.
 .\"
 .\"
-.TH FSCK.FAT 8 2013\-11\-23 3.0.24 "dosfstools"
+.TH FSCK.FAT 8 2014\-01\-17 3.0.25 "dosfstools"
 
 .SH NAME
 \fBfsck.fat\fR \- check and repair MS\-DOS filesystems
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/manpages/en/mkfs.fat.8 
new/dosfstools-3.0.25/manpages/en/mkfs.fat.8
--- old/dosfstools-3.0.24/manpages/en/mkfs.fat.8        2013-11-23 
10:36:35.000000000 +0100
+++ new/dosfstools-3.0.25/manpages/en/mkfs.fat.8        2014-01-17 
07:10:31.000000000 +0100
@@ -1,6 +1,6 @@
 .\" mkfs.fat.8 - manpage for fs.fatck
 .\"
-.\" Copyright (C) 2006-2013 Daniel Baumann <[email protected]>
+.\" Copyright (C) 2006-2014 Daniel Baumann <[email protected]>
 .\"
 .\" This program is free software: you can redistribute it and/or modify
 .\" it under the terms of the GNU General Public License as published by
@@ -19,7 +19,7 @@
 .\" can be found in /usr/share/common-licenses/GPL-3 file.
 .\"
 .\"
-.TH MKFS.FAT 8 2013\-11\-23 3.0.24 "dosfstools"
+.TH MKFS.FAT 8 2014\-01\-17 3.0.25 "dosfstools"
 
 .SH NAME
 \fBmkfs.fat\fR \- create an MS-DOS filesystem under Linux
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/manpages/po/de/fatlabel.8.po 
new/dosfstools-3.0.25/manpages/po/de/fatlabel.8.po
--- old/dosfstools-3.0.24/manpages/po/de/fatlabel.8.po  2013-11-23 
10:36:36.000000000 +0100
+++ new/dosfstools-3.0.25/manpages/po/de/fatlabel.8.po  2014-01-17 
07:10:32.000000000 +0100
@@ -1,12 +1,9 @@
 # German translations for dosfstools package
-# Copyright (C) 2013 Free Software Foundation, Inc.
-# This file is distributed under the same license as the dosfstools package.
-# Automatically generated, 2013.
 #
 msgid ""
 msgstr ""
 "Project-Id-Version: dosfstools VERSION\n"
-"POT-Creation-Date: 2013-11-23 10:36+0100\n"
+"POT-Creation-Date: 2014-01-17 07:10+0100\n"
 "PO-Revision-Date: 2013-06-06 09:34+0300\n"
 "Last-Translator: Automatically generated\n"
 "Language-Team: none\n"
@@ -25,13 +22,13 @@
 #. type: TH
 #: en/fatlabel.8:22 en/fsck.fat.8:22 en/mkfs.fat.8:22
 #, no-wrap
-msgid "2013-11-23"
+msgid "2014-01-17"
 msgstr ""
 
 #. type: TH
 #: en/fatlabel.8:22 en/fsck.fat.8:22 en/mkfs.fat.8:22
 #, no-wrap
-msgid "3.0.24"
+msgid "3.0.25"
 msgstr ""
 
 #. type: TH
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/manpages/po/de/fsck.fat.8.po 
new/dosfstools-3.0.25/manpages/po/de/fsck.fat.8.po
--- old/dosfstools-3.0.24/manpages/po/de/fsck.fat.8.po  2013-11-23 
10:36:36.000000000 +0100
+++ new/dosfstools-3.0.25/manpages/po/de/fsck.fat.8.po  2014-01-17 
07:10:32.000000000 +0100
@@ -1,12 +1,9 @@
 # German translations for dosfstools package
-# Copyright (C) 2013 Free Software Foundation, Inc.
-# This file is distributed under the same license as the dosfstools package.
-# Automatically generated, 2013.
 #
 msgid ""
 msgstr ""
 "Project-Id-Version: dosfstools VERSION\n"
-"POT-Creation-Date: 2013-11-23 10:36+0100\n"
+"POT-Creation-Date: 2014-01-17 07:10+0100\n"
 "PO-Revision-Date: 2013-06-06 09:34+0300\n"
 "Last-Translator: Automatically generated\n"
 "Language-Team: none\n"
@@ -19,13 +16,13 @@
 #. type: TH
 #: en/fatlabel.8:22 en/fsck.fat.8:22 en/mkfs.fat.8:22
 #, no-wrap
-msgid "2013-11-23"
+msgid "2014-01-17"
 msgstr ""
 
 #. type: TH
 #: en/fatlabel.8:22 en/fsck.fat.8:22 en/mkfs.fat.8:22
 #, no-wrap
-msgid "3.0.24"
+msgid "3.0.25"
 msgstr ""
 
 #. type: TH
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/manpages/po/de/mkfs.fat.8.po 
new/dosfstools-3.0.25/manpages/po/de/mkfs.fat.8.po
--- old/dosfstools-3.0.24/manpages/po/de/mkfs.fat.8.po  2013-11-23 
10:36:36.000000000 +0100
+++ new/dosfstools-3.0.25/manpages/po/de/mkfs.fat.8.po  2014-01-17 
07:10:32.000000000 +0100
@@ -1,12 +1,9 @@
 # German translations for dosfstools package
-# Copyright (C) 2013 Free Software Foundation, Inc.
-# This file is distributed under the same license as the dosfstools package.
-# Automatically generated, 2013.
 #
 msgid ""
 msgstr ""
 "Project-Id-Version: dosfstools VERSION\n"
-"POT-Creation-Date: 2013-11-23 10:36+0100\n"
+"POT-Creation-Date: 2014-01-17 07:10+0100\n"
 "PO-Revision-Date: 2013-06-06 09:34+0300\n"
 "Last-Translator: Automatically generated\n"
 "Language-Team: none\n"
@@ -19,13 +16,13 @@
 #. type: TH
 #: en/fatlabel.8:22 en/fsck.fat.8:22 en/mkfs.fat.8:22
 #, no-wrap
-msgid "2013-11-23"
+msgid "2014-01-17"
 msgstr ""
 
 #. type: TH
 #: en/fatlabel.8:22 en/fsck.fat.8:22 en/mkfs.fat.8:22
 #, no-wrap
-msgid "3.0.24"
+msgid "3.0.25"
 msgstr ""
 
 #. type: TH
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/manpages/pot/fatlabel.8.pot 
new/dosfstools-3.0.25/manpages/pot/fatlabel.8.pot
--- old/dosfstools-3.0.24/manpages/pot/fatlabel.8.pot   2013-11-23 
10:36:36.000000000 +0100
+++ new/dosfstools-3.0.25/manpages/pot/fatlabel.8.pot   2014-01-17 
07:10:31.000000000 +0100
@@ -7,7 +7,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: dosfstools VERSION\n"
-"POT-Creation-Date: 2013-11-23 10:36+0100\n"
+"POT-Creation-Date: 2014-01-17 07:10+0100\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <[email protected]>\n"
@@ -25,13 +25,13 @@
 #. type: TH
 #: en/fatlabel.8:22 en/fsck.fat.8:22 en/mkfs.fat.8:22
 #, no-wrap
-msgid "2013-11-23"
+msgid "2014-01-17"
 msgstr ""
 
 #. type: TH
 #: en/fatlabel.8:22 en/fsck.fat.8:22 en/mkfs.fat.8:22
 #, no-wrap
-msgid "3.0.24"
+msgid "3.0.25"
 msgstr ""
 
 #. type: TH
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/manpages/pot/fsck.fat.8.pot 
new/dosfstools-3.0.25/manpages/pot/fsck.fat.8.pot
--- old/dosfstools-3.0.24/manpages/pot/fsck.fat.8.pot   2013-11-23 
10:36:36.000000000 +0100
+++ new/dosfstools-3.0.25/manpages/pot/fsck.fat.8.pot   2014-01-17 
07:10:31.000000000 +0100
@@ -7,7 +7,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: dosfstools VERSION\n"
-"POT-Creation-Date: 2013-11-23 10:36+0100\n"
+"POT-Creation-Date: 2014-01-17 07:10+0100\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <[email protected]>\n"
@@ -19,13 +19,13 @@
 #. type: TH
 #: en/fatlabel.8:22 en/fsck.fat.8:22 en/mkfs.fat.8:22
 #, no-wrap
-msgid "2013-11-23"
+msgid "2014-01-17"
 msgstr ""
 
 #. type: TH
 #: en/fatlabel.8:22 en/fsck.fat.8:22 en/mkfs.fat.8:22
 #, no-wrap
-msgid "3.0.24"
+msgid "3.0.25"
 msgstr ""
 
 #. type: TH
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/manpages/pot/mkfs.fat.8.pot 
new/dosfstools-3.0.25/manpages/pot/mkfs.fat.8.pot
--- old/dosfstools-3.0.24/manpages/pot/mkfs.fat.8.pot   2013-11-23 
10:36:36.000000000 +0100
+++ new/dosfstools-3.0.25/manpages/pot/mkfs.fat.8.pot   2014-01-17 
07:10:31.000000000 +0100
@@ -7,7 +7,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: dosfstools VERSION\n"
-"POT-Creation-Date: 2013-11-23 10:36+0100\n"
+"POT-Creation-Date: 2014-01-17 07:10+0100\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <[email protected]>\n"
@@ -19,13 +19,13 @@
 #. type: TH
 #: en/fatlabel.8:22 en/fsck.fat.8:22 en/mkfs.fat.8:22
 #, no-wrap
-msgid "2013-11-23"
+msgid "2014-01-17"
 msgstr ""
 
 #. type: TH
 #: en/fatlabel.8:22 en/fsck.fat.8:22 en/mkfs.fat.8:22
 #, no-wrap
-msgid "3.0.24"
+msgid "3.0.25"
 msgstr ""
 
 #. type: TH
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/src/boot.c 
new/dosfstools-3.0.25/src/boot.c
--- old/dosfstools-3.0.24/src/boot.c    2013-11-23 10:34:03.000000000 +0100
+++ new/dosfstools-3.0.25/src/boot.c    2014-01-17 07:06:54.000000000 +0100
@@ -2,7 +2,7 @@
 
    Copyright (C) 1993 Werner Almesberger <[email protected]>
    Copyright (C) 1998 Roman Hodek <[email protected]>
-   Copyright (C) 2008-2013 Daniel Baumann <[email protected]>
+   Copyright (C) 2008-2014 Daniel Baumann <[email protected]>
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -110,12 +110,12 @@
        printf("%10d root directory entries\n", fs->root_entries);
     } else {
        printf("Root directory start at cluster %lu (arbitrary size)\n",
-              fs->root_cluster);
+              (unsigned long)fs->root_cluster);
     }
     printf("Data area starts at byte %llu (sector %llu)\n",
           (unsigned long long)fs->data_start,
           (unsigned long long)fs->data_start / lss);
-    printf("%10lu data clusters (%llu bytes)\n", fs->clusters,
+    printf("%10lu data clusters (%llu bytes)\n", (unsigned long)fs->clusters,
           (unsigned long long)fs->clusters * fs->cluster_size);
     printf("%u sectors/track, %u heads\n", le16toh(b->secs_track),
           le16toh(b->heads));
@@ -391,7 +391,7 @@
                   "  but has only %lu clusters, less than the required "
                   "minimum of %d.\n"
                   "  This may lead to problems on some systems.\n",
-                  fs->clusters, FAT16_THRESHOLD);
+                  (unsigned long)fs->clusters, FAT16_THRESHOLD);
 
        check_fat_state_bit(fs, &b);
        fs->backupboot_start = le16toh(b.backup_boot) * logical_sector_size;
@@ -440,7 +440,7 @@
     }
 
     if (fs->clusters >
-       ((unsigned long long)fs->fat_size * 8 / fs->fat_bits) - 2)
+       ((uint64_t)fs->fat_size * 8 / fs->fat_bits) - 2)
        die("Filesystem has %d clusters but only space for %d FAT entries.",
            fs->clusters,
            ((unsigned long long)fs->fat_size * 8 / fs->fat_bits) - 2);
@@ -493,7 +493,7 @@
 
 loff_t find_volume_de(DOS_FS * fs, DIR_ENT * de)
 {
-    unsigned long cluster;
+    uint32_t cluster;
     loff_t offset;
     int i;
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/src/boot.h 
new/dosfstools-3.0.25/src/boot.h
--- old/dosfstools-3.0.24/src/boot.h    2013-07-19 07:03:32.000000000 +0200
+++ new/dosfstools-3.0.25/src/boot.h    2014-01-17 07:06:55.000000000 +0100
@@ -1,7 +1,7 @@
 /* boot.h - Read and analyze ia PC/MS-DOS boot sector
 
    Copyright (C) 1993 Werner Almesberger <[email protected]>
-   Copyright (C) 2008-2013 Daniel Baumann <[email protected]>
+   Copyright (C) 2008-2014 Daniel Baumann <[email protected]>
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/src/check.c 
new/dosfstools-3.0.25/src/check.c
--- old/dosfstools-3.0.24/src/check.c   2013-07-19 07:03:32.000000000 +0200
+++ new/dosfstools-3.0.25/src/check.c   2014-01-17 07:07:01.000000000 +0100
@@ -2,7 +2,7 @@
 
    Copyright (C) 1993 Werner Almesberger <[email protected]>
    Copyright (C) 1998 Roman Hodek <[email protected]>
-   Copyright (C) 2008-2013 Daniel Baumann <[email protected]>
+   Copyright (C) 2008-2014 Daniel Baumann <[email protected]>
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -42,7 +42,7 @@
 
 /* get start field of a dir entry */
 #define FSTART(p,fs) \
-  ((unsigned long)le16toh(p->dir_ent.start) | \
+  ((uint32_t)le16toh(p->dir_ent.start) | \
    (fs->fat_bits == 32 ? le16toh(p->dir_ent.starthi) << 16 : 0))
 
 #define MODIFY(p,i,v)                                  \
@@ -56,7 +56,7 @@
 
 #define MODIFY_START(p,v,fs)                                           \
   do {                                                                 \
-    unsigned long __v = (v);                                           \
+    uint32_t __v = (v);                                                \
     if (!p->offset) {                                                  \
        /* writing to fake entry for FAT32 root dir */                  \
        if (!__v) die("Oops, deleting FAT32 root dir!");                \
@@ -83,7 +83,7 @@
     if (fs->root_cluster) {
        DIR_ENT d2;
        int i = 0, got = 0;
-       unsigned long clu_num, prev = 0;
+       uint32_t clu_num, prev = 0;
        loff_t offset2;
 
        clu_num = fs->root_cluster;
@@ -345,7 +345,7 @@
 
 static void drop_file(DOS_FS * fs, DOS_FILE * file)
 {
-    unsigned long cluster;
+    uint32_t cluster;
 
     MODIFY(file, name[0], DELETED_FLAG);
     if (file->lfn)
@@ -356,13 +356,12 @@
     --n_files;
 }
 
-static void truncate_file(DOS_FS * fs, DOS_FILE * file, unsigned long clusters)
+static void truncate_file(DOS_FS * fs, DOS_FILE * file, uint32_t clusters)
 {
     int deleting;
-    unsigned long walk, next, prev;
+    uint32_t walk, next;
 
     walk = FSTART(file, fs);
-    prev = 0;
     if ((deleting = !clusters))
        MODIFY_START(file, 0, fs);
     while (walk > 0 && walk != -1) {
@@ -371,7 +370,6 @@
            set_fat(fs, walk, 0);
        else if ((deleting = !--clusters))
            set_fat(fs, walk, -1);
-       prev = walk;
        walk = next;
     }
 }
@@ -379,7 +377,7 @@
 static void auto_rename(DOS_FILE * file)
 {
     DOS_FILE *first, *walk;
-    unsigned long int number;
+    uint32_t number;
 
     if (!file->offset)
        return;                 /* cannot rename FAT32 root dir */
@@ -387,7 +385,7 @@
     number = 0;
     while (1) {
        char num[8];
-       sprintf(num, "%07lu", number);
+       sprintf(num, "%07lu", (unsigned long)number);
        memcpy(file->dir_ent.name, "FSCK", 4);
        memcpy(file->dir_ent.name + 4, num, 4);
        memcpy(file->dir_ent.ext, num + 4, 3);
@@ -484,7 +482,7 @@
 {
     DOS_FILE *owner;
     int restart;
-    unsigned long expect, curr, this, clusters, prev, walk, clusters2;
+    uint32_t expect, curr, this, clusters, prev, walk, clusters2;
 
     if (file->dir_ent.attr & ATTR_DIR) {
        if (le32toh(file->dir_ent.size)) {
@@ -497,8 +495,8 @@
                        MSDOS_NAME)) {
            expect = FSTART(file->parent, fs);
            if (FSTART(file, fs) != expect) {
-               printf("%s\n  Start (%ld) does not point to parent (%ld)\n",
-                      path_name(file), FSTART(file, fs), expect);
+               printf("%s\n  Start (%lu) does not point to parent (%lu)\n",
+                      path_name(file), (unsigned long)FSTART(file, fs), 
(long)expect);
                MODIFY_START(file, expect, fs);
            }
            return 0;
@@ -512,7 +510,7 @@
                expect = 0;
            if (FSTART(file, fs) != expect) {
                printf("%s\n  Start (%lu) does not point to .. (%lu)\n",
-                      path_name(file), FSTART(file, fs), expect);
+                      path_name(file), (unsigned long)FSTART(file, fs), 
(unsigned long)expect);
                MODIFY_START(file, expect, fs);
            }
            return 0;
@@ -527,7 +525,7 @@
     if (FSTART(file, fs) >= fs->clusters + 2) {
        printf
            ("%s\n  Start cluster beyond limit (%lu > %lu). Truncating file.\n",
-            path_name(file), FSTART(file, fs), fs->clusters + 1);
+            path_name(file), (unsigned long)FSTART(file, fs), (unsigned 
long)(fs->clusters + 1));
        if (!file->offset)
            die("Bad FAT32 root directory! (bad start cluster)\n");
        MODIFY_START(file, 0, fs);
@@ -540,7 +538,7 @@
 
        if (!curEntry.value || bad_cluster(fs, curr)) {
            printf("%s\n  Contains a %s cluster (%lu). Assuming EOF.\n",
-                  path_name(file), curEntry.value ? "bad" : "free", curr);
+                  path_name(file), curEntry.value ? "bad" : "free", (unsigned 
long)curr);
            if (prev)
                set_fat(fs, prev, -1);
            else if (!file->offset)
@@ -550,12 +548,12 @@
            break;
        }
        if (!(file->dir_ent.attr & ATTR_DIR) && le32toh(file->dir_ent.size) <=
-           (unsigned long long)clusters * fs->cluster_size) {
+           (uint64_t)clusters * fs->cluster_size) {
            printf
-               ("%s\n  File size is %u bytes, cluster chain length is > %llu "
+               ("%s\n  File size is %u bytes, cluster chain length is > %lu "
                 "bytes.\n  Truncating file to %u bytes.\n", path_name(file),
                 le32toh(file->dir_ent.size),
-                (unsigned long long)clusters * fs->cluster_size,
+                (uint64_t)clusters * fs->cluster_size,
                 le32toh(file->dir_ent.size));
            truncate_file(fs, file, clusters);
            break;
@@ -604,7 +602,7 @@
                        else
                            MODIFY_START(owner, 0, fs);
                        MODIFY(owner, size,
-                              htole32((unsigned long long)clusters *
+                              htole32((uint64_t)clusters *
                                       fs->cluster_size));
                        if (restart)
                            return 1;
@@ -634,7 +632,7 @@
        prev = curr;
     }
     if (!(file->dir_ent.attr & ATTR_DIR) && le32toh(file->dir_ent.size) >
-       (unsigned long long)clusters * fs->cluster_size) {
+       (uint64_t)clusters * fs->cluster_size) {
        printf
            ("%s\n  File size is %u bytes, cluster chain length is %llu bytes."
             "\n  Truncating file to %llu bytes.\n", path_name(file),
@@ -642,7 +640,7 @@
             (unsigned long long)clusters * fs->cluster_size,
             (unsigned long long)clusters * fs->cluster_size);
        MODIFY(file, size,
-              htole32((unsigned long long)clusters * fs->cluster_size));
+              htole32((uint64_t)clusters * fs->cluster_size));
     }
     return 0;
 }
@@ -812,7 +810,7 @@
 static void test_file(DOS_FS * fs, DOS_FILE * file, int read_test)
 {
     DOS_FILE *owner;
-    unsigned long walk, prev, clusters, next_clu;
+    uint32_t walk, prev, clusters, next_clu;
 
     prev = clusters = 0;
     for (walk = FSTART(file, fs); walk > 0 && walk < fs->clusters + 2;
@@ -826,7 +824,7 @@
        if ((owner = get_owner(fs, walk))) {
            if (owner == file) {
                printf("%s\n  Circular cluster chain. Truncating to %lu "
-                      "cluster%s.\n", path_name(file), clusters,
+                      "cluster%s.\n", path_name(file), (unsigned long)clusters,
                       clusters == 1 ? "" : "s");
                if (prev)
                    set_fat(fs, prev, -1);
@@ -845,7 +843,7 @@
                clusters++;
            } else {
                printf("%s\n  Cluster %lu (%lu) is unreadable. Skipping it.\n",
-                      path_name(file), clusters, walk);
+                      path_name(file), (unsigned long)clusters, (unsigned 
long)walk);
                if (prev)
                    set_fat(fs, prev, next_cluster(fs, walk));
                else
@@ -868,7 +866,7 @@
 
 static void undelete(DOS_FS * fs, DOS_FILE * file)
 {
-    unsigned long clusters, left, prev, walk;
+    uint32_t clusters, left, prev, walk;
 
     clusters = left = (le32toh(file->dir_ent.size) + fs->cluster_size - 1) /
        fs->cluster_size;
@@ -896,7 +894,7 @@
        MODIFY_START(file, 0, fs);
     if (left)
        printf("Warning: Did only undelete %lu of %lu cluster%s.\n",
-              clusters - left, clusters, clusters == 1 ? "" : "s");
+              (unsigned long)clusters - left, (unsigned long)clusters, 
clusters == 1 ? "" : "s");
 
 }
 
@@ -979,7 +977,7 @@
 {
     DOS_FILE **chain;
     int i;
-    unsigned long clu_num;
+    uint32_t clu_num;
 
     chain = &this->first;
     i = 0;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/src/check.h 
new/dosfstools-3.0.25/src/check.h
--- old/dosfstools-3.0.24/src/check.h   2013-07-19 07:03:32.000000000 +0200
+++ new/dosfstools-3.0.25/src/check.h   2014-01-17 07:07:02.000000000 +0100
@@ -1,7 +1,7 @@
 /* check.h - Check and repair a PC/MS-DOS filesystem
 
    Copyright (C) 1993 Werner Almesberger <[email protected]>
-   Copyright (C) 2008-2013 Daniel Baumann <[email protected]>
+   Copyright (C) 2008-2014 Daniel Baumann <[email protected]>
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/src/common.c 
new/dosfstools-3.0.25/src/common.c
--- old/dosfstools-3.0.24/src/common.c  2013-07-19 07:03:32.000000000 +0200
+++ new/dosfstools-3.0.25/src/common.c  2014-01-17 07:07:03.000000000 +0100
@@ -2,7 +2,7 @@
 
    Copyright (C) 1993 Werner Almesberger <[email protected]>
    Copyright (C) 1998 Roman Hodek <[email protected]>
-   Copyright (C) 2008-2013 Daniel Baumann <[email protected]>
+   Copyright (C) 2008-2014 Daniel Baumann <[email protected]>
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/src/common.h 
new/dosfstools-3.0.25/src/common.h
--- old/dosfstools-3.0.24/src/common.h  2013-07-19 07:03:32.000000000 +0200
+++ new/dosfstools-3.0.25/src/common.h  2014-01-17 07:07:04.000000000 +0100
@@ -1,7 +1,7 @@
 /* common.h - Common functions
 
    Copyright (C) 1993 Werner Almesberger <[email protected]>
-   Copyright (C) 2008-2013 Daniel Baumann <[email protected]>
+   Copyright (C) 2008-2014 Daniel Baumann <[email protected]>
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/src/fat.c 
new/dosfstools-3.0.25/src/fat.c
--- old/dosfstools-3.0.24/src/fat.c     2013-07-19 07:03:32.000000000 +0200
+++ new/dosfstools-3.0.25/src/fat.c     2014-01-17 07:07:05.000000000 +0100
@@ -2,7 +2,7 @@
 
    Copyright (C) 1993 Werner Almesberger <[email protected]>
    Copyright (C) 1998 Roman Hodek <[email protected]>
-   Copyright (C) 2008-2013 Daniel Baumann <[email protected]>
+   Copyright (C) 2008-2014 Daniel Baumann <[email protected]>
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -43,7 +43,7 @@
  * @param[in]  cluster     Cluster of interest
  * @param[in]  fs          Information from the FAT boot sectors (bits per FAT 
entry)
  */
-void get_fat(FAT_ENTRY * entry, void *fat, unsigned long cluster, DOS_FS * fs)
+void get_fat(FAT_ENTRY * entry, void *fat, uint32_t cluster, DOS_FS * fs)
 {
     unsigned char *ptr;
 
@@ -60,7 +60,7 @@
        /* According to M$, the high 4 bits of a FAT32 entry are reserved and
         * are not part of the cluster number. So we cut them off. */
        {
-           unsigned long e = le32toh(((unsigned int *)fat)[cluster]);
+           uint32_t e = le32toh(((unsigned int *)fat)[cluster]);
            entry->value = e & 0xfffffff;
            entry->reserved = e >> 28;
        }
@@ -81,10 +81,10 @@
 void read_fat(DOS_FS * fs)
 {
     int eff_size;
-    unsigned long i;
+    uint32_t i;
     void *first, *second = NULL;
     int first_ok, second_ok;
-    unsigned long total_num_clusters;
+    uint32_t total_num_clusters;
 
     /* Clean up from previous pass */
     if (fs->fat)
@@ -151,13 +151,13 @@
        FAT_ENTRY curEntry;
        get_fat(&curEntry, fs->fat, i, fs);
        if (curEntry.value == 1) {
-           printf("Cluster %ld out of range (1). Setting to EOF.\n", i - 2);
+           printf("Cluster %ld out of range (1). Setting to EOF.\n", (long)(i 
- 2));
            set_fat(fs, i, -1);
        }
        if (curEntry.value >= fs->clusters + 2 &&
            (curEntry.value < FAT_MIN_BAD(fs))) {
            printf("Cluster %ld out of range (%ld > %ld). Setting to EOF.\n",
-                  i - 2, curEntry.value, fs->clusters + 2 - 1);
+                  (long)(i - 2), (long)curEntry.value, (long)(fs->clusters + 2 
- 1));
            set_fat(fs, i, -1);
        }
     }
@@ -176,13 +176,13 @@
  *                               -1 == end-of-chain
  *                               -2 == bad cluster
  */
-void set_fat(DOS_FS * fs, unsigned long cluster, unsigned long new)
+void set_fat(DOS_FS * fs, uint32_t cluster, int32_t new)
 {
     unsigned char *data = NULL;
     int size;
     loff_t offs;
 
-    if ((long)new == -1)
+    if (new == -1)
        new = FAT_EOF(fs);
     else if ((long)new == -2)
        new = FAT_BAD(fs);
@@ -219,7 +219,7 @@
            offs = fs->fat_start + cluster * 4;
            /* According to M$, the high 4 bits of a FAT32 entry are reserved 
and
             * are not part of the cluster number. So we never touch them. */
-           *(unsigned long *)data = htole32((new & 0xfffffff) |
+           *(uint32_t *)data = htole32((new & 0xfffffff) |
                                             (curEntry.reserved << 28));
            size = 4;
        }
@@ -233,7 +233,7 @@
     }
 }
 
-int bad_cluster(DOS_FS * fs, unsigned long cluster)
+int bad_cluster(DOS_FS * fs, uint32_t cluster)
 {
     FAT_ENTRY curEntry;
     get_fat(&curEntry, fs->fat, cluster, fs);
@@ -251,9 +251,9 @@
  * @return  -1              'cluster' is at the end of the chain
  * @return  Other values    Next cluster in this chain
  */
-unsigned long next_cluster(DOS_FS * fs, unsigned long cluster)
+uint32_t next_cluster(DOS_FS * fs, uint32_t cluster)
 {
-    unsigned long value;
+    uint32_t value;
     FAT_ENTRY curEntry;
 
     get_fat(&curEntry, fs->fat, cluster, fs);
@@ -264,10 +264,10 @@
     return FAT_IS_EOF(fs, value) ? -1 : value;
 }
 
-loff_t cluster_start(DOS_FS * fs, unsigned long cluster)
+loff_t cluster_start(DOS_FS * fs, uint32_t cluster)
 {
     return fs->data_start + ((loff_t) cluster -
-                            2) * (unsigned long long)fs->cluster_size;
+                            2) * (uint64_t)fs->cluster_size;
 }
 
 /**
@@ -279,7 +279,7 @@
  * @param[in]      owner       Information on dentry that owns this cluster
  *                              (may be NULL)
  */
-void set_owner(DOS_FS * fs, unsigned long cluster, DOS_FILE * owner)
+void set_owner(DOS_FS * fs, uint32_t cluster, DOS_FILE * owner)
 {
     if (fs->cluster_owner == NULL)
        die("Internal error: attempt to set owner in non-existent table");
@@ -290,7 +290,7 @@
     fs->cluster_owner[cluster] = owner;
 }
 
-DOS_FILE *get_owner(DOS_FS * fs, unsigned long cluster)
+DOS_FILE *get_owner(DOS_FS * fs, uint32_t cluster)
 {
     if (fs->cluster_owner == NULL)
        return NULL;
@@ -300,7 +300,7 @@
 
 void fix_bad(DOS_FS * fs)
 {
-    unsigned long i;
+    uint32_t i;
 
     if (verbose)
        printf("Checking for bad clusters.\n");
@@ -310,7 +310,7 @@
 
        if (!get_owner(fs, i) && !FAT_IS_BAD(fs, curEntry.value))
            if (!fs_test(cluster_start(fs, i), fs->cluster_size)) {
-               printf("Cluster %lu is unreadable.\n", i);
+               printf("Cluster %lu is unreadable.\n", (unsigned long)i);
                set_fat(fs, i, -2);
            }
     }
@@ -319,7 +319,7 @@
 void reclaim_free(DOS_FS * fs)
 {
     int reclaimed;
-    unsigned long i;
+    uint32_t i;
 
     if (verbose)
        printf("Checking for unused clusters.\n");
@@ -335,7 +335,7 @@
        }
     }
     if (reclaimed)
-       printf("Reclaimed %d unused cluster%s (%llu bytes).\n", reclaimed,
+       printf("Reclaimed %d unused cluster%s (%llu bytes).\n", (int)reclaimed,
               reclaimed == 1 ? "" : "s",
               (unsigned long long)reclaimed * fs->cluster_size);
 }
@@ -350,11 +350,11 @@
  *                                clusters link to it.
  * @param[in]      start_cluster  Where to start scanning for orphans
  */
-static void tag_free(DOS_FS * fs, DOS_FILE * owner, unsigned long *num_refs,
-                    unsigned long start_cluster)
+static void tag_free(DOS_FS * fs, DOS_FILE * owner, uint32_t *num_refs,
+                    uint32_t start_cluster)
 {
     int prev;
-    unsigned long i, walk;
+    uint32_t i, walk;
 
     if (start_cluster == 0)
        start_cluster = 2;
@@ -403,16 +403,16 @@
     DOS_FILE orphan;
     int reclaimed, files;
     int changed = 0;
-    unsigned long i, next, walk;
-    unsigned long *num_refs = NULL;    /* Only for orphaned clusters */
-    unsigned long total_num_clusters;
+    uint32_t i, next, walk;
+    uint32_t *num_refs = NULL; /* Only for orphaned clusters */
+    uint32_t total_num_clusters;
 
     if (verbose)
        printf("Reclaiming unconnected clusters.\n");
 
     total_num_clusters = fs->clusters + 2UL;
-    num_refs = alloc(total_num_clusters * sizeof(unsigned long));
-    memset(num_refs, 0, (total_num_clusters * sizeof(unsigned long)));
+    num_refs = alloc(total_num_clusters * sizeof(uint32_t));
+    memset(num_refs, 0, (total_num_clusters * sizeof(uint32_t)));
 
     /* Guarantee that all orphan chains (except cycles) end cleanly
      * with an end-of-chain mark.
@@ -457,7 +457,7 @@
                    die("Internal error: num_refs going below zero");
                set_fat(fs, i, -1);
                changed = curEntry.value;
-               printf("Broke cycle at cluster %lu in free chain.\n", i);
+               printf("Broke cycle at cluster %lu in free chain.\n", (unsigned 
long)i);
 
                /* If we've created a new chain head,
                 * tag_free() can claim it
@@ -497,10 +497,10 @@
     free(num_refs);
 }
 
-unsigned long update_free(DOS_FS * fs)
+uint32_t update_free(DOS_FS * fs)
 {
-    unsigned long i;
-    unsigned long free = 0;
+    uint32_t i;
+    uint32_t free = 0;
     int do_set = 0;
 
     for (i = 2; i < fs->clusters + 2; i++) {
@@ -519,7 +519,7 @@
     if (fs->free_clusters != 0xFFFFFFFF) {
        if (free != fs->free_clusters) {
            printf("Free cluster summary wrong (%ld vs. really %ld)\n",
-                  fs->free_clusters, free);
+                  (long)fs->free_clusters, (long)free);
            if (interactive)
                printf("1) Correct\n2) Don't correct\n");
            else
@@ -528,7 +528,7 @@
                do_set = 1;
        }
     } else {
-       printf("Free cluster summary uninitialized (should be %ld)\n", free);
+       printf("Free cluster summary uninitialized (should be %ld)\n", 
(long)free);
        if (rw) {
            if (interactive)
                printf("1) Set it\n2) Leave it uninitialized\n");
@@ -540,7 +540,7 @@
     }
 
     if (do_set) {
-       unsigned long le_free = htole32(free);
+       uint32_t le_free = htole32(free);
        fs->free_clusters = free;
        fs_write(fs->fsinfo_start + offsetof(struct info_sector, free_clusters),
                 sizeof(le_free), &le_free);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/src/fat.h 
new/dosfstools-3.0.25/src/fat.h
--- old/dosfstools-3.0.24/src/fat.h     2013-07-19 07:03:32.000000000 +0200
+++ new/dosfstools-3.0.25/src/fat.h     2014-01-17 07:07:07.000000000 +0100
@@ -1,7 +1,7 @@
 /* fat.h - Read/write access to the FAT
 
    Copyright (C) 1993 Werner Almesberger <[email protected]>
-   Copyright (C) 2008-2013 Daniel Baumann <[email protected]>
+   Copyright (C) 2008-2014 Daniel Baumann <[email protected]>
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -28,38 +28,38 @@
 /* Loads the FAT of the filesystem described by FS. Initializes the FAT,
    replaces broken FATs and rejects invalid cluster entries. */
 
-void get_fat(FAT_ENTRY * entry, void *fat, unsigned long cluster, DOS_FS * fs);
+void get_fat(FAT_ENTRY * entry, void *fat, uint32_t cluster, DOS_FS * fs);
 
 /* Retrieve the FAT entry (next chained cluster) for CLUSTER. */
 
-void set_fat(DOS_FS * fs, unsigned long cluster, unsigned long new);
+void set_fat(DOS_FS * fs, uint32_t cluster, int32_t new);
 
 /* Changes the value of the CLUSTERth cluster of the FAT of FS to NEW. Special
    values of NEW are -1 (EOF, 0xff8 or 0xfff8) and -2 (bad sector, 0xff7 or
    0xfff7) */
 
-int bad_cluster(DOS_FS * fs, unsigned long cluster);
+int bad_cluster(DOS_FS * fs, uint32_t cluster);
 
 /* Returns a non-zero integer if the CLUSTERth cluster is marked as bad or zero
    otherwise. */
 
-unsigned long next_cluster(DOS_FS * fs, unsigned long cluster);
+uint32_t next_cluster(DOS_FS * fs, uint32_t cluster);
 
 /* Returns the number of the cluster following CLUSTER, or -1 if this is the
    last cluster of the respective cluster chain. CLUSTER must not be a bad
    cluster. */
 
-loff_t cluster_start(DOS_FS * fs, unsigned long cluster);
+loff_t cluster_start(DOS_FS * fs, uint32_t cluster);
 
 /* Returns the byte offset of CLUSTER, relative to the respective device. */
 
-void set_owner(DOS_FS * fs, unsigned long cluster, DOS_FILE * owner);
+void set_owner(DOS_FS * fs, uint32_t cluster, DOS_FILE * owner);
 
 /* Sets the owner pointer of the respective cluster to OWNER. If OWNER was NULL
    before, it can be set to NULL or any non-NULL value. Otherwise, only NULL is
    accepted as the new value. */
 
-DOS_FILE *get_owner(DOS_FS * fs, unsigned long cluster);
+DOS_FILE *get_owner(DOS_FS * fs, uint32_t cluster);
 
 /* Returns the owner of the repective cluster or NULL if the cluster has no
    owner. */
@@ -78,7 +78,7 @@
    for them in the root directory. Also tries to fix all inconsistencies (e.g.
    loops, shared clusters, etc.) in the process. */
 
-unsigned long update_free(DOS_FS * fs);
+uint32_t update_free(DOS_FS * fs);
 
 /* Updates free cluster count in FSINFO sector. */
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/src/fatlabel.c 
new/dosfstools-3.0.25/src/fatlabel.c
--- old/dosfstools-3.0.24/src/fatlabel.c        2013-07-19 07:03:32.000000000 
+0200
+++ new/dosfstools-3.0.25/src/fatlabel.c        2014-01-17 07:07:08.000000000 
+0100
@@ -3,7 +3,7 @@
    Copyright (C) 1993 Werner Almesberger <[email protected]>
    Copyright (C) 1998 Roman Hodek <[email protected]>
    Copyright (C) 2007 Red Hat, Inc.
-   Copyright (C) 2008-2013 Daniel Baumann <[email protected]>
+   Copyright (C) 2008-2014 Daniel Baumann <[email protected]>
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/src/file.c 
new/dosfstools-3.0.25/src/file.c
--- old/dosfstools-3.0.24/src/file.c    2013-07-19 07:03:32.000000000 +0200
+++ new/dosfstools-3.0.25/src/file.c    2014-01-17 07:07:09.000000000 +0100
@@ -2,7 +2,7 @@
 
    Copyright (C) 1993 Werner Almesberger <[email protected]>
    Copyright (C) 1998 Roman Hodek <[email protected]>
-   Copyright (C) 2008-2013 Daniel Baumann <[email protected]>
+   Copyright (C) 2008-2014 Daniel Baumann <[email protected]>
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/src/file.h 
new/dosfstools-3.0.25/src/file.h
--- old/dosfstools-3.0.24/src/file.h    2013-07-19 07:03:32.000000000 +0200
+++ new/dosfstools-3.0.25/src/file.h    2014-01-17 07:07:11.000000000 +0100
@@ -1,7 +1,7 @@
 /* file.h - Additional file attributes
 
    Copyright (C) 1993 Werner Almesberger <[email protected]>
-   Copyright (C) 2008-2013 Daniel Baumann <[email protected]>
+   Copyright (C) 2008-2014 Daniel Baumann <[email protected]>
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/src/fsck.fat.c 
new/dosfstools-3.0.25/src/fsck.fat.c
--- old/dosfstools-3.0.24/src/fsck.fat.c        2013-11-21 08:06:06.000000000 
+0100
+++ new/dosfstools-3.0.25/src/fsck.fat.c        2014-01-17 07:07:12.000000000 
+0100
@@ -2,7 +2,7 @@
 
    Copyright (C) 1993 Werner Almesberger <[email protected]>
    Copyright (C) 1998 Roman Hodek <[email protected]>
-   Copyright (C) 2008-2013 Daniel Baumann <[email protected]>
+   Copyright (C) 2008-2014 Daniel Baumann <[email protected]>
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -105,8 +105,7 @@
 {
     DOS_FS fs;
     int salvage_files, verify, c;
-    unsigned n_files_check = 0, n_files_verify = 0;
-    unsigned long free_clusters = 0;
+    uint32_t free_clusters = 0;
 
     memset(&fs, 0, sizeof(fs));
     rw = salvage_files = verify = 0;
@@ -197,7 +196,6 @@
     free_clusters = update_free(&fs);
     file_unused();
     qfree(&mem_queue);
-    n_files_check = n_files;
     if (verify) {
        n_files = 0;
        printf("Starting verification pass.\n");
@@ -205,7 +203,6 @@
        scan_root(&fs);
        reclaim_free(&fs);
        qfree(&mem_queue);
-       n_files_verify = n_files;
     }
 
 exit:
@@ -221,7 +218,7 @@
 
     if (!boot_only)
        printf("%s: %u files, %lu/%lu clusters\n", argv[optind],
-              n_files, fs.clusters - free_clusters, fs.clusters);
+              n_files, (unsigned long)fs.clusters - free_clusters, (unsigned 
long)fs.clusters);
 
     return fs_close(rw) ? 1 : 0;
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/src/fsck.fat.h 
new/dosfstools-3.0.25/src/fsck.fat.h
--- old/dosfstools-3.0.24/src/fsck.fat.h        2013-07-19 07:03:32.000000000 
+0200
+++ new/dosfstools-3.0.25/src/fsck.fat.h        2014-01-17 07:07:13.000000000 
+0100
@@ -2,7 +2,7 @@
 
    Copyright (C) 1993 Werner Almesberger <[email protected]>
    Copyright (C) 1998 Roman Hodek <[email protected]>
-   Copyright (C) 2008-2013 Daniel Baumann <[email protected]>
+   Copyright (C) 2008-2014 Daniel Baumann <[email protected]>
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -38,6 +38,7 @@
 #include <linux/msdos_fs.h>
 
 #include <stddef.h>
+#include <stdint.h>
 #include <endian.h>
 
 #define VFAT_LN_ATTR (ATTR_RO | ATTR_HIDDEN | ATTR_SYS | ATTR_VOLUME)
@@ -149,8 +150,8 @@
 } DOS_FILE;
 
 typedef struct {
-    unsigned long value;
-    unsigned long reserved;
+    uint32_t value;
+    uint32_t reserved;
 } FAT_ENTRY;
 
 typedef struct {
@@ -159,12 +160,12 @@
     unsigned int fat_size;     /* unit is bytes */
     unsigned int fat_bits;     /* size of a FAT entry */
     unsigned int eff_fat_bits; /* # of used bits in a FAT entry */
-    unsigned long root_cluster;        /* 0 for old-style root dir */
+    uint32_t root_cluster;     /* 0 for old-style root dir */
     loff_t root_start;
     unsigned int root_entries;
     loff_t data_start;
     unsigned int cluster_size;
-    unsigned long clusters;
+    uint32_t clusters;
     loff_t fsinfo_start;       /* 0 if not present */
     long free_clusters;
     loff_t backupboot_start;   /* 0 if not present */
@@ -180,7 +181,7 @@
 
 /* value to use as end-of-file marker */
 #define FAT_EOF(fs)    ((atari_format ? 0xfff : 0xff8) | FAT_EXTD(fs))
-#define FAT_IS_EOF(fs,v) ((unsigned long)(v) >= (0xff8|FAT_EXTD(fs)))
+#define FAT_IS_EOF(fs,v) ((uint32_t)(v) >= (0xff8|FAT_EXTD(fs)))
 /* value to mark bad clusters */
 #define FAT_BAD(fs)    (0xff7 | FAT_EXTD(fs))
 /* range of values used for bad clusters */
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/src/io.c 
new/dosfstools-3.0.25/src/io.c
--- old/dosfstools-3.0.24/src/io.c      2013-07-19 07:03:32.000000000 +0200
+++ new/dosfstools-3.0.25/src/io.c      2014-01-17 07:07:14.000000000 +0100
@@ -2,7 +2,7 @@
 
    Copyright (C) 1993 Werner Almesberger <[email protected]>
    Copyright (C) 1998 Roman Hodek <[email protected]>
-   Copyright (C) 2008-2013 Daniel Baumann <[email protected]>
+   Copyright (C) 2008-2014 Daniel Baumann <[email protected]>
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/src/io.h 
new/dosfstools-3.0.25/src/io.h
--- old/dosfstools-3.0.24/src/io.h      2013-07-19 07:03:32.000000000 +0200
+++ new/dosfstools-3.0.25/src/io.h      2014-01-17 07:07:15.000000000 +0100
@@ -2,7 +2,7 @@
 
    Copyright (C) 1993 Werner Almesberger <[email protected]>
    Copyright (C) 1998 Roman Hodek <[email protected]>
-   Copyright (C) 2008-2013 Daniel Baumann <[email protected]>
+   Copyright (C) 2008-2014 Daniel Baumann <[email protected]>
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/src/lfn.c 
new/dosfstools-3.0.25/src/lfn.c
--- old/dosfstools-3.0.24/src/lfn.c     2013-07-19 07:03:32.000000000 +0200
+++ new/dosfstools-3.0.25/src/lfn.c     2014-01-17 07:07:16.000000000 +0100
@@ -1,7 +1,7 @@
 /* lfn.c - Functions for handling VFAT long filenames
 
    Copyright (C) 1998 Roman Hodek <[email protected]>
-   Copyright (C) 2008-2013 Daniel Baumann <[email protected]>
+   Copyright (C) 2008-2014 Daniel Baumann <[email protected]>
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/src/lfn.h 
new/dosfstools-3.0.25/src/lfn.h
--- old/dosfstools-3.0.24/src/lfn.h     2013-07-19 07:03:32.000000000 +0200
+++ new/dosfstools-3.0.25/src/lfn.h     2014-01-17 07:07:17.000000000 +0100
@@ -1,7 +1,7 @@
 /* lfn.h - Functions for handling VFAT long filenames
 
    Copyright (C) 1998 Roman Hodek <[email protected]>
-   Copyright (C) 2008-2013 Daniel Baumann <[email protected]>
+   Copyright (C) 2008-2014 Daniel Baumann <[email protected]>
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/src/mkfs.fat.c 
new/dosfstools-3.0.25/src/mkfs.fat.c
--- old/dosfstools-3.0.24/src/mkfs.fat.c        2013-10-15 00:15:39.000000000 
+0200
+++ new/dosfstools-3.0.25/src/mkfs.fat.c        2014-01-17 07:07:19.000000000 
+0100
@@ -5,7 +5,7 @@
    Copyright (C) 1993-1994 David Hudson <[email protected]>
    Copyright (C) 1998 H. Peter Anvin <[email protected]>
    Copyright (C) 1998-2005 Roman Hodek <[email protected]>
-   Copyright (C) 2008-2013 Daniel Baumann <[email protected]>
+   Copyright (C) 2008-2014 Daniel Baumann <[email protected]>
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -64,6 +64,7 @@
 #include <time.h>
 #include <errno.h>
 #include <ctype.h>
+#include <stdint.h>
 #include <endian.h>
 
 #include <asm/types.h>
@@ -257,7 +258,7 @@
 static time_t create_time;     /* Creation time */
 static struct timeval create_timeval;  /* Creation time */
 static char volume_name[] = NO_NAME;   /* Volume name */
-static unsigned long long blocks;      /* Number of blocks in filesystem */
+static uint64_t blocks;        /* Number of blocks in filesystem */
 static int sector_size = 512;  /* Size of a logical sector */
 static int sector_size_set = 0;        /* User selected sector size */
 static int backup_boot = 0;    /* Sector# of backup boot sector */
@@ -299,7 +300,7 @@
 static void check_blocks(void);
 static void get_list_blocks(char *filename);
 static int valid_offset(int fd, loff_t offset);
-static unsigned long long count_blocks(char *filename, int *remainder);
+static uint64_t count_blocks(char *filename, int *remainder);
 static void check_mount(char *device_name);
 static void establish_params(int device_num, int size);
 static void setup_tables(void);
@@ -454,7 +455,7 @@
 {
     int i;
     FILE *listfile;
-    unsigned long blockno;
+    long blockno;
 
     listfile = fopen(filename, "r");
     if (listfile == (FILE *) NULL)
@@ -488,7 +489,7 @@
 
 /* Given a filename, look to see how many blocks of BLOCK_SIZE are present, 
returning the answer */
 
-static unsigned long long count_blocks(char *filename, int *remainder)
+static uint64_t count_blocks(char *filename, int *remainder)
 {
     loff_t high, low;
     int fd;
@@ -704,7 +705,7 @@
             * fs size <  32G: 16k clusters
             * fs size >= 32G: 32k clusters
             */
-           unsigned long sz_mb =
+           uint32_t sz_mb =
                (blocks + (1 << (20 - BLOCK_SIZE_BITS)) - 1) >> (20 -
                                                                 
BLOCK_SIZE_BITS);
            bs.cluster_size =
@@ -1408,7 +1409,7 @@
     struct stat statbuf;
     int i = 0, pos, ch;
     int create = 0;
-    unsigned long long cblocks = 0;
+    uint64_t cblocks = 0;
     int min_sector_size;
 
     if (argc && *argv) {       /* What's the program name? */
@@ -1649,7 +1650,7 @@
        blocks = strtoull(argv[optind + 1], &tmp, 0);
        if (!create && blocks != cblocks) {
            fprintf(stderr, "Warning: block count mismatch: ");
-           fprintf(stderr, "found %llu but assuming %llu.\n", cblocks, blocks);
+           fprintf(stderr, "found %llu but assuming %llu.\n", (unsigned long 
long)cblocks, (unsigned long long)blocks);
        }
     } else if (optind == argc - 1) {   /*  Or use value found */
        if (create)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dosfstools-3.0.24/src/version.h 
new/dosfstools-3.0.25/src/version.h
--- old/dosfstools-3.0.24/src/version.h 2013-11-23 10:36:31.000000000 +0100
+++ new/dosfstools-3.0.25/src/version.h 2014-01-17 07:10:27.000000000 +0100
@@ -1,7 +1,7 @@
 /* version.h
 
    Copyright (C) 1998-2005 Roman Hodek <[email protected]>
-   Copyright (C) 2008-2013 Daniel Baumann <[email protected]>
+   Copyright (C) 2008-2014 Daniel Baumann <[email protected]>
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -23,7 +23,7 @@
 #ifndef _version_h
 #define _version_h
 
-#define VERSION "3.0.24"
-#define VERSION_DATE "2013-11-23"
+#define VERSION "3.0.25"
+#define VERSION_DATE "2014-01-17"
 
 #endif

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to