mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
notmuch-deliver: Don't read errno inappropriately.
Signed-off-by: Thomas Schwinge <thomas@schwinge.name>
This commit is contained in:
parent
8935c83c56
commit
c39fd2a479
1 changed files with 1 additions and 2 deletions
|
@ -167,8 +167,7 @@ save_splice(int fdin, int fdout)
|
||||||
do {
|
do {
|
||||||
written = splice(pfd[0], NULL, fdout, NULL, ret, 0);
|
written = splice(pfd[0], NULL, fdout, NULL, ret, 0);
|
||||||
if (!written) {
|
if (!written) {
|
||||||
g_critical("Splicing data to temporary file failed: %s",
|
g_critical("Splicing data to temporary file failed: internal error");
|
||||||
g_strerror(errno));
|
|
||||||
close(pfd[0]);
|
close(pfd[0]);
|
||||||
close(pfd[1]);
|
close(pfd[1]);
|
||||||
return EX_IOERR;
|
return EX_IOERR;
|
||||||
|
|
Loading…
Reference in a new issue