Bug#768909: dosfstools: fatlabel clobbers existing entry in root directory
Package: dosfstools
Version: 3.0.26-4
Severity: grave
Tags: upstream
Justification: causes non-serious data loss
I found this bug reported against the same version of the package in
Fedora reported by user ghborrmann and reproduced it.
Original report: https://bugzilla.redhat.com/show_bug.cgi?id=1158101
Quoting the steps to reproduce:
> 1. Use mkfs.fat to create a fat system on a file. Do not specify a
> volume label.
> 2. Mount the file and copy a file to the new system. I used a
> 9-character name to ensure that it would generate a long file name type
> of entry.
> 3. Unmount the file and label it using fatlabel.
> 4. Mount the file again and list the directory with ls
> 5. Unmount the file and run fsck.fat
>
> Actual results:
> In step 4, the listing gives the short file name (all caps, ending in ~1)
> In step 5, fsck complains about a long file name overwritten by the
> short name.
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.18.0-rc3-00108-g661b99e (SMP w/8 CPU cores; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages dosfstools depends on:
ii libc6 2.19-13
dosfstools recommends no packages.
dosfstools suggests no packages.
-- no debconf information
Reply to: