[Pkg-vsquare-devel] Bug#837998: fuse-umfuse-fat: fix month in timestamps

Alessandro Larcher a.larcher at viscount.it
Fri Sep 16 09:11:53 UTC 2016


Package: fuse-umfuse-fat
Version: 0.1a-1.1
Severity: normal
Tags: patch

We use fusefat to create FAT images to write to SD cards, but the 
month in timestamp is/was wrong:

~ mkdir test.fat
~ date
gio 15 set 2016, 18.05.05, CEST
~ su
# fusefat -o rw+ /dev/sde2 test.fat
# touch test.fat/empty
# ls -l test.fat/empty
-rwx------ 1 root root 0 set 15 17:05 test.fat/empty
# #note that the hour is wrong - maybe something TZ-related?
# fusermount -u test.fat
# mount /dev/sde2 test.fat
# ls -l test.fat/empty
-rwxr-xr-x 1 root root 0 ago 15 18:05 test.fat/empty
# #note that the hour is right, but the month is wrong

The reason is that tm.tm_mon range is 0-11, while FAT range is 1-12.

The attached patch fixes the month issue. 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-month.diff
Type: application/octet-stream
Size: 714 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-vsquare-devel/attachments/20160916/a3404162/attachment.obj>


More information about the Pkg-vsquare-devel mailing list