Bug 185282 - net-analyzer/iftop-0.17 - /etc/iftoprc doesn't honor config file
Bug#: 185282 Product:  Gentoo Linux Version: 2007.0 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: pva@gentoo.org Reported By: massimo.burcheri@gmx.de
Component: Applications
URL: 
Summary: net-analyzer/iftop-0.17 - /etc/iftoprc doesn't honor config file
Keywords:  
Status Whiteboard: 
Opened: 2007-07-14 09:59 0000
Description:   Opened: 2007-07-14 09:59 0000
iftop looks for ~/.iftoprc only.
The ebuild comes with /etc/iftoprc but the file isn't used. I suggest

alias iftop="iftop -c /etc/iftoprc"

------- Comment #1 From Peter Volkov 2007-07-15 19:56:51 0000 -------
Created an attachment (id=124949) [details]
iftop-fallback-on-etciftoprc.patch

------- Comment #2 From Peter Volkov 2007-07-15 20:02:02 0000 -------
Thank you for report, Massimo. Actually iftop man page does not mention
/etc/iftoprc, and as you told us, does not use it. One possible solution is in
the patch I've created just for fun... With that patch, if iftop does not find
$HOME/.iftoprc it falls back on /etc/iftoprc. But to follow upstream decisions
I've just moved example iftoprc into /usr/share/doc/${PF}/.