[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HISTFILE=/dev/null, HISTSIZE=0 removes /dev/null on exit
From: |
Chet Ramey |
Subject: |
Re: HISTFILE=/dev/null, HISTSIZE=0 removes /dev/null on exit |
Date: |
Tue, 20 Oct 2015 14:42:31 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 |
On 10/20/15 11:03 AM, Marko Teiste wrote:
> Description:
> setting HISTFILE=/dev/null and HISTSIZE=0 will replace /dev/null
> with regular file on exit (when running as root).
>
> Repeat-By:
> start bash with root priviledges
> HISTFILE=/dev/null
> HISTSIZE=0
> exit
>
> Fix:
> Check if HISTFILE points to regular file before unlink/recreate?
Thanks for the report. This has been fixed for the next release of bash.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/