diff options
author | Stephane Chazelas <stephane.chazelas@gmail.com> | 2018-03-14 14:42:48 +0000 |
---|---|---|
committer | Peter Stephenson <p.stephenson@samsung.com> | 2018-03-15 09:21:47 +0000 |
commit | 1219eae82938c918f5183e89af4a54296256372f (patch) | |
tree | 821e910f05856411a1b82deafea3c390e4dd85ae /Src/Modules/mapfile.c | |
parent | 7fd8e380bfc36013acf157de82dbf39e314d3dc4 (diff) | |
download | zsh-1219eae82938c918f5183e89af4a54296256372f.tar.gz zsh-1219eae82938c918f5183e89af4a54296256372f.tar.xz zsh-1219eae82938c918f5183e89af4a54296256372f.zip |
42465: Pass up error status from readoutput().
This improves the consistency of error reporting from $(...) constructs.
Diffstat (limited to 'Src/Modules/mapfile.c')
-rw-r--r-- | Src/Modules/mapfile.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ |