]> git.notmuchmail.org Git - notmuch/commitdiff
notmuch-deliver: Don't read errno inappropriately.
authorThomas Schwinge <thomas@schwinge.name>
Wed, 29 Dec 2010 19:35:02 +0000 (20:35 +0100)
committerAli Polatel <alip@exherbo.org>
Fri, 4 Nov 2011 23:12:35 +0000 (01:12 +0200)
Signed-off-by: Thomas Schwinge <thomas@schwinge.name>
contrib/notmuch-deliver/src/main.c

index 86437763e9431c02d683c3a24aa429135eed0cd5..f7a4eaa6576bd1ec544d54c54b0e3d6e158388d0 100644 (file)
@@ -167,8 +167,7 @@ save_splice(int fdin, int fdout)
                do {
                        written = splice(pfd[0], NULL, fdout, NULL, ret, 0);
                        if (!written) {
-                               g_critical("Splicing data to temporary file failed: %s",
-                                       g_strerror(errno));
+                               g_critical("Splicing data to temporary file failed: internal error");
                                close(pfd[0]);
                                close(pfd[1]);
                                return EX_IOERR;