Bug#500294: Should not put .asterisk_history in the root home directory
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Sat Sep 27 12:22:15 UTC 2008
On Sat, Sep 27, 2008 at 01:43:47PM +0200, Ondřej Surý wrote:
> Sadly this not entirely true. It's the stop action of init.d script
> which creates .asterisk_history.
And this is because the stop script runs:
asterisk -rx 'stop now'
This is not the asterisk daemon (verified with strace that this is the
process that generates the file).
Some other interesting points:
1.
asterisk -U asterisk -c
does try to open /root/.asterisk_history . I guess $HOME is not properly
set. Tested on Debian's packlage and on recent upstream trunk. The
result is permission denied, though.
2. asterisk -rx has no need to open the history file, as it does not
write there.
So a silly workaround would be to use: 'asterisk -U asterisk -rx' .
A better fix is not to initialize the terminal on 'asterisk -rx' .
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
More information about the Pkg-voip-maintainers
mailing list