File: nettool.patch

package info (click to toggle)
tcllib 1.18-dfsg-3
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 64,304 kB
  • ctags: 28,857
  • sloc: tcl: 174,135; ansic: 14,215; sh: 2,643; xml: 1,766; yacc: 1,148; pascal: 583; makefile: 106; perl: 84; f90: 84; python: 33; ruby: 13; php: 11
file content (29 lines) | stat: -rw-r--r-- 922 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Author: Sergei Golovan
Description: Patch hardcodes arp and ifconfig paths for the case when /sbin
 or /usr/sbin isn't in the user's PATH.
Last-Modified: Tue, 26 Apr 2016 17:24:52 +0300
Debian-Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=822293
Bug: https://core.tcl.tk/tcllib/tktview?name=d879576438

--- a/modules/nettool/platform_unix.tcl
+++ b/modules/nettool/platform_unix.tcl
@@ -11,7 +11,7 @@
 ###
 proc ::nettool::arp_table {} {
   set result {}
-  set dat [exec arp -a]
+  set dat [exec /usr/sbin/arp -a]
   foreach line [split $dat \n] {
     set host [lindex $line 0]
     set ip [lindex $line 1]
--- a/modules/nettool/platform_unix_linux.tcl
+++ b/modules/nettool/platform_unix_linux.tcl
@@ -92,7 +92,7 @@
 # description: Dump interfaces
 ###
 proc ::nettool::dump {} {
-  set data [exec ifconfig]
+  set data [exec /sbin/ifconfig]
   set iface {}
   set result {}
   foreach line [split $data \n] {