summaryrefslogtreecommitdiff
path: root/source3/smbd/reply.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-07-12 18:46:15 +0000
committerLuke Leighton <lkcl@samba.org>1999-07-12 18:46:15 +0000
commit8f1404739fe75464fe1500c3f6e6d39d4878ec1e (patch)
tree0e5885d00457b4a8428fb462b6cfa434ad45c79c /source3/smbd/reply.c
parent50429f60566839faf647cd4c36b66903c7b855ab (diff)
downloadsamba-8f1404739fe75464fe1500c3f6e6d39d4878ec1e.tar.gz
samba-8f1404739fe75464fe1500c3f6e6d39d4878ec1e.tar.bz2
samba-8f1404739fe75464fe1500c3f6e6d39d4878ec1e.zip
Jean-Francois Micouleau's rewritten DFS patch, originally written by
Nigel Williams. despite the data format being *exactly* the same as NT's, this still doesn't work yet. more work needed. (This used to be commit 270981960bb5aab52d2f8e494827101ece6729c4)
Diffstat (limited to 'source3/smbd/reply.c')
-rw-r--r--source3/smbd/reply.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 29dccaf9e8..652d6e4795 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -835,6 +835,11 @@ int reply_chkpth(connection_struct *conn, char *inbuf,char *outbuf, int dum_size
unix_convert(name,conn,0,&bad_path,&st);
mode = SVAL(inbuf,smb_vwv0);
+
+ if(under_dfs(conn, name)) {
+ SSVAL(outbuf, smb_flg2, FLAGS2_32_BIT_ERROR_CODES);
+ return(ERROR(0, 0xc0000000|NT_STATUS_PATH_NOT_COVERED));
+ }
if (check_name(name,conn)) {
if(VALID_STAT(st))
@@ -892,6 +897,11 @@ int reply_getatr(connection_struct *conn, char *inbuf,char *outbuf, int dum_size
BOOL bad_path = False;
pstrcpy(fname,smb_buf(inbuf) + 1);
+
+ if (under_dfs(conn, fname)) {
+ SSVAL(outbuf, smb_flg2, FLAGS2_32_BIT_ERROR_CODES);
+ return(ERROR(0, 0xc0000000|NT_STATUS_PATH_NOT_COVERED));
+ }
/* dos smetimes asks for a stat of "" - it returns a "hidden directory"
under WfWg - weird! */