summaryrefslogtreecommitdiff
path: root/databases/postgresql-repmgr/files/patch-config.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--databases/postgresql-repmgr/files/patch-config.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/databases/postgresql-repmgr/files/patch-config.c b/databases/postgresql-repmgr/files/patch-config.c
new file mode 100644
index 000000000000..e13f48a80521
--- /dev/null
+++ b/databases/postgresql-repmgr/files/patch-config.c
@@ -0,0 +1,11 @@
+--- ./config.c.orig 2012-12-04 19:40:15.395225527 +1100
++++ ./config.c 2012-12-04 19:40:38.975104852 +1100
+@@ -77,7 +77,7 @@
+ fclose (fp);
+
+ /* Check config settings */
+- if (strnlen(options->cluster_name, MAXLEN)==0)
++ if (strlen(options->cluster_name)==0)
+ {
+ fprintf(stderr, "Cluster name is missing. "
+ "Check the configuration file.\n");