diff options
author | pav <pav@FreeBSD.org> | 2011-10-01 02:52:32 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2011-10-01 02:52:32 +0800 |
commit | 69e5ef7328cab0c29877f165378e1d9e758374d9 (patch) | |
tree | 775fdcb9f6670bed9d4e2f494365fc2ce917ecaf /databases/postgresql-repmgr | |
parent | 11b53f882e2edde8679795c3e80af87d3dcab58a (diff) | |
download | freebsd-ports-gnome-69e5ef7328cab0c29877f165378e1d9e758374d9.tar.gz freebsd-ports-gnome-69e5ef7328cab0c29877f165378e1d9e758374d9.tar.zst freebsd-ports-gnome-69e5ef7328cab0c29877f165378e1d9e758374d9.zip |
- Unbreak on FreeBSD 7
Submitted by: Alexander Pyhalov <alp@rsu.ru> (maintainer)
Diffstat (limited to 'databases/postgresql-repmgr')
-rw-r--r-- | databases/postgresql-repmgr/files/patch-strnlen | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/databases/postgresql-repmgr/files/patch-strnlen b/databases/postgresql-repmgr/files/patch-strnlen new file mode 100644 index 000000000000..5590e542e2d7 --- /dev/null +++ b/databases/postgresql-repmgr/files/patch-strnlen @@ -0,0 +1,23 @@ +--- config.orig.c 2011-03-09 23:27:29.000000000 +0300 ++++ config.c 2011-09-30 08:30:35.000000000 +0400 +@@ -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"); +diff -ru /var/tmp/usr/ports/databases/postgresql-repmgr/work/repmgr-1.1.0/repmgr.c /var/tmp/usr/ports/databases/postgresql-repmgr/work/repmgr-1.1.0.patched/repmgr.c +--- repmgr.orig.c 2011-03-09 23:27:29.000000000 +0300 ++++ repmgr.c 2011-09-30 08:30:19.000000000 +0400 +@@ -1438,7 +1438,7 @@ + char host_string[MAXLEN]; + int r; + +- if (strnlen(options.rsync_options, MAXLEN) == 0) ++ if (strlen(options.rsync_options) == 0) + maxlen_snprintf( + rsync_flags, "%s", + "--archive --checksum --compress --progress --rsh=ssh"); |