summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-06-24 13:24:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:23:34 -0500
commit9f7bb48dd3ee9e884135868773b3e0123cf0f9a6 (patch)
tree65bbb676d14ede0cd3757bdf06e3c02e1ed76075 /source3/lib
parenta12d9fb6b390994ddd6e63c592885865b6ba3a2c (diff)
downloadsamba-9f7bb48dd3ee9e884135868773b3e0123cf0f9a6.tar.gz
samba-9f7bb48dd3ee9e884135868773b3e0123cf0f9a6.tar.bz2
samba-9f7bb48dd3ee9e884135868773b3e0123cf0f9a6.zip
r23594: Fix parsing of local pids if cluster support is compiled in but no
cluster is used (This used to be commit 6beaa87da938f2a530939714b732fa769a28a008)
Diffstat (limited to 'source3/lib')
-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;