From c928aa67fbeab2c24fe7574b32f91c024fc1d5a9 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 9 Oct 2008 12:43:36 +0200 Subject: [PATCH] server: Follow symlink even with OBJ_OPENLINK unless it is the last element of the path. --- server/symlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/symlink.c b/server/symlink.c index 9769c838c3b..2ec7ed5affd 100644 --- a/server/symlink.c +++ b/server/symlink.c @@ -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;