X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fpath.c;h=71ccb3e9a309a1e432ae2388bfb6ca7dfb264337;hb=refs%2Fheads%2Faccepted%2Ftizen_base_tool;hp=278200b78255b638b34c759b631a29e97c6ab851;hpb=931b01b091932a1f796c23379ea32abb68bd5895;p=platform%2Fupstream%2Fm4.git
diff --git a/src/path.c b/src/path.c
index 278200b..71ccb3e 100644
--- a/src/path.c
+++ b/src/path.c
@@ -1,7 +1,7 @@
/* GNU m4 -- A simple macro processor
- Copyright (C) 1989-1993, 2004, 2006-2013 Free Software Foundation,
- Inc.
+ Copyright (C) 1989-1993, 2004, 2006-2014, 2016-2017, 2020-2021 Free
+ Software Foundation, Inc.
This file is part of GNU M4.
@@ -16,7 +16,7 @@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program. If not, see .
+ along with this program. If not, see .
*/
/* Handling of path search of included files via the builtins "include"
@@ -110,7 +110,7 @@ add_include_directory (const char *dir)
static FILE *
m4_fopen (const char *file)
{
- FILE *fp = fopen (file, "r");
+ FILE *fp = fopen (file, "re");
if (fp)
{
struct stat st;
@@ -121,9 +121,6 @@ m4_fopen (const char *file)
errno = EISDIR;
return NULL;
}
- if (set_cloexec_flag (fd, true) != 0)
- M4ERROR ((warning_status, errno,
- "Warning: cannot protect input file across forks"));
}
return fp;
}
@@ -192,7 +189,7 @@ m4_path_search (const char *file, char **result)
#ifdef DEBUG_INCL
-static void M4_GNUC_UNUSED
+static void MAYBE_UNUSED
include_dump (void)
{
includes *incl;