From 83fe9803ded76a381d248cb9672be27fc2326dad Mon Sep 17 00:00:00 2001 From: Jan Safranek Date: Jun 09 2011 12:54:44 +0000 Subject: break the message for better readability in wireshark GUI --- diff --git a/wireshark-1.4.2-group-msg.patch b/wireshark-1.4.2-group-msg.patch index 8ad42df..c8bb145 100644 --- a/wireshark-1.4.2-group-msg.patch +++ b/wireshark-1.4.2-group-msg.patch @@ -31,7 +31,7 @@ index 68b79f7..71de366 100644 - g_snprintf(errmsg, sizeof errmsg, "Couldn't run %s in child process: %s", - argv[0], strerror(errno)); + if (errno == EPERM || errno == EACCES) -+ securitymsg = "\nAre you memeber of 'wireshark' group? Try running 'usermod -a -G wireshark ' as root."; ++ securitymsg = "\nAre you memeber of 'wireshark' group? Try running\n'usermod -a -G wireshark ' as root."; + g_snprintf(errmsg, sizeof errmsg, "Couldn't run %s in child process: %s%s", + argv[0], strerror(errno), securitymsg); sync_pipe_errmsg_to_parent(2, errmsg, "");