server: Follow symlink even with OBJ_OPENLINK unless it is the last element of the path.
This commit is contained in:
parent
cb341f3717
commit
c928aa67fb
|
@ -99,7 +99,7 @@ static struct object *symlink_lookup_name( struct object *obj, struct unicode_st
|
||||||
struct object *target;
|
struct object *target;
|
||||||
|
|
||||||
assert( obj->ops == &symlink_ops );
|
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.str = symlink->target;
|
||||||
target_str.len = symlink->len;
|
target_str.len = symlink->len;
|
||||||
|
|
Loading…
Reference in New Issue