[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Hurd bug in libdiskfs (patch included)
From: |
Thomas Bushnell, BSG |
Subject: |
Re: Hurd bug in libdiskfs (patch included) |
Date: |
11 Oct 2002 11:45:52 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
lilachaze <rgs26@cam.ac.uk> writes:
> Hi.
>
> libdiskfs has a nasty bug moving directories in a special case:
>
> If the source dir's parent is not writable by you, but the dir itself is, and
> you try to move it, the ext2fs server crashes leaving your fs corrupted. The
> cause is that it doesn't check to see if the source dir's parent is writable
> before starting the move operation.
>
> I've put a call to fshelp_checkdirmod in. To apply the patch:
It seems to me that in the case you describe, an error should be
returned by the first lookup in step one of dir-renamed.c; why does
this result in a crash?