X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/03c037bbd75588beba3ee09f26d17783d21e30bc..75866fb1db0b52ce70940e113e48fa353fb00d1e:/tcpdump.c diff --git a/tcpdump.c b/tcpdump.c index 0b654158..837f14e9 100644 --- a/tcpdump.c +++ b/tcpdump.c @@ -2026,6 +2026,8 @@ main(int argc, char **argv) /* Run with '-Z root' to restore old behaviour */ if (!username) username = WITH_USER; + else if (strcmp(username, "root") == 0) + username = NULL; } #endif