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 05:45:34 -0400 (EDT)

branch: master
commit 4232c97bb0488b63a7a031ae610ceb44b80203c5
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Fri Aug 18 10:45:23 2023 +0100

    * install-info/install-info.c (output_dirfile):
    Change further uses of perror to pfatal_with_name for concision
    and to print program name.
---
 ChangeLog                   | 6 ++++++
 install-info/install-info.c | 8 ++------
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 7ac04fab84..1db7bd0783 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-08-18  Gavin Smith <gavinsmith0123@gmail.com>
+
+       * install-info/install-info.c (output_dirfile):
+       Change further uses of perror to pfatal_with_name for concision
+       and to print program name.
+
 2023-08-18  Gavin Smith <gavinsmith0123@gmail.com>
 
        * install-info/install-info.c (output_dirfile):
diff --git a/install-info/install-info.c b/install-info/install-info.c
index 3aab38dfe6..d14b23215f 100644
--- a/install-info/install-info.c
+++ b/install-info/install-info.c
@@ -935,9 +935,8 @@ output_dirfile (char *dirfile, int dir_nlines, struct 
line_data *dir_lines,
   umask (um);
   if (chmod (tempname, 0666 & ~um) < 0)
     {
-      perror ("chmod");
       remove (tempname);
-      exit (EXIT_FAILURE);
+      pfatal_with_name (tempname);
     }
 
   if (compression_program)
@@ -951,10 +950,7 @@ output_dirfile (char *dirfile, int dir_nlines, struct 
line_data *dir_lines,
     output = fdopen (tempfile, "w");
 
   if (!output)
-    {
-      perror (dirfile);
-      exit (EXIT_FAILURE);
-    }
+    pfatal_with_name (dirfile);
 
   for (i = 0; i <= dir_nlines; i++)
     {



reply via email to

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