Function: tar-header-block-check-checksum

tar-header-block-check-checksum is a byte-compiled function defined in tar-mode.el.gz.

Signature

(tar-header-block-check-checksum HBLOCK DESIRED-CHECKSUM FILE-NAME)

Documentation

Beep and print a warning if the checksum doesn't match.

Source Code

;; Defined in /usr/src/emacs/lisp/tar-mode.el.gz
(defun tar-header-block-check-checksum (hblock desired-checksum file-name)
  "Beep and print a warning if the checksum doesn't match."
  (if (not (= desired-checksum (tar-header-block-checksum hblock)))
      (progn (beep) (message "Invalid checksum for file %s!" file-name))))