Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11724

Re: HISTFILE=/dev/null, HISTSIZE=0 removes /dev/null on exit

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: HISTFILE=/dev/null, HISTSIZE=0 removes /dev/null on exit
Date 2015-10-20 14:42 -0400
Message-ID <mailman.697.1445366559.7904.bug-bash@gnu.org> (permalink)
References <06C8BC12-AD9F-48B6-9A34-A4338D00951D@gmail.com>

Show all headers | View raw


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/

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: HISTFILE=/dev/null, HISTSIZE=0 removes /dev/null on exit Chet Ramey <chet.ramey@case.edu> - 2015-10-20 14:42 -0400

csiph-web