gbranden pushed a commit to branch master
in repository groff.
commit ded8420849a9e9f5e25b60d1ddfbf97f56fc4ae7
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Dec 15 14:24:15 2025 -0600
[groff]: Fix Savannah #67815.
* src/roff/groff/groff.cpp (main): Initialize `want_unsafe_mode` to
`false`, not `true`. When flipping the semantics of this variable
name in commit 3a1b01474d (to make it easier to implement "locking"
`-S` option behavior), I neglected to flip its default value.
Fixes <https://savannah.gnu.org/bugs/?67815>. Thanks to Dave Kemper for
the report and root-cause analysis. Problem introduced by me in commit
3a1b01474d, 7 October.
---
ChangeLog | 12 ++++++++++++
src/roff/groff/groff.cpp | 2 +-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 8a9025e4a..1912d6227 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2025-12-15 G. Branden Robinson <[email protected]>
+
+ * src/roff/groff/groff.cpp (main): Initialize `want_unsafe_mode`
+ to `false`, not `true`. When flipping the semantics of this
+ variable name in commit 3a1b01474d (to make it easier to
+ implement "locking" `-S` option behavior), I neglected to flip
+ its default value.
+
+ Fixes <https://savannah.gnu.org/bugs/?67815>. Thanks to Dave
+ Kemper for the report and root-cause analysis. Problem
+ introduced by me in commit 3a1b01474d, 7 October.
+
2025-12-15 G. Branden Robinson <[email protected]>
[groff]: Regression-test Savannah #67815.
diff --git a/src/roff/groff/groff.cpp b/src/roff/groff/groff.cpp
index c14db588d..51de1ed3d 100644
--- a/src/roff/groff/groff.cpp
+++ b/src/roff/groff/groff.cpp
@@ -162,7 +162,7 @@ int main(int argc, char **argv)
int Xflag = 0;
int oflag = 0;
bool is_safer_mode_locked = false; // made true if `-S` explicit
- bool want_unsafe_mode = true;
+ bool want_unsafe_mode = false;
int is_xhtml = 0;
int eflag = 0;
int need_pic = 0;
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit