summaryrefslogtreecommitdiff
path: root/source3/smbd/trans2.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-02-20 23:19:36 +0000
committerJeremy Allison <jra@samba.org>2004-02-20 23:19:36 +0000
commite1b5599cc7f138424bbcec87822e6f5d3672d286 (patch)
tree1f59b6638b5da9d1c178df98a6a6f26282dad3fc /source3/smbd/trans2.c
parente5c79dd79eb86c4fa790cd919056ed0fca3c73c1 (diff)
downloadsamba-e1b5599cc7f138424bbcec87822e6f5d3672d286.tar.gz
samba-e1b5599cc7f138424bbcec87822e6f5d3672d286.tar.bz2
samba-e1b5599cc7f138424bbcec87822e6f5d3672d286.zip
Make SMB_FILE_ACCESS_INFORMATION call work correctly.
Jeremy. (This used to be commit a6cb7af9bad1610e802fa5cddbf68fb887bc2974)
Diffstat (limited to 'source3/smbd/trans2.c')
-rw-r--r--source3/smbd/trans2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 525b015379..605169277d 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -1841,6 +1841,7 @@ static int call_trans2qfilepathinfo(connection_struct *conn,
int len;
time_t c_time;
files_struct *fsp = NULL;
+ uint32 desired_access = 0x12019F; /* Default - GENERIC_EXECUTE mapping from Windows */
if (!params)
return ERROR_NT(NT_STATUS_INVALID_PARAMETER);
@@ -1904,6 +1905,7 @@ static int call_trans2qfilepathinfo(connection_struct *conn,
}
pos = fsp->position_information;
delete_pending = fsp->delete_on_close;
+ desired_access = fsp->desired_access;
}
} else {
/* qpathinfo */
@@ -2152,7 +2154,7 @@ static int call_trans2qfilepathinfo(connection_struct *conn,
break;
case SMB_FILE_ACCESS_INFORMATION:
- SIVAL(pdata,0,0x12019F); /* ??? */
+ SIVAL(pdata,0,desired_access);
data_size = 4;
break;