Function: tar-chmod-entry
tar-chmod-entry is an interactive and byte-compiled function defined
in tar-mode.el.gz.
Signature
(tar-chmod-entry NEW-MODE)
Documentation
Change the protection bits associated with this entry in the tar file.
This does not modify the disk image; you must save the tar file itself for this to be permanent.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/tar-mode.el.gz
(defun tar-chmod-entry (new-mode)
"Change the protection bits associated with this entry in the tar file.
This does not modify the disk image; you must save the tar file itself
for this to be permanent."
(interactive (list (tar-parse-octal-integer-safe
(read-string "New protection (octal): "))))
(setf (tar-header-mode (tar-current-descriptor)) new-mode)
(tar-alter-one-field tar-mode-offset
(concat (substring (format "%6o" new-mode) 0 6) "\000 ")))