1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

r13695: Make code consistent with documentation. :-)

smbcontrol was sending messages designated for nmbd and winbindd to smbd. Thus, nmbd and winbindd
were "unshutdownable".
This commit is contained in:
Alexander Bokovoy 2006-02-26 15:02:16 +00:00 committed by Gerald (Jerry) Carter
parent 788e52eb5d
commit 52e9b5f89f

View File

@ -823,13 +823,16 @@ static struct process_id parse_dest(const char *dest)
dest = "winbindd";
}
/* Check for numeric pid number */
if (!(strequal(dest, "winbindd") || strequal(dest, "nmbd"))) {
/* Check for numeric pid number */
result = interpret_pid(dest);
result = interpret_pid(dest);
/* Zero isn't valid if not smbd. */
if (result.pid && procid_valid(&result)) {
return result;
/* Zero isn't valid if not smbd. */
if (result.pid && procid_valid(&result)) {
return result;
}
}
/* Look up other destinations in pidfile directory */