summaryrefslogtreecommitdiffstats
path: root/debian/patches/hostname.pl.diff
blob: 642707282f01a0f85e9179e3d4d956c037fa43bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Fix ifconfig path
Forwarded: not-needed
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.:]*)/