summaryrefslogtreecommitdiff
path: root/source3/smbd/trans2.c
diff options
context:
space:
mode:
authorShirish Kalele <kalele@samba.org>2000-05-26 17:10:40 +0000
committerShirish Kalele <kalele@samba.org>2000-05-26 17:10:40 +0000
commit8a86541e282424c4e0ea5626b26e818779ba0375 (patch)
tree316f69e049082a18c2151af46e8c11df43994595 /source3/smbd/trans2.c
parent9c4079d8c3b158369585d33f7b19fc7bd585401e (diff)
downloadsamba-8a86541e282424c4e0ea5626b26e818779ba0375.tar.gz
samba-8a86541e282424c4e0ea5626b26e818779ba0375.tar.bz2
samba-8a86541e282424c4e0ea5626b26e818779ba0375.zip
Changed MS_DFS to WITH_MSDFS throughout.
Fixed trans2 calls on IPC$ to let dfs referral calls through. (This used to be commit e0965a80bdca5239886b11ef55dc29fed261bfc0)
Diffstat (limited to 'source3/smbd/trans2.c')
-rw-r--r--source3/smbd/trans2.c5
1 files changed, 3 insertions, 2 deletions
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);