commit | 566c8863c16b082911750e79fe01456e6109f4fd | [log] [tgz] |
---|---|---|
author | Nico Huber <nico.h@gmx.de> | Sun Jan 28 04:02:59 2024 +0100 |
committer | Nico Huber <nico.h@gmx.de> | Sun Jan 28 14:25:01 2024 +0100 |
tree | b4157dccb7ae3c87fbdeb8036c424f78f88523b8 | |
parent | 75e20b57b2efed2f8bfdec4f2f2575c55cd72b5e [diff] [blame] |
ext2: Allow to open `root' as a subdirectory This is useful to follow `..' directory entries.
diff --git a/src/filo-fs-ext2.adb b/src/filo-fs-ext2.adb index 51f872b..1850b50 100644 --- a/src/filo-fs-ext2.adb +++ b/src/filo-fs-ext2.adb
@@ -844,7 +844,7 @@ -- Only check filenames of exact same length Inode := Inode_0_Index (Read_LE32 (Dir_Entry_Header, 0)); - if Inode > Root_Inode and then + if Inode >= Root_Inode and then File_Name'Length = Natural (Dir_Entry_Header (6)) then pragma Warnings