r23594: Fix parsing of local pids if cluster support is compiled in but no
authorVolker Lendecke <vlendec@samba.org>
Sun, 24 Jun 2007 13:24:20 +0000 (13:24 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:23:34 +0000 (12:23 -0500)
cluster is used
(This used to be commit 6beaa87da938f2a530939714b732fa769a28a008)

source3/lib/util.c

index 7a927fb3e81c5ea98ff84212fa714ba40a934104..c0f2c5648e9cf14acebe760027bf51fbb0d1a3e1 100644 (file)
@@ -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;