[systemd-devel] [PATCH] path: follow symbolic link for parent path
Zbigniew Jędrzejewski-Szmek
zbyszek at in.waw.pl
Wed Dec 17 18:10:25 PST 2014
On Wed, Dec 17, 2014 at 08:59:15AM +0100, Umut Tezduyar Lindskog wrote:
> Thanks Zbigniew,
>
> I have only fixed the fallback: case and missed to fix the real case
> where we use the name_to_handle. Could you please change that too. It
> will look something like this:
>
> @@ -489,7 +489,7 @@ int path_is_mount_point(const char *t, bool allow_symlink) {
> - r = name_to_handle_at(AT_FDCWD, parent, &h.handle,
> &mount_id_parent, 0);
> + r = name_to_handle_at(AT_FDCWD, parent, &h.handle,
> &mount_id_parent, AT_SYMLINK_FOLLOW);
Done.
I also did another optimization (?) in a follow up commit. Please test.
Zbyszek
More information about the systemd-devel
mailing list