]> code.delx.au - gnu-emacs/blobdiff - lisp/tar-mode.el
(proced-after-send-signal-hook): Use defcustom.
[gnu-emacs] / lisp / tar-mode.el
index 99a7303944a0f7dd8e063683e00008e0f84e0724..12c39117ddd6e037c232a15a916bd3ea7f4c3c00 100644 (file)
@@ -1053,8 +1053,8 @@ for this to be permanent."
                (string-match "/" encoded-new-name
                             (- (length encoded-new-name) 99))
               (< (match-beginning 0) 155))
-      (unless (equal (tar-header-magic descriptor) "ustar\0\0")
-        (tar-alter-one-field tar-magic-offset "ustar\0\0"))
+      (unless (equal (tar-header-magic descriptor) "ustar\0")
+        (tar-alter-one-field tar-magic-offset (concat "ustar\0" "00")))
       (setq prefix (substring encoded-new-name 0 (match-beginning 0)))
       (setq encoded-new-name (substring encoded-new-name (match-end 0))))