From f38b76f5c8e94dd998e437269e44fa23976e8d7c Mon Sep 17 00:00:00 2001
From: Gerhard Rieger <gerhard@dest-unreach.org>
Date: Fri, 24 Jan 2025 16:13:33 +0100
Subject: [PATCH] Fixed display of option phases in help output

---
 CHANGES   | 3 +++
 xiohelp.c | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/CHANGES b/CHANGES
index 4166168..a3629c4 100644
--- a/CHANGES
+++ b/CHANGES
@@ -4,6 +4,9 @@ Security:
 	not given it logs to a file in . (cwd) only when it is not writable by
 	other users.
 
+Corrections:
+	Fixed display of option phases in help output.
+
 Testing:
 	test.sh produces file results.txt with columns of test numbers, names,
 	and results.
diff --git a/xiohelp.c b/xiohelp.c
index 1ba92a8..bc95ce5 100644
--- a/xiohelp.c
+++ b/xiohelp.c
@@ -53,7 +53,7 @@ static const char *addressgroupnames[] = {
 
 /* keep consistent with xioopts.h:enum ephase ! */
 static char *optionphasenames[] = {
-	"ALL",		"INIT",		"EARLY",
+	"ALL",		"OFFSET",	"INIT",		"EARLY",
 	"PREOPEN",	"OPEN",		"PASTOPEN",
 	"PRESOCKET",	"SOCKET",	"PASTSOCKET",
 	"PREBIGEN",	"BIGEN",	"PASTBIGEN",