[SCM] Samba Shared Repository - branch v3-2-test updated -
release-3-2-0pre2-2404-g35f8b3e
Jeremy Allison
jra at samba.org
Thu May 22 21:29:42 GMT 2008
The branch, v3-2-test has been updated
via 35f8b3e7948230bd404078db28eed67bfd896bf7 (commit)
from 92b05ed38dce0780c6fbdc7b971240fb563e5890 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test
- Log -----------------------------------------------------------------
commit 35f8b3e7948230bd404078db28eed67bfd896bf7
Author: Jeremy Allison <jra at samba.org>
Date: Thu May 22 14:28:13 2008 -0700
Fix 2 bugs with displaying open file state. Firstly
the IDL is documented incorrectly in the MS-DOCS.
Username and path need to be reversed (yes I will
raise this with MS). Secondly, we need to check
access_mask for the permissions, not share_access
(share_access are the deny modes).
Jeremy.
-----------------------------------------------------------------------
Summary of changes:
source/rpc_server/srv_srvsvc_nt.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/rpc_server/srv_srvsvc_nt.c b/source/rpc_server/srv_srvsvc_nt.c
index 7188360..9817ee3 100644
--- a/source/rpc_server/srv_srvsvc_nt.c
+++ b/source/rpc_server/srv_srvsvc_nt.c
@@ -105,8 +105,8 @@ static int pipe_enum_fn( struct db_record *rec, void *p)
(uint32_t)((procid_to_pid(&prec.pid)<<16) & prec.pnum),
(FILE_READ_DATA|FILE_WRITE_DATA),
0,
- fullpath,
- username);
+ username,
+ fullpath);
fenum->ctr3->count++;
@@ -200,7 +200,7 @@ static void enum_file_fn( const struct share_mode_entry *e,
string_replace( fullpath, '/', '\\' );
/* mask out create (what ever that is) */
- permissions = e->share_access & (FILE_READ_DATA|FILE_WRITE_DATA);
+ permissions = e->access_mask & (FILE_READ_DATA|FILE_WRITE_DATA);
/* now fill in the srvsvc_NetFileInfo3 struct */
init_srvsvc_NetFileInfo3(&fenum->ctr3->array[i],
--
Samba Shared Repository
More information about the samba-cvs
mailing list