svn commit: samba r3024 - in
branches/SAMBA_4_0/source/ntvfs/unixuid: .
tridge at samba.org
tridge at samba.org
Sun Oct 17 22:03:33 GMT 2004
Author: tridge
Date: 2004-10-17 22:03:33 +0000 (Sun, 17 Oct 2004)
New Revision: 3024
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/ntvfs/unixuid&rev=3024&nolog=1
Log:
run the *_connect() NTVFS initialisation operation as root, to allow
backends to open databases and perform any other privileged
operations that might be needed.
Modified:
branches/SAMBA_4_0/source/ntvfs/unixuid/vfs_unixuid.c
Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/unixuid/vfs_unixuid.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/unixuid/vfs_unixuid.c 2004-10-17 13:33:03 UTC (rev 3023)
+++ branches/SAMBA_4_0/source/ntvfs/unixuid/vfs_unixuid.c 2004-10-17 22:03:33 UTC (rev 3024)
@@ -361,7 +361,10 @@
private->last_sec_ctx = NULL;
private->last_token = NULL;
- PASS_THRU_REQ(ntvfs, req, connect, (ntvfs, req, sharename));
+ /* we don't use PASS_THRU_REQ here, as the connect operation runs with
+ root privileges. This allows the backends to setup any database
+ links they might need during the connect. */
+ status = ntvfs_next_connect(ntvfs, req, sharename);
return status;
}
More information about the samba-cvs
mailing list