Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion content-hash.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ starting storage block in STREAM, and the total file size."
"Read a line from a binary stream and return it as an ascii string."
(with-output-to-string (string)
(loop for byte = (read-byte stream)
until (= byte (char-code #\Newline))
with line-end-chars = (list (char-code #\Newline)
(char-code #\Return))
until (member byte line-end-chars :test #'=)
do (write-char (code-char byte) string))))

(defun content-hash (tarfile)
Expand Down
Loading