m4-patches
[Top][All Lists]
Advanced

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

FYI: EXIT_FAILURE if a named input file is missing [m4--release--1.4--pa


From: Gary V. Vaughan
Subject: FYI: EXIT_FAILURE if a named input file is missing [m4--release--1.4--patch-11]
Date: Tue, 18 Oct 2005 13:34:10 +0100 (BST)
User-agent: mailnotify/0.7

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Applied to branch-1_4.

  * looking for address@hidden/m4--release--1.4--patch-10 to compare with
  * comparing to address@hidden/m4--release--1.4--patch-10
  M  src/m4.c
  M  ChangeLog
  
  * modified files
  
  Index: Changelog
  from  John Gatewood Ham  <address@hidden>  (tiny change)
        * src/m4.c: fix return code when non-existent files are processed
  
  2005-10-17  John Gatewood Ham  <address@hidden>  (tiny change)
  
  --- orig/src/m4.c
  +++ mod/src/m4.c
  @@ -1,6 +1,6 @@
   /* GNU m4 -- A simple macro processor
   
  -   Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 2004 Free
  +   Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 2004, 2005 Free
      Software Foundation, Inc.
   
      This program is free software; you can redistribute it and/or modify
  @@ -260,6 +260,7 @@
   int
   main (int argc, char *const *argv, char *const *envp)
   {
  +  int retcode = EXIT_SUCCESS;
     macro_definition *head;    /* head of deferred argument list */
     macro_definition *tail;
     macro_definition *new;
  @@ -485,6 +486,9 @@
            if (fp == NULL)
              {
                error (0, errno, "%s", argv[optind]);
  +             /* Set the status to EXIT_FAILURE, even though we
  +                continue to process files after a missing file.  */
  +             retcode = EXIT_FAILURE;
                continue;
              }
            else
  @@ -507,5 +511,5 @@
         undivert_all ();
       }
   
  -  exit (EXIT_SUCCESS);
  +  exit (retcode);
   }
  
  
  
- -- 
Gary V. Vaughan      ())_.  address@hidden,gnu.org}
Research Scientist   ( '/   http://tkd.kicks-ass.net
GNU Hacker           / )=   http://www.gnu.org/software/libtool
Technical Author   `(_~)_   http://sources.redhat.com/autobook
_________________________________________________________
This patch notification generated by tlaapply version 1.0
http://tkd.kicks-ass.net/arch/address@hidden/cvs-utils--tla--1.0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFDVOvAFRMICSmD1gYRAl5vAJ9JlIkB4mt55srwyfF5CeONdGfksgCfbtSm
gkb+r6hsZJ6KYeoGvQnOThU=
=xzzz
-----END PGP SIGNATURE-----




reply via email to

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