summaryrefslogtreecommitdiffstats
path: root/debian/patches/hostname.pl.diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/patches/hostname.pl.diff14
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/patches/hostname.pl.diff b/debian/patches/hostname.pl.diff
new file mode 100644
index 0000000..6427072
--- /dev/null
+++ b/debian/patches/hostname.pl.diff
@@ -0,0 +1,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.:]*)/