forked from pool/wireshark
69de01cf37
update to 1.6.3 OBS-URL: https://build.opensuse.org/request/show/90132 OBS-URL: https://build.opensuse.org/package/show/network:utilities/wireshark?expand=0&rev=46
37 lines
1010 B
Diff
37 lines
1010 B
Diff
--- gtk/main.c.orig 2011-11-03 03:42:21.018970202 -0400
|
|
+++ gtk/main.c 2011-11-03 03:45:09.134971896 -0400
|
|
@@ -1382,11 +1382,13 @@
|
|
|
|
static GtkWidget *close_dlg = NULL;
|
|
|
|
+/*
|
|
static void
|
|
priv_warning_dialog_cb(gpointer dialog, gint btn _U_, gpointer data _U_)
|
|
{
|
|
recent.privs_warn_if_elevated = !simple_dialog_check_get(dialog);
|
|
}
|
|
+*/
|
|
|
|
#ifdef _WIN32
|
|
static void
|
|
@@ -1967,9 +1969,10 @@
|
|
#endif
|
|
{
|
|
gchar *cur_user, *cur_group;
|
|
- gpointer priv_warning_dialog;
|
|
+// gpointer priv_warning_dialog;
|
|
|
|
/* Tell the user not to run as root. */
|
|
+/*
|
|
if (running_with_special_privs() && recent.privs_warn_if_elevated) {
|
|
cur_user = get_cur_username();
|
|
cur_group = get_cur_groupname();
|
|
@@ -1981,6 +1984,7 @@
|
|
simple_dialog_check_set(priv_warning_dialog, "Don't show this message again.");
|
|
simple_dialog_set_cb(priv_warning_dialog, priv_warning_dialog_cb, NULL);
|
|
}
|
|
+*/
|
|
|
|
#ifdef _WIN32
|
|
/* Warn the user if npf.sys isn't loaded. */
|