]> The Tcpdump Group git mirrors - tcpdump/commitdiff
tcpdump.c: error message must use stderr
authorFrancois-Xavier Le Bail <[email protected]>
Sat, 17 May 2014 09:47:23 +0000 (11:47 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Sat, 17 May 2014 09:47:23 +0000 (11:47 +0200)
tcpdump.c

index 39811867f72ee0f17bbe7127211c44c7e351d284..a2bd5a6da9f397f47b3c53cd23cc5a5f71183866 100644 (file)
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -711,7 +711,7 @@ droproot(const char *username, const char *chroot_dir)
 #ifdef HAVE_CAP_NG_H
                int ret = capng_change_id(pw->pw_uid, pw->pw_gid, CAPNG_NO_FLAG);
                if (ret < 0) {
-                       printf("error : ret %d\n", ret);
+                       fprintf(stderr, "error : ret %d\n", ret);
                }
                /* We don't need CAP_SETUID and CAP_SETGID */
                capng_update(CAPNG_DROP, CAPNG_EFFECTIVE, CAP_SETUID);