summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorOlaf Flebbe <flebbe@nix.science-computing.de>2009-08-17 17:31:01 +0200
committerVolker Lendecke <vl@samba.org>2009-08-24 16:17:43 +0200
commit5359e397ff190c35414f6961be61a5110e237dd5 (patch)
tree9949ab09ebbf91738a3c20f4543d252b1de04725 /source3/utils
parentb1ee4c14d49aa2dc0df90694d7403620951de137 (diff)
downloadsamba-5359e397ff190c35414f6961be61a5110e237dd5.tar.gz
samba-5359e397ff190c35414f6961be61a5110e237dd5.tar.bz2
samba-5359e397ff190c35414f6961be61a5110e237dd5.zip
make smbcontrol smbd ping work proper checking for arguments handle short pid_t correctly
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/smbcontrol.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c
index fc7d0aa360..7fab6eb4b2 100644
--- a/source3/utils/smbcontrol.c
+++ b/source3/utils/smbcontrol.c
@@ -1247,15 +1247,12 @@ static struct server_id parse_dest(const char *dest)
dest = "winbindd";
}
- if (!(strequal(dest, "winbindd") || strequal(dest, "nmbd"))) {
- /* Check for numeric pid number */
+ /* 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 "all". */
+ if (result.pid && procid_valid(&result)) {
+ return result;
}
/* Look up other destinations in pidfile directory */