Commits

mdiers  committed a74eac7

clearcase-vxpath-get-version-in-buffer: Make temp-file writable if
necessary to avoid failure of `delete-file'.

Submitted by:
Adrian Aichner <adrian@xemacs.org>

References:
http://list-archive.xemacs.org/xemacs-patches/200201/msg00124.html
http://list-archive.xemacs.org/xemacs-patches/200202/msg00015.html

  • Participants
  • Parent commits 962f77a

Comments (0)

Files changed (1)

File clearcase.el

 Intended for use in snapshot views."
   (let* ((temp-file (clearcase-vxpath-get-version-in-temp-file vxpath))
          (buffer (find-file-noselect temp-file t)))
+    ;; native Windows XEmacs change:  file cannot be removed if read-only.
+    (if (not (file-writable-p temp-file))
+        (set-file-modes temp-file #o666))
     (delete-file temp-file)
     buffer))