diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-05-10 00:07:02 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-05-10 00:07:02 -0700 |
| commit | e37a41af9af3ad002f33d2602ac4f355ff956790 (patch) | |
| tree | 8d0f5d654cfb16f1357d9f3267a44ba707fe0966 /ipc | |
| parent | 28d627fb4572b378063f58dd533487bdb1ca67a6 (diff) | |
[PATCH] bfs filesystem read past the end of dir
From: Jakub Jermar <jermar@itbs.cz>
I found out that BFS filesystem will eventually try to read and interpret
garbage past the end of directory in bfs_add_entry(). If the garbage
(interpreted as i-node number) is not set to zero (does it have to be?)
bfs_add_entry() will consider it a regular directory entry.
This causes weird things like this:
# touch a
# rm a
# ls
# touch b
# ls
a
My patch detects an attempt to read past the end of directory and explicitly
clears the garbage that represents i-node number. Thus the correct behaviour
is achieved.
(was unable to contact Tigran)
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions
