m4-commit
[Top][All Lists]
Advanced

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

Changes to m4/m4/path.c


From: Gary V . Vaughan
Subject: Changes to m4/m4/path.c
Date: Wed, 04 May 2005 14:56:38 -0400

Index: m4/m4/path.c
diff -u m4/m4/path.c:1.13 m4/m4/path.c:1.14
--- m4/m4/path.c:1.13   Sun May  1 11:10:05 2005
+++ m4/m4/path.c        Wed May  4 18:56:36 2005
@@ -1,5 +1,7 @@
 /* GNU m4 -- A simple macro processor
-   Copyright (C) 1989, 90, 91, 92, 93, 98 Free Software Foundation, Inc.
+
+   Copyright (C) 1989, 1990, 1991, 1992, 1993, 1998, 2004
+   Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -121,6 +123,7 @@
   FILE *fp;
   m4__search_path *incl;
   char *name;                  /* buffer for constructed name */
+  int e;
 
   /* Look in current working directory first.  */
   fp = fopen (dir, "r");
@@ -134,6 +137,7 @@
   /* If file not found, and filename absolute, fail.  */
   if (*dir == '/' || m4_get_no_gnu_extensions_opt (context))
     return NULL;
+  e= errno;
 
   name = (char *) xmalloc (m4__get_search_path (context)->max_length + 1 + 
strlen (dir) + 1);
 
@@ -162,6 +166,7 @@
 
   free (name);
 
+  errno = e;
   return fp;
 }
 




reply via email to

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