gbranden pushed a commit to branch master
in repository groff.

commit fa9968739054e0080364ebebf0940268bbc16841
Author: Deri James <d...@chuzzlewit.myzen.co.uk>
AuthorDate: Mon Jun 2 15:13:38 2025 +0000

    [afmtodit]: Re-fix Savannah #66564.
    
    * src/utils/afmtodit/afmtodit.pl: Fix logic error; when falling back to
      system map file, associate scalar `sys_map` with `MAP` file handle,
      not `DESC`.
    
    Re-fixes <https://savannah.gnu.org/bugs/?66564>.  [Problem introduced by
    me in commit 658f7afb8e, 2 January.  --GBR]
---
 ChangeLog                      | 9 +++++++++
 src/utils/afmtodit/afmtodit.pl | 2 +-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 0084aeee2..a02c20664 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2025-06-02  Deri James  <d...@chuzzlewit.myzen.co.uk>
+
+       * src/utils/afmtodit/afmtodit.pl: Fix logic error; when falling
+       back to system map file, associate scalar `sys_map` with `MAP`
+       file handle, not `DESC`.
+
+       Re-fixes <https://savannah.gnu.org/bugs/?66564>.  [Problem
+       introduced by me in commit 658f7afb8e, 2 January.  --GBR]
+
 2025-05-30  G. Branden Robinson <g.branden.robin...@gmail.com>
 
        [troff]: Trivially refactor, continuing reform of functions that
diff --git a/src/utils/afmtodit/afmtodit.pl b/src/utils/afmtodit/afmtodit.pl
index 3cb9d3b21..a33160844 100644
--- a/src/utils/afmtodit/afmtodit.pl
+++ b/src/utils/afmtodit/afmtodit.pl
@@ -311,7 +311,7 @@ my (%nmap, %map);
 if (open(MAP, $map)) {
     $filename = $map;
 }
-elsif (open(DESC, $sys_map)) {
+elsif (open(MAP, $sys_map)) {
     $filename = $sys_map;
 }
 else {

_______________________________________________
groff-commit mailing list
groff-commit@gnu.org
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to