r13695: Make code consistent with documentation. :-)
authorAlexander Bokovoy <ab@samba.org>
Sun, 26 Feb 2006 15:02:16 +0000 (15:02 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:10:24 +0000 (11:10 -0500)
smbcontrol was sending messages designated for nmbd and winbindd to smbd. Thus, nmbd and winbindd
were "unshutdownable".
(This used to be commit 52e9b5f89f4889ad97a049eade4957fb15f7b8a5)

source3/utils/smbcontrol.c

index 7e18e09dad5881138f5d46aab3c846d4ffdda29e..76d699c54f3a3804f41a4e6d6351257bf75a952f 100644 (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 */