[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#824743: hfsplus: Lower/Uppercase issue, remembering casing after removal



Package: hfsplus
Version: 1.0.4-13
Severity: normal

Dear Maintainer,

in freshly created directory on a HFS+ mount, I experience the following:

$ mkdir xxx && cd xxx
$ touch DUMMY.TXT
$ ls
DUMMY.TXT
$ rm DUMMY.TXT
$ touch dummy.txt
$ ls
DUMMY.TXT

This should be dummy.txt, looks like HFS+ 'remembers' old casing.
Now the other way round:

$ cd ..
$ rm -rf xxx
$ mkdir xxx && cd xxx
$ touch dummy.txt
$ ls
dummy.txt
$ rm dummy.txt
$ touch DUMMY.TXT
$ ls
dummy.txt

This issue disturbs a test suite here (Wget2 development, testing uppercase/lowercase stuff).
I could work around it by re-creating a new temp directory for each test, but
I find this HFS+ behaviour somewhat unexpected.

How I created my HFS+ mount:
$ sudo apt-get install hfsprogs
$ dd if=/dev/zero of=hfsimage bs=512 count=500k
$ sudo losetup /dev/loop0 hfsimage
$ sudo mkfs -t hfsplus /dev/loop0
$ sudo mount -t hfsplus /dev/loop0 /mnt
$ cd /mnt
$ sudo mkdir test
$ sudo chown tim:users test
$ cd test

(amend 'tim:users' to your environment)

Regards, Tim

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.5.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages hfsplus depends on:
ii  libc6     2.22-9
ii  libhfsp0  1.0.4-13

hfsplus recommends no packages.

hfsplus suggests no packages.

-- no debconf information


Reply to: