From d93101300820514c038ae52ffaf8150594701d07 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 4 Dec 2000 07:26:56 +0000 Subject: pass the desired access into cli_nt_create() (This used to be commit a2d07994e0376a8d530d262573c96710bdff2236) --- source3/libsmb/clifile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/libsmb/clifile.c') diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c index c23a43f95f..cb492f1539 100644 --- a/source3/libsmb/clifile.c +++ b/source3/libsmb/clifile.c @@ -149,7 +149,7 @@ BOOL cli_rmdir(struct cli_state *cli, char *dname) p = smb_buf(cli->outbuf); *p++ = 4; pstrcpy(p,dname); - unix_to_dos(p,True); + unix_to_dos(p,True); cli_send_smb(cli); if (!cli_receive_smb(cli)) { @@ -168,7 +168,7 @@ BOOL cli_rmdir(struct cli_state *cli, char *dname) /**************************************************************************** open a file ****************************************************************************/ -int cli_nt_create(struct cli_state *cli, char *fname) +int cli_nt_create(struct cli_state *cli, char *fname, uint32 DesiredAccess) { char *p; @@ -187,7 +187,7 @@ int cli_nt_create(struct cli_state *cli, char *fname) else SIVAL(cli->outbuf,smb_ntcreate_Flags, 0); SIVAL(cli->outbuf,smb_ntcreate_RootDirectoryFid, 0x0); - SIVAL(cli->outbuf,smb_ntcreate_DesiredAccess, 0x2019f); + SIVAL(cli->outbuf,smb_ntcreate_DesiredAccess, DesiredAccess); SIVAL(cli->outbuf,smb_ntcreate_FileAttributes, 0x0); SIVAL(cli->outbuf,smb_ntcreate_ShareAccess, 0x03); SIVAL(cli->outbuf,smb_ntcreate_CreateDisposition, 0x01); -- cgit