From: Volker Lendecke Date: Sun, 24 Jun 2007 13:24:20 +0000 (+0000) Subject: r23594: Fix parsing of local pids if cluster support is compiled in but no X-Git-Tag: samba-4.0.0alpha6~801^2~5550 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9f7bb48dd3ee9e884135868773b3e0123cf0f9a6;p=thirdparty%2Fsamba.git r23594: Fix parsing of local pids if cluster support is compiled in but no cluster is used (This used to be commit 6beaa87da938f2a530939714b732fa769a28a008) --- diff --git a/source3/lib/util.c b/source3/lib/util.c index 7a927fb3e81..c0f2c5648e9 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -3143,6 +3143,10 @@ struct server_id interpret_pid(const char *pid_string) result.vnn = vnn; result.pid = pid; } + else if (sscanf(pid_string, "%u", &pid) == 1) { + result.vnn = NONCLUSTER_VNN; + result.pid = pid; + } else { result.vnn = NONCLUSTER_VNN; result.pid = -1;