bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] symlink lookups in ext2fs


From: Thomas Bushnell, BSG
Subject: Re: [PATCH] symlink lookups in ext2fs
Date: 03 Dec 2001 10:39:54 -0800
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

Moritz Schulte <address@hidden> writes:

> Hi,
> 
> 2001-12-03  Moritz Schulte  <address@hidden>
> 
>       * libdiskfs/dir-lookup.c (diskfs_S_dir_lookup): Don't forget
>           the trailing slash when looking up absolute symlinks.
> 
> --- dir-lookup.c.orig Mon Dec  3 17:35:09 2001
> +++ dir-lookup.c      Mon Dec  3 17:36:04 2001
> @@ -361,6 +361,8 @@ diskfs_S_dir_lookup (struct protid *dirc
>                 *retry = FS_RETRY_MAGICAL;
>                 *returned_port = MACH_PORT_NULL;
>                 strcpy (retryname, pathbuf);
> +               if (mustbedir)
> +                 strcat (retryname, "/");
>                 goto out;
>               }
>             path = pathbuf;

Patches like this should always be checked against ufs so that the
semantics of the two programs stay in sync.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]