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

Submitted by:  Max Zerzouri <maxdamantus>
Submitted on:  Tue 16 Jun 2015 11:31:22 PM UTC  
 
Category: NoneSeverity: Major
Priority: 5 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: Max Zerzouri
Open/Closed: ClosedRelease: 
Release: Git masterReproducibility: 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>
Project 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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 18 Jun 2015 05:12:50 PM UTCarvidjaarStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Tue 16 Jun 2015 11:31:22 PM UTCmaxdamantusCarbon-Copy-=>Added maxdamantus

    Back to the top


    Powered by Savane 3.1-cleanup1