On Thursday 04 March 2010 21:50:34 Daniel Seither wrote:
Currently, running batctl from the home directory leads to warnings ("Warning - mac already known") if ~/bat-hosts exists. This is caused by batctl parsing both "~/bat-hosts" and "bat-hosts" which happen to be the same file when the working directory is ~
This patch adds duplicate file name detection to bat_hosts_init() to avoid these warnings.
Applied in rev 1582. I added a small check add the end of the patch to make sure that we don't attempt to free a NULL pointer.
Keep up the good work! :-)
Cheers, Marek