aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2024-06-19 11:07:47 +0100
committerRon Yorston <rmy@pobox.com>2024-06-19 11:07:47 +0100
commit91226ced0a04302dfe04227aff062cade476a930 (patch)
tree53d75a835d677428713a6444575d7d21a06a5160 /arch
parent0914f116c06d4724f25e23b685279024f809f434 (diff)
downloadbusybox-w32-91226ced0a04302dfe04227aff062cade476a930.tar.gz
busybox-w32-91226ced0a04302dfe04227aff062cade476a930.tar.bz2
busybox-w32-91226ced0a04302dfe04227aff062cade476a930.zip
ash: allow HISTFILE=/dev/null to work as intended
It was noted that setting HISTFILE=/dev/null in upstream BusyBox prevented shell history from being saved to a history file. This failed in busybox-w32 with an error from lseek(2). The lseek(2) wrapper was rather conservative in the file types it accepted. Allowing FILE_TYPE_CHAR makes it possible to seek on /dev/null, thus avoiding the issue with HISTFILE. In addition, the wrapper for open(2) now converts the Unix-style mode argument to Windows-style. (GitHub issue #425)
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions