[PATCH v2 1/4] server: Allow named pipes creation with device file as root directory.

Alexandre Julliard julliard at winehq.org
Mon Nov 16 13:42:49 CST 2020


Paul Gofman <pgofman at codeweavers.com> writes:

> @@ -205,7 +206,13 @@ const struct object_attributes *get_req_object_attributes( const struct security
>      }
>      if (root && attr->rootdir && attr->name_len)
>      {
> -        if (!(*root = get_directory_obj( current->process, attr->rootdir ))) return NULL;
> +        if (!(*root = get_handle_obj( current->process, attr->rootdir, 0, NULL ))) return NULL;
> +        if (is_symlink_obj( *root ))
> +        {
> +            release_object( *root );
> +            set_error( STATUS_OBJECT_TYPE_MISMATCH );
> +            return NULL;
> +        }

Why do you need a special case for symlink objects?

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list