]> git.eshelyaron.com Git - emacs.git/commit
Fix userlock.el and filelock-tests in some rare cases
authorEli Zaretskii <eliz@gnu.org>
Fri, 28 Jul 2023 06:31:25 +0000 (09:31 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 28 Jul 2023 06:31:25 +0000 (09:31 +0300)
commit36b6124d810679cc0f23282d51d9bf8b01f26011
treecaec6017da7c4a3fcd8038b2b740803ac8ea618e
parentfd88b6cdd4b070622e46a87ab2d11dc69bd91b38
Fix userlock.el and filelock-tests in some rare cases

* lisp/userlock.el (userlock--check-content-unchanged): Don't
assume 'file-truename' of FILENAME is always non-nil.  It could be
nil if we are called from a temporary buffer where some Lisp
program has forcibly set 'buffer-file-name'.  (Bug#64821)

* test/src/filelock-tests.el (filelock-tests--fixture): Set
'buffer-file-name' to the true name of the temporary file.
Patch by Mattias EngdegĂ„rd <mattias.engdegard@gmail.com>.
(filelock-tests-detect-external-change): Quote the file names
passed to shell commands.
lisp/userlock.el
test/src/filelock-tests.el