commit | c928aa67fbeab2c24fe7574b32f91c024fc1d5a9 | [log] [tgz] |
---|---|---|
author | Alexandre Julliard <julliard@winehq.org> | Thu Oct 09 12:43:36 2008 +0200 |
committer | Alexandre Julliard <julliard@winehq.org> | Thu Oct 09 12:43:36 2008 +0200 |
tree | 1523d427906e43597c30a22e811a9e41195658cf | |
parent | cb341f37175b4a79d3a2f3fc5709a43d11d08d07 [diff] [blame] |
server: Follow symlink even with OBJ_OPENLINK unless it is the last element of the path.
diff --git a/server/symlink.c b/server/symlink.c index 9769c83..2ec7ed5 100644 --- a/server/symlink.c +++ b/server/symlink.c
@@ -99,7 +99,7 @@ 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;