* lisp/vc/vc-rcs.el (vc-rcs-responsible-p): Handle directories.
Fixes: debbugs:9391
(defun vc-rcs-responsible-p (file)
"Return non-nil if RCS thinks it would be responsible for registering FILE."
;; TODO: check for all the patterns in vc-rcs-master-templates
- (file-directory-p (expand-file-name "RCS" (file-name-directory file))))
+ (file-directory-p (expand-file-name "RCS"
+ (if (file-directory-p file)
+ file
+ (file-name-directory file)))))
(defun vc-rcs-receive-file (file rev)
"Implementation of receive-file for RCS."