summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 7a927fb3e8..c0f2c5648e 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;