The branch, master has been updated
via 3a7c277 s3-lib: Use new strict directory create function in
create_pipe_sock().
via 1aa0503 Use the new directory_create_or_exist_strict() function.
via 6039388 util: Add a strict directory_create_or_exist function.
via 5d721de s3:smb2_negprot: set the 'remote_proto' value
via 4d1fd0b samba_dnsupdate: set KRB5_CONFIG for nsupdate command
via 8d9a77f s4:lib/messaging: terminate the irpc_servers_byname()
result with server_id_set_disconnected() (bug #9540)
from 2cc6f9c libnet-vampire: reports Exops as they rather than sync on
some partitions
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -
commit 3a7c2777ee0de37d758fe81d67d6836a8354825e
Author: Andreas Schneider a...@samba.org
Date: Wed Jan 9 09:02:54 2013 +0100
s3-lib: Use new strict directory create function in create_pipe_sock().
Reviewed-by: Andrew Bartlett abart...@samba.org
Autobuild-User(master): Andrew Bartlett abart...@samba.org
Autobuild-Date(master): Wed Jan 9 10:55:23 CET 2013 on sn-devel-104
commit 1aa0503401d41fec48d4d4e30d8bbcbd847ff807
Author: Andreas Schneider a...@samba.org
Date: Tue Jan 8 14:21:23 2013 +0100
Use the new directory_create_or_exist_strict() function.
Reviewed-by: Andrew Bartlett abart...@samba.org
commit 6039388fc1f3671bb60db06211814f7edfc62285
Author: Andreas Schneider a...@samba.org
Date: Tue Jan 8 14:21:00 2013 +0100
util: Add a strict directory_create_or_exist function.
Reviewed-by: Andrew Bartlett abart...@samba.org
commit 5d721de7fdc250c6cb423c553134dd687590c1a0
Author: Stefan Metzmacher me...@samba.org
Date: Thu Dec 13 10:44:07 2012 +0100
s3:smb2_negprot: set the 'remote_proto' value
Signed-off-by: Stefan Metzmacher me...@samba.org
Reviewed-by: Andrew Bartlett abart...@samba.org
commit 4d1fd0b7daa089bd8863f0efcaf258bf30192c29
Author: Björn Baumbach b...@sernet.de
Date: Thu Dec 20 15:57:43 2012 +0100
samba_dnsupdate: set KRB5_CONFIG for nsupdate command
Let nslookup use krb5.conf, which is set in our KRB5_CONFIG.
Signed-off-by: Björn Baumbach b...@sernet.de
Reviewed-by: Stefan Metzmacher me...@samba.org
Reviewed-by: Andrew Bartlett abart...@samba.org
commit 8d9a77f8646cd26371dc2ec1d3ed52730ac19eb9
Author: Stefan Metzmacher me...@samba.org
Date: Fri Jan 4 13:27:26 2013 +0100
s4:lib/messaging: terminate the irpc_servers_byname() result with
server_id_set_disconnected() (bug #9540)
Signed-off-by: Stefan Metzmacher me...@samba.org
Reviewed-by: Andrew Bartlett abart...@samba.org
---
Summary of changes:
lib/util/samba_util.h |4 ++
lib/util/util.c | 49 +---
source3/lib/util_sock.c | 50 -
source3/rpc_server/rpc_server.c |2 +-
source3/smbd/server.c |2 +-
source3/smbd/smb2_negprot.c |8 +
source4/lib/messaging/messaging.c |6 ++--
source4/lib/messaging/pymessaging.c |4 +-
source4/ntp_signd/ntp_signd.c |2 +-
source4/scripting/bin/samba_dnsupdate |9 +++--
source4/smbd/service_named_pipe.c |2 +-
source4/winbind/wb_server.c |9 -
12 files changed, 83 insertions(+), 64 deletions(-)
Changeset truncated at 500 lines:
diff --git a/lib/util/samba_util.h b/lib/util/samba_util.h
index e553ec1..27c2e6e 100644
--- a/lib/util/samba_util.h
+++ b/lib/util/samba_util.h
@@ -631,6 +631,10 @@ _PUBLIC_ bool directory_exist(const char *dname);
_PUBLIC_ bool directory_create_or_exist(const char *dname, uid_t uid,
mode_t dir_perms);
+_PUBLIC_ bool directory_create_or_exist_strict(const char *dname,
+ uid_t uid,
+ mode_t dir_perms);
+
/**
Set a fd into blocking/nonblocking mode. Uses POSIX O_NONBLOCK if available,
else
diff --git a/lib/util/util.c b/lib/util/util.c
index b50d28a..d49e20e 100644
--- a/lib/util/util.c
+++ b/lib/util/util.c
@@ -143,12 +143,13 @@ _PUBLIC_ bool directory_exist(const char *dname)
* @retval true if the directory already existed and has the right permissions
* or was successfully created.
*/
-_PUBLIC_ bool directory_create_or_exist(const char *dname, uid_t uid,
- mode_t dir_perms)
+_PUBLIC_ bool directory_create_or_exist(const char *dname,
+ uid_t uid,
+ mode_t dir_perms)
{
int ret;
- struct stat st;
-
+ struct stat st;
+
ret = lstat(dname, st);
if (ret == -1) {
mode_t old_umask;
@@ -179,6 +180,44 @@