[PVFS-developers] Symlink Bug

Phil Carns pcarns@parl.clemson.edu
Mon, 24 Nov 2003 21:04:39 -0500 (EST)


Thanks Don.  This is in CVS now, along with some other small symlink
fixes that I spotted along the way.  We are going to do some testing and
probably put out another point release soon to address these problems.

thanks!
-Phil

On Thu, 20 Nov 2003, Porter  Don wrote:

>
> I started testing 1.6.1 and I found that if you delete a symlink, the file
> is actually deleted from the iod.  Clearly this is not the desired
> behaviour.  Attached is a patch that fixes this.
>
> Basically, in md_unlink there is some permission checking, but then the file
> is not actually unlinked nor does the function return.  Instead, it defaults
> to the case where the file isn't a symlink and the file is deleted, both
> from manager and iod.  With this patch, after the permission checking if one
> has write access then the file is actually unlinked and the function returns
> in either case.
>
> Thanks,
> Don
>
>