0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-21 22:06:17 +00:00
termux-packages/disabled-packages/wireshark-gtk/wireshark-2.6.1_caputils_ws80211_utils.c.patch
Tee KOBAYASHI b7160c7434 wireshark-gtk: Disabled
In favor of wireshark-qt.
2022-10-17 18:33:08 +09:00

22 lines
837 B
Diff

diff -uNr wireshark-2.6.1/caputils/ws80211_utils.c wireshark-2.6.1.mod/caputils/ws80211_utils.c
--- wireshark-2.6.1/caputils/ws80211_utils.c 2018-05-22 21:53:08.000000000 +0300
+++ wireshark-2.6.1.mod/caputils/ws80211_utils.c 2018-06-26 18:49:28.794971784 +0300
@@ -680,7 +680,7 @@
/* Update names of user created monitor interfaces */
while(fgets(line, sizeof(line), fh)) {
- t = index(line, ':');
+ t = strchr(line, ':');
if (!t)
continue;
*t = 0;
@@ -934,7 +934,7 @@
return -1;
}
-const char *network_manager_path = "/usr/sbin/NetworkManager"; /* Is this correct? */
+const char *network_manager_path = "@TERMUX_PREFIX@/bin/NetworkManager"; /* Is this correct? */
const char *ws80211_get_helper_path(void) {
if (g_file_test(network_manager_path, G_FILE_TEST_IS_EXECUTABLE)) {
return network_manager_path;