diff options
author | Ron Yorston <rmy@pobox.com> | 2024-06-19 11:07:47 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2024-06-19 11:07:47 +0100 |
commit | 91226ced0a04302dfe04227aff062cade476a930 (patch) | |
tree | 53d75a835d677428713a6444575d7d21a06a5160 /init | |
parent | 0914f116c06d4724f25e23b685279024f809f434 (diff) | |
download | busybox-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 'init')
0 files changed, 0 insertions, 0 deletions