]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
maildirlock: Don't use %m format with fprintf(), it's not portable.
authorTimo Sirainen <tss@iki.fi>
Sat, 18 Oct 2008 19:51:20 +0000 (22:51 +0300)
committerTimo Sirainen <tss@iki.fi>
Sat, 18 Oct 2008 19:51:20 +0000 (22:51 +0300)
--HG--
branch : HEAD

src/util/maildirlock.c

index 4dbbace0c3cf6176e586cadfde225f9efe0816f1..a52a9245674bac7d89b65f32b14e9db9709d577f 100644 (file)
@@ -55,13 +55,13 @@ int main(int argc, const char *argv[])
        }
        parent_pid = getpid();
        if (pipe(fd) != 0) {
-               fprintf(stderr, "pipe() failed: %m");
+               fprintf(stderr, "pipe() failed: %s", strerror(errno));
                return 1;
        }
 
        pid = fork();
        if (pid == (pid_t)-1) {
-               fprintf(stderr, "fork() failed: %m");
+               fprintf(stderr, "fork() failed: %s", strerror(errno));
                return 1;
        }
 
@@ -76,7 +76,7 @@ int main(int argc, const char *argv[])
                close(fd[1]);
                ret = read(fd[0], &c, 1);
                if (ret < 0) {
-                       fprintf(stderr, "read(pipe) failed: %m");
+                       i_error("read(pipe) failed: %m");
                        return 1;
                }
                if (ret != 1) {