]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix RCS crashes in vc-test
authorEli Zaretskii <eliz@gnu.org>
Mon, 22 Jun 2015 16:06:23 +0000 (19:06 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 22 Jun 2015 16:06:23 +0000 (19:06 +0300)
* lisp/vc/vc-rcs.el (vc-rcs-register): Avoid crashes with some old
ports of 'ci' on MS-Windows by always passing the -t- switch.

lisp/vc/vc-rcs.el

index 1e1990890a291ddeb70c2040be3ad095cb842fb7..71ffa55a6e96697729bc4b51a991432f5e7bf6c1 100644 (file)
@@ -243,7 +243,9 @@ to the RCS command."
             ;; if available, use the secure registering option
             (and (vc-rcs-release-p "5.6.4") "-i")
             "-u"
-            (and comment (concat "-t-" comment))
+             ;; Some old MS-Windows ports of RCS crash when "ci -i" is
+             ;; invoked without -t; indulge them.
+            (concat "-t-" (or comment ""))
             (vc-switches 'RCS 'register))
       ;; parse output to find master file name and workfile version
       (with-current-buffer "*vc*"