HomePhorge

(#9983) Restore files in binary mode
dc8bcf85f0e1Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#9983) Restore files in binary mode

Previously we were restoring files in text mode, which causes Windows
to translate '\n' characters into '\r\n', thereby corrupting the file.

It also incorrectly computed the checksum for the to-be-restored file
for the same reason.

This commit sets the binary mode flag in both cases, which is a noop
on Unix.

Details

Provenance
Josh Cooper <josh@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU489a679cd4be: (#9983) Checksum files in binary mode
Branches
Unknown
Tags
Unknown

Event Timeline

Josh Cooper <josh@puppetlabs.com> committed rPUdc8bcf85f0e1: (#9983) Restore files in binary mode (authored by Josh Cooper <josh@puppetlabs.com>).Nov 1 2011, 5:27 PM