bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Marko Teiste
Subject: HISTFILE=/dev/null, HISTSIZE=0 removes /dev/null on exit
Date: Tue, 20 Oct 2015 18:03:24 +0300

Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H   -I.  -I../. -I.././include -I.././lib  -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall
uname output: Linux jessie 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u5 (2015-10-09) x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 4.3
Patch Level: 30
Release Status: release

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?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]