File: hostname.pl.diff

package info (click to toggle)
irssi-scripts 20160301
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,624 kB
  • ctags: 2,564
  • sloc: perl: 61,025; sh: 184; makefile: 6
file content (14 lines) | stat: -rw-r--r-- 446 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Fix ifconfig path
Forwarded: no
Last-Update: 2016-02-29
--- a/scripts/hostname.pl
+++ b/scripts/hostname.pl
@@ -117,7 +117,7 @@ sub hostname {
 sub get_addresses {
   Irssi::print("Resolving IP addresses...");
   %addresses = ();
-  open(IFCONFIG, "-|", "ifconfig");
+  open(IFCONFIG, "-|", "/sbin/ifconfig");
   while (<IFCONFIG>) {
     $addresses{$2} = resolve($2)
       if (/(inet addr:|inet6 addr: |inet |inet6 )([0-9a-f.:]*)/