Alexandre Julliard : server: Follow symlink even with OBJ_OPENLINK unless it is the last element of the path .
Alexandre Julliard
julliard at winehq.org
Thu Oct 9 07:43:02 CDT 2008
Module: wine
Branch: master
Commit: c928aa67fbeab2c24fe7574b32f91c024fc1d5a9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c928aa67fbeab2c24fe7574b32f91c024fc1d5a9
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu Oct 9 12:43:36 2008 +0200
server: Follow symlink even with OBJ_OPENLINK unless it is the last element of the path.
---
server/symlink.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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 @@ 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;
More information about the wine-cvs
mailing list