From 8a86541e282424c4e0ea5626b26e818779ba0375 Mon Sep 17 00:00:00 2001 From: Shirish Kalele Date: Fri, 26 May 2000 17:10:40 +0000 Subject: Changed MS_DFS to WITH_MSDFS throughout. Fixed trans2 calls on IPC$ to let dfs referral calls through. (This used to be commit e0965a80bdca5239886b11ef55dc29fed261bfc0) --- source3/smbd/trans2.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/smbd/trans2.c') diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index cc3261a479..900a87e32b 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -411,7 +411,7 @@ static BOOL get_lanman2_dir_entry(connection_struct *conn, { /* Needed to show the msdfs symlinks as directories */ if(!lp_host_msdfs() || !lp_msdfs_root(SNUM(conn)) - || !is_msdfs_volume(conn, pathreal)) + || !is_msdfs_link(conn, pathreal)) { DEBUG(5,("get_lanman2_dir_entry:Couldn't stat [%s] (%s)\n", pathreal,strerror(errno))); @@ -2238,7 +2238,8 @@ int reply_trans2(connection_struct *conn, return -1; } - if (IS_IPC(conn) && (tran_call != TRANSACT2_OPEN)) + if (IS_IPC(conn) && (tran_call != TRANSACT2_OPEN) + && (tran_call != TRANSACT2_GET_DFS_REFERRAL)) return(ERROR(ERRSRV,ERRaccess)); outsize = set_message(outbuf,0,0,True); -- cgit