texinfo-commits
[Top][All Lists]
Advanced

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

[no subject]


From: Gavin D. Smith
Date: Fri, 18 Aug 2023 08:28:11 -0400 (EDT)

branch: master
commit 020e7bda442d082b608e90bae6229cf6f7bfd955
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Fri Aug 18 12:01:01 2023 +0100

    * install-info/install-info.c (output_dirfile): Avoid mixed
    declaration and statements.
---
 ChangeLog                   | 5 +++++
 install-info/install-info.c | 3 ++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 8618edb27d..5221a62325 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-08-18  Gavin Smith <gavinsmith0123@gmail.com>
+
+       * install-info/install-info.c (output_dirfile): Avoid mixed
+       declaration and statements.
+
 2023-08-18  Gavin Smith <gavinsmith0123@gmail.com>
 
        install-info atomic dir update
diff --git a/install-info/install-info.c b/install-info/install-info.c
index dbcc6e24a0..c7a21ff075 100644
--- a/install-info/install-info.c
+++ b/install-info/install-info.c
@@ -928,6 +928,7 @@ output_dirfile (char *dirfile, int dir_nlines, struct 
line_data *dir_lines,
   int tempfile;
   static char *tempname;
   int dirfile_len;
+  mode_t um;
 
   /* Create temporary file in the same directory as dirfile.  This ensures
      it is on the same disk volume and can be renamed to dirfile when
@@ -943,7 +944,7 @@ output_dirfile (char *dirfile, int dir_nlines, struct 
line_data *dir_lines,
   tempfile = mkstemp (tempname);
 
   /* Reset the mode that the file is set to.  */
-  mode_t um = umask (0022);
+  um = umask (0022);
   umask (um);
   if (chmod (tempname, 0666 & ~um) < 0)
     {



reply via email to

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