From 1219eae82938c918f5183e89af4a54296256372f Mon Sep 17 00:00:00 2001 From: Stephane Chazelas Date: Wed, 14 Mar 2018 14:42:48 +0000 Subject: 42465: Pass up error status from readoutput(). This improves the consistency of error reporting from $(...) constructs. --- Src/Modules/mapfile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Src/Modules') diff --git a/Src/Modules/mapfile.c b/Src/Modules/mapfile.c index 2503b361e..771e5b5fc 100644 --- a/Src/Modules/mapfile.c +++ b/Src/Modules/mapfile.c @@ -197,8 +197,9 @@ get_contents(char *fname) val = NULL; if ((fd = open(fname, O_RDONLY | O_NOCTTY)) >= 0) { LinkList ll; + int readerror; - if ((ll = readoutput(fd, 1))) + if ((ll = readoutput(fd, 1, &readerror))) val = peekfirst(ll); } #endif /* USE_MMAP */ -- cgit 1.4.1