Commit c928aa67 authored by Alexandre Julliard's avatar Alexandre Julliard

server: Follow symlink even with OBJ_OPENLINK unless it is the last element of the path.

parent cb341f37
......@@ -99,7 +99,7 @@ static struct object *symlink_lookup_name( struct object *obj, struct unicode_st
struct object *target;
assert( obj->ops == &symlink_ops );
if (attr & OBJ_OPENLINK) return NULL;
if (!name->len && (attr & OBJ_OPENLINK)) return NULL;
target_str.str = symlink->target;
target_str.len = symlink->len;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment