[SCM] Samba Shared Repository - branch v3-2-test updated -
release-3-2-0pre2-2641-g12d816d
Jeremy Allison
jra at samba.org
Mon Jun 23 18:13:45 GMT 2008
The branch, v3-2-test has been updated
via 12d816dc997b1bfc048c5c042945a5e935abf4b4 (commit)
via 0dafec20396a0722d691ab3723eadc6124759e12 (commit)
from 784e9e6b9ce4cc043bdeba8ca396f59de51cd294 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test
- Log -----------------------------------------------------------------
commit 12d816dc997b1bfc048c5c042945a5e935abf4b4
Author: Volker Lendecke <vl at samba.org>
Date: Sun Jun 22 20:27:20 2008 +0200
Check for sec_initial_uid() instead of uid==0 in dfs management
commit 0dafec20396a0722d691ab3723eadc6124759e12
Author: Volker Lendecke <vl at samba.org>
Date: Sun Jun 22 11:28:57 2008 +0200
Reduce memory usage in form_junctions() a little bit
-----------------------------------------------------------------------
Summary of changes:
source/rpc_server/srv_dfs_nt.c | 4 ++--
source/smbd/msdfs.c | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/rpc_server/srv_dfs_nt.c b/source/rpc_server/srv_dfs_nt.c
index 29538a3..974523d 100644
--- a/source/rpc_server/srv_dfs_nt.c
+++ b/source/rpc_server/srv_dfs_nt.c
@@ -49,7 +49,7 @@ WERROR _dfs_Add(pipes_struct *p, struct dfs_Add *r)
NTSTATUS status;
TALLOC_CTX *ctx = talloc_tos();
- if (p->pipe_user.ut.uid != 0) {
+ if (p->pipe_user.ut.uid != sec_initial_uid()) {
DEBUG(10,("_dfs_add: uid != 0. Access denied.\n"));
return WERR_ACCESS_DENIED;
}
@@ -119,7 +119,7 @@ WERROR _dfs_Remove(pipes_struct *p, struct dfs_Remove *r)
TALLOC_CTX *ctx = talloc_tos();
char *altpath = NULL;
- if (p->pipe_user.ut.uid != 0) {
+ if (p->pipe_user.ut.uid != sec_initial_uid()) {
DEBUG(10,("_dfs_remove: uid != 0. Access denied.\n"));
return WERR_ACCESS_DENIED;
}
diff --git a/source/smbd/msdfs.c b/source/smbd/msdfs.c
index baf41bd..8c1c9d0 100644
--- a/source/smbd/msdfs.c
+++ b/source/smbd/msdfs.c
@@ -1565,6 +1565,7 @@ static int form_junctions(TALLOC_CTX *ctx,
jucn[cnt].comment = "";
cnt++;
}
+ TALLOC_FREE(link_target);
}
}
--
Samba Shared Repository
More information about the samba-cvs
mailing list