texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: * install-info/install-info.c (readfile): Correct


From: Gavin D. Smith
Subject: branch master updated: * install-info/install-info.c (readfile): Correct check for whether a compression program is being used in order to correctly close a file.
Date: Sun, 08 Oct 2023 11:59:16 -0400

This is an automated email from the git hooks/post-receive script.

gavin pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new 6a43dff042 * install-info/install-info.c (readfile): Correct check for 
whether a compression program is being used in order to correctly close a file.
6a43dff042 is described below

commit 6a43dff04289c6aa830853d7e3c881f64de86c9d
Author: Eli Zaretskii <eliz@gnu.org>
AuthorDate: Sun Oct 8 16:59:00 2023 +0100

    * install-info/install-info.c (readfile):
    Correct check for whether a compression program is being used
    in order to correctly close a file.
---
 ChangeLog                   | 6 ++++++
 install-info/install-info.c | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 0587f7ad3d..3adf7f1450 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-10-08  Eli Zaretskii <eliz@gnu.org>
+
+       * install-info/install-info.c (readfile):
+       Correct check for whether a compression program is being used
+       in order to correctly close a file.
+
 2023-10-08  Eli Zaretskii <eliz@gnu.org>
 
        * install-info/install-info.c (open_possibly_compressed_file):
diff --git a/install-info/install-info.c b/install-info/install-info.c
index 3873469342..1377a5e6fd 100644
--- a/install-info/install-info.c
+++ b/install-info/install-info.c
@@ -906,7 +906,7 @@ readfile (char *filename, int *sizep,
   /* We need to close the stream, since on some systems the pipe created
      by popen is simulated by a temporary file which only gets removed
      inside pclose.  */
-  if (compression_program)
+  if (compression_program && *compression_program)
     pclose (f);
   else
     fclose (f);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]