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;