Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 185282 - net-analyzer/iftop-0.17 - /etc/iftoprc doesn't honor config file
Summary: net-analyzer/iftop-0.17 - /etc/iftoprc doesn't honor config file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Peter Volkov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-14 09:59 UTC by Massimo Burcheri
Modified: 2007-07-15 20:02 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
iftop-fallback-on-etciftoprc.patch (iftop-fallback-on-etciftoprc.patch,1.28 KB, patch)
2007-07-15 19:56 UTC, Peter Volkov (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Massimo Burcheri 2007-07-14 09:59:30 UTC
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 Peter Volkov (RETIRED) gentoo-dev 2007-07-15 19:56:51 UTC
Created attachment 124949 [details, diff]
iftop-fallback-on-etciftoprc.patch
Comment 2 Peter Volkov (RETIRED) gentoo-dev 2007-07-15 20:02:02 UTC
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}/.