HomePhorge

(#9983) Use binary mode when reading and writing FileBucketFiles
4b4bb8b0e1d9Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#9983) Use binary mode when reading and writing FileBucketFiles

Previously, the Puppet::FileBucketFile terminus used text mode in its
save and find methods. It also used text mode when validating that a
file that it was asked to save matched what was already in the file
bucket.

This commit changes these methods to use binary mode, which is a noop
on Unix.

Details

Provenance
Josh Cooper <josh@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU899833b2fcd0: (#9983) Read file content in binary mode when backing up
Branches
Unknown
Tags
Unknown

Event Timeline

Josh Cooper <josh@puppetlabs.com> committed rPU4b4bb8b0e1d9: (#9983) Use binary mode when reading and writing FileBucketFiles (authored by Josh Cooper <josh@puppetlabs.com>).Nov 1 2011, 5:27 PM