summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-08-18 16:18:34 -0700
committerJeremy Allison <jra@samba.org>2008-08-18 16:18:34 -0700
commit39480f629867e435db00c89d62791ca8b4fe1b71 (patch)
tree6c5a43339f1c75455e1dd3c176087c0554addd91 /source3/utils
parent2597c97d3a274bdb96e9958a79aa70d84381a12a (diff)
downloadsamba-39480f629867e435db00c89d62791ca8b4fe1b71.tar.gz
samba-39480f629867e435db00c89d62791ca8b4fe1b71.tar.bz2
samba-39480f629867e435db00c89d62791ca8b4fe1b71.zip
Make the change to smbcontrol for "all" to mean broadcast,
and "smbd" to mean the main smb daemon. Update docs to match. Jeremy. (This used to be commit e415420b086a236be6bcc1e7584bec276a74e457)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/smbcontrol.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c
index 6699763cd2..750030d916 100644
--- a/source3/utils/smbcontrol.c
+++ b/source3/utils/smbcontrol.c
@@ -1228,9 +1228,9 @@ static struct server_id parse_dest(const char *dest)
struct server_id result = {-1};
pid_t pid;
- /* Zero is a special return value for broadcast smbd */
+ /* Zero is a special return value for broadcast to all processes */
- if (strequal(dest, "smbd")) {
+ if (strequal(dest, "all")) {
return interpret_pid(MSG_BROADCAST_PID_STR);
}
@@ -1245,7 +1245,6 @@ static struct server_id parse_dest(const char *dest)
dest = "winbindd";
}
-
if (!(strequal(dest, "winbindd") || strequal(dest, "nmbd"))) {
/* Check for numeric pid number */
@@ -1266,7 +1265,7 @@ static struct server_id parse_dest(const char *dest)
fprintf(stderr,"Can't find pid for destination '%s'\n", dest);
return result;
-}
+}
/* Execute smbcontrol command */