* lisp/vc/vc-sccs.el (vc-sccs-diff): If the diff command is to be
run remotely, then the temporary files it's acting on must be
remote too (bug#37777).
Copyright-paperwork-exempt: yes
(message "Running %s in foreground..." fake-command))
(if oldproc (delete-process oldproc))
(dolist (file files)
- (let ((oldfile (make-temp-file "vc-sccs"))
+ (let ((oldfile (make-nearby-temp-file "vc-sccs"))
newfile)
(unwind-protect
(progn
(this-status
(apply 'process-file "diff" nil t nil
(append (vc-switches 'SCCS 'diff)
- (list oldfile
+ (list (file-local-name oldfile)
(or newfile
(file-relative-name file)))))))
(or (integerp this-status) (setq status 'error))