[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gawk-diffs] [SCM] gawk branch, gawk-4.2-stable, updated. gawk-4.1.0-286
From: |
Arnold Robbins |
Subject: |
[gawk-diffs] [SCM] gawk branch, gawk-4.2-stable, updated. gawk-4.1.0-2862-g3d2af5b |
Date: |
Tue, 26 Dec 2017 14:45:44 -0500 (EST) |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".
The branch, gawk-4.2-stable has been updated
via 3d2af5b8dbda182a2be8df30ea8149239f617d8d (commit)
from f871e6ebc0f88cf1e48ffd4945bc805a3bab2be2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=3d2af5b8dbda182a2be8df30ea8149239f617d8d
commit 3d2af5b8dbda182a2be8df30ea8149239f617d8d
Author: Arnold D. Robbins <address@hidden>
Date: Tue Dec 26 21:45:11 2017 +0200
Small fix in extension/gawkfts.c.
diff --git a/extension/ChangeLog b/extension/ChangeLog
index b6e943c..49b156b 100644
--- a/extension/ChangeLog
+++ b/extension/ChangeLog
@@ -1,3 +1,9 @@
+2017-12-26 Arnold D. Robbins <address@hidden>
+
+ * gawkfts.c (fts_safe_changedir): Add check for path not null
+ before trying to open it. Thanks to Michal Jaegermann
+ <address@hidden> for the report.
+
2017-12-24 Michal Jaegermann <address@hidden>
* intdiv.c: Fix compilation for MPFR 2.4.1.
diff --git a/extension/gawkfts.c b/extension/gawkfts.c
index d9edd87..c7fbc17 100644
--- a/extension/gawkfts.c
+++ b/extension/gawkfts.c
@@ -1239,7 +1239,7 @@ fts_safe_changedir(const FTS *sp, const FTSENT *p, int
fd, const char *path)
if (ISSET(FTS_NOCHDIR))
return 0;
- if (oldfd < 0 && (fd = open(path, O_RDONLY)) == -1)
+ if (oldfd < 0 && (path == NULL || (fd = open(path, O_RDONLY)) == -1))
return -1;
if (fstat(fd, &sb) == -1)
-----------------------------------------------------------------------
Summary of changes:
extension/ChangeLog | 6 ++++++
extension/gawkfts.c | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gawk-diffs] [SCM] gawk branch, gawk-4.2-stable, updated. gawk-4.1.0-2862-g3d2af5b,
Arnold Robbins <=