summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-07-05 08:24:03 +0000
committerTim Potter <tpot@samba.org>2001-07-05 08:24:03 +0000
commit005582d1b54e095cadd9fbb50c475a203d831dac (patch)
tree7e2d34d1f42fbb9755abce45fb449a0dcb7bff43 /source3
parent9c743f9b8bfd33c653e34f9a40166aa46ec2d010 (diff)
downloadsamba-005582d1b54e095cadd9fbb50c475a203d831dac.tar.gz
samba-005582d1b54e095cadd9fbb50c475a203d831dac.tar.bz2
samba-005582d1b54e095cadd9fbb50c475a203d831dac.zip
Renamed formal parameter fd to fnum because we're talking about SMB file
handles, not unix ones. (This used to be commit 974790e45e6774a0e8ca3f8bb73ea941457e0866)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/clisecdesc.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/source3/libsmb/clisecdesc.c b/source3/libsmb/clisecdesc.c
index 69c7d5f73f..e0d6ae809f 100644
--- a/source3/libsmb/clisecdesc.c
+++ b/source3/libsmb/clisecdesc.c
@@ -19,16 +19,13 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#define NO_SYSLOG
-
#include "includes.h"
-
-
/****************************************************************************
query the security descriptor for a open file
- ****************************************************************************/
-SEC_DESC *cli_query_secdesc(struct cli_state *cli,int fd, TALLOC_CTX *mem_ctx)
+ ****************************************************************************/
+SEC_DESC *cli_query_secdesc(struct cli_state *cli, int fnum,
+ TALLOC_CTX *mem_ctx)
{
char param[8];
char *rparam=NULL, *rdata=NULL;
@@ -36,7 +33,7 @@ SEC_DESC *cli_query_secdesc(struct cli_state *cli,int fd, TALLOC_CTX *mem_ctx)
prs_struct pd;
SEC_DESC *psd = NULL;
- SIVAL(param, 0, fd);
+ SIVAL(param, 0, fnum);
SSVAL(param, 4, 0x7);
if (!cli_send_nt_trans(cli,
@@ -77,8 +74,8 @@ SEC_DESC *cli_query_secdesc(struct cli_state *cli,int fd, TALLOC_CTX *mem_ctx)
/****************************************************************************
set the security descriptor for a open file
- ****************************************************************************/
-BOOL cli_set_secdesc(struct cli_state *cli,int fd, SEC_DESC *sd)
+ ****************************************************************************/
+BOOL cli_set_secdesc(struct cli_state *cli, int fnum, SEC_DESC *sd)
{
char param[8];
char *rparam=NULL, *rdata=NULL;
@@ -100,7 +97,7 @@ BOOL cli_set_secdesc(struct cli_state *cli,int fd, SEC_DESC *sd)
goto cleanup;
}
- SIVAL(param, 0, fd);
+ SIVAL(param, 0, fnum);
SSVAL(param, 4, 0x7);
if (!cli_send_nt_trans(cli,