* lisp/files.el (insert-directory): Call 'get-free-disk-space'
with the argument FILE, to make sure the reported info is for the
correct volume. (Bug#50630)
Copyright-paperwork-exempt: yes
;; Replace "total" with "total used in directory" to
;; avoid confusion.
(replace-match "total used in directory" nil nil nil 1)
- (let ((available (get-free-disk-space ".")))
+ (let ((available (get-free-disk-space file)))
(when available
(end-of-line)
(insert " available " available))))))))))