diff --git a/HISTORY b/HISTORY
index 59a5f7e4..1cf5fc8a 100644
--- a/HISTORY
+++ b/HISTORY
@@ -5,6 +5,7 @@
repmgr: report unreachable nodes when running "repmgr cluster (matrix|crosscheck);
GitHub #246 (Ian)
repmgr: add configuration file parameter "repmgr_bindir"; GitHub #246 (Ian)
+ repmgrd: fix parsing of -d/--daemonize option (Ian)
4.1.1 2018-09-05
logging: explicitly log the text of failed queries as ERRORs to
diff --git a/doc/appendix-release-notes.sgml b/doc/appendix-release-notes.sgml
index 842e40b4..32231f0c 100644
--- a/doc/appendix-release-notes.sgml
+++ b/doc/appendix-release-notes.sgml
@@ -95,6 +95,20 @@
+
+
+ Bug fixes
+
+
+
+
+ repmgrd: fix parsing of option.
+
+
+
+
+
+
diff --git a/repmgrd.c b/repmgrd.c
index 06eba3ec..99f42b13 100644
--- a/repmgrd.c
+++ b/repmgrd.c
@@ -134,7 +134,7 @@ main(int argc, char **argv)
memset(pid_file, 0, MAXPGPATH);
- while ((c = getopt_long(argc, argv, "?Vf:L:vdp:m", long_options, &optindex)) != -1)
+ while ((c = getopt_long(argc, argv, "?Vf:L:vd:p:m", long_options, &optindex)) != -1)
{
switch (c)
{