From: Eli Zaretskii Date: Sat, 18 Sep 2021 06:40:55 +0000 (+0300) Subject: ; Improve the last change in NEWS. X-Git-Tag: emacs-28.0.90~878 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3e13433ea97b988919a0599c19099b303ee4a4b6;p=emacs.git ; Improve the last change in NEWS. --- diff --git a/etc/NEWS b/etc/NEWS index b93e87642b8..cfa0c33e453 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -294,11 +294,15 @@ personalize the uniquified buffer name. --- ** 'remove-hook' is now an interactive command. +--- ** 'expand-file-name' now checks for null bytes in filenames. The function will now check for null bytes in both NAME and DEFAULT-DIRECTORY arguments, as well as in the 'default-directory' -buffer-local variable, assuming its value is used. If null bytes are +buffer-local variable, when its value is used. If null bytes are found, 'expand-file-name' will signal an error. +This means that practically all file-related operations will now check +file names for null bytes, thus avoiding subtle bugs with silently +using only the part of file name up to the first null byte. --- ** Frames @@ -4155,12 +4159,6 @@ Emacs constructs the nondirectory part of the auto-save file name by applying that 'secure-hash' to the buffer file name. This avoids any risk of excessively long file names. ---- -** File names checked for null bytes. -Functions operating on local file names now check that the file names -don't contain any NUL bytes. This avoids subtle bugs caused by -silently using only the part of the file name until the first NUL byte. - +++ ** New user option 'process-file-return-signal-string'. It controls, whether 'process-file' returns a string when a remote