]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r24021: use MSG_BROADCAST_PID_STR as value for broadcast messages
authorStefan Metzmacher <metze@samba.org>
Tue, 24 Jul 2007 09:32:05 +0000 (09:32 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:28:56 +0000 (12:28 -0500)
to fix the cluster case

vl: please check, if this works with clustering = no

metze
(This used to be commit 9d4104b8d5773537f2271f7be1439f1da1e0bf42)

source3/include/messages.h
source3/utils/smbcontrol.c

index ddf0aa91724d813ca05e1ac3a4ea87252eae89ab..7818446a09922e6d09e06fcbbd4d94d6aae1e308 100644 (file)
@@ -148,7 +148,11 @@ struct server_id {
 #endif
 };
 
-
+#ifdef CLUSTER_SUPPORT
+#define MSG_BROADCAST_PID_STR  "0:0"
+#else
+#define MSG_BROADCAST_PID_STR  "0"
+#endif
 
 struct messaging_context;
 struct messaging_rec;
index e4db2cd4f616a0f45d046f7da69a27be3bcf6bea..e3358b1eff4020105855f7dfb6530332c4b6dce1 100644 (file)
@@ -1148,7 +1148,7 @@ static struct server_id parse_dest(const char *dest)
        /* Zero is a special return value for broadcast smbd */
 
        if (strequal(dest, "smbd")) {
-               return interpret_pid("0");
+               return interpret_pid(MSG_BROADCAST_PID_STR);
        }
 
        /* Try self - useful for testing */