URL: <http://savannah.gnu.org/bugs/?45335>
Summary: Can't access parent directory on FAT when it's the filesystem root Project: GNU GRUB Submitted by: maxdamantus Submitted on: Tue 16 Jun 2015 11:31:22 PM GMT Category: None Severity: Major Priority: 5 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Originator Name: Max Zerzouri Originator Email: maxdaman...@gmail.com Open/Closed: Open Discussion Lock: Any Release: Release: Git master Reproducibility: Every Time Planned Release: None _______________________________________________________ Details: The special `..` and `.` filenames behave strangely on FAT when dealing with the root directory. Particularly, it seems to be impossible to traverse to the root given a non-root path without something like a `regexp` hack to extract the device identifier: grub> ls (hd1,gpt2)/ grub/ efi/ vmlinuz initramfs.gz NvVars grub> ls (hd1,gpt2)/grub i386-pc/ locale/ themes/ fonts/ grub.cfg grubenv grub> ls (hd1,gpt2)/grub/.. grub> ls (hd1,gpt2)/grub/i386-pc/.. i386-pc/ locale/ themes/ fonts/ grub.cfg grubenv grub> ls (hd1,gpt2)/.. error: file `/..' not found. grub> ls (hd1,gpt2)/. error: file `/.' not found. grub> ls (hd1,gpt2)/grub/. i386-pc/ locale/ themes/ fonts/ grub.cfg grubenv As shown, accessing `.` from the root also doesn't work (it works on other directories in FAT and on roots of other filesystems (at least squashfs and ext)). This might be related, but it seems less important and could just be a usability issue. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?45335> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-grub mailing list Bug-grub@gnu.org https://lists.gnu.org/mailman/listinfo/bug-grub