Fix spelling of the security message
This commit is contained in:
parent
a51bdcd9a4
commit
9515596741
@ -25,7 +25,7 @@ diff -up wireshark-1.6.1/capture_sync.c.group-msg wireshark-1.6.1/capture_sync.c
|
|||||||
- g_snprintf(errmsg, sizeof errmsg, "Couldn't run %s in child process: %s",
|
- g_snprintf(errmsg, sizeof errmsg, "Couldn't run %s in child process: %s",
|
||||||
- argv[0], g_strerror(errno));
|
- argv[0], g_strerror(errno));
|
||||||
+ if (errno == EPERM || errno == EACCES)
|
+ if (errno == EPERM || errno == EACCES)
|
||||||
+ securitymsg = "\nAre you memeber of 'wireshark' group? Try running\n'usermod -a -G wireshark _your_username_' as root.";
|
+ securitymsg = "\nAre you a memeber of the 'wireshark' group? Try running\n'usermod -a -G wireshark _your_username_' as root.";
|
||||||
+ g_snprintf(errmsg, sizeof errmsg, "Couldn't run %s in child process: %s%s",
|
+ g_snprintf(errmsg, sizeof errmsg, "Couldn't run %s in child process: %s%s",
|
||||||
+ argv[0], g_strerror(errno), securitymsg);
|
+ argv[0], g_strerror(errno), securitymsg);
|
||||||
sync_pipe_errmsg_to_parent(2, errmsg, "");
|
sync_pipe_errmsg_to_parent(2, errmsg, "");
|
||||||
@ -46,7 +46,7 @@ diff -up wireshark-1.6.1/capture_sync.c.group-msg wireshark-1.6.1/capture_sync.c
|
|||||||
- g_snprintf(errmsg, sizeof errmsg, "Couldn't run %s in child process: %s",
|
- g_snprintf(errmsg, sizeof errmsg, "Couldn't run %s in child process: %s",
|
||||||
- argv[0], g_strerror(errno));
|
- argv[0], g_strerror(errno));
|
||||||
+ if (errno == EPERM || errno == EACCES)
|
+ if (errno == EPERM || errno == EACCES)
|
||||||
+ securitymsg = "\nAre you memeber of 'wireshark' group? Try running\n'usermod -a -G wireshark _your_username_' as root.";
|
+ securitymsg = "\nAre you a memeber of the 'wireshark' group? Try running\n'usermod -a -G wireshark _your_username_' as root.";
|
||||||
+ g_snprintf(errmsg, sizeof errmsg, "Couldn't run %s in child process: %s%s",
|
+ g_snprintf(errmsg, sizeof errmsg, "Couldn't run %s in child process: %s%s",
|
||||||
+ argv[0], g_strerror(errno), securitymsg);
|
+ argv[0], g_strerror(errno), securitymsg);
|
||||||
sync_pipe_errmsg_to_parent(2, errmsg, "");
|
sync_pipe_errmsg_to_parent(2, errmsg, "");
|
||||||
|
Loading…
Reference in New Issue
Block a user