bugGNU GRUB - Bugs: bug #45335, Can't access parent directory on...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #45335: Can't access parent directory on FAT when it's the filesystem root

Submitter:  Max Zerzouri <maxdamantus>
Submitted:  Tue 16 Jun 2015 11:31:22 PM UTC
   
 
Category:  None Severity:  Major
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name:  Max Zerzouri
Open/Closed:  Closed Release:  Git master
Release:  Reproducibility:  Every Time
Planned Release:  None

Thu 18 Jun 2015 05:12:50 PM UTC, comment #1: 

Fixed in 7bb7140df2b6fd5c1fee6c47488724bc256e957a. I also added lightweight regression tests for "." and ".." handling; FAT passed. Please reopen if still see problems.

Thank you for report!

Andrei Borzenkov <arvidjaar>
Group Member
Tue 16 Jun 2015 11:31:22 PM UTC, original submission:  

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.

Max Zerzouri <maxdamantus>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by arvidjaar (Posted a comment)
  • -email is unavailable- added by maxdamantus (Submitted the item)
  • -email is unavailable- added by maxdamantus
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-06-18 arvidjaar StatusNone Fixed
        Open/ClosedOpen Closed
    2015-06-16 maxdamantus Carbon-Copy- Added maxdamantus

    Back to the top

    Powered by Savane 3.15-ef91.
    Corresponding source code