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

This commit is contained in:
Alexandre Julliard 2008-10-09 12:43:36 +02:00
parent cb341f3717
commit c928aa67fb
1 changed files with 1 additions and 1 deletions

View File

@ -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;