Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
flac.197
flac-ocloexec.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File flac-ocloexec.patch of Package flac.197
--- flac-1.2.99_git201305252226.orig/src/libFLAC/metadata_iterators.c +++ flac-1.2.99_git201305252226/src/libFLAC/metadata_iterators.c @@ -420,10 +420,10 @@ static FLAC__bool simple_iterator_prime_ FLAC__ASSERT(0 != iterator); - if(read_only || 0 == (iterator->file = flac_fopen(iterator->filename, "r+b"))) { + if(read_only || 0 == (iterator->file = flac_fopen(iterator->filename, "r+be"))) { iterator->is_writable = false; if(read_only || errno == EACCES) { - if(0 == (iterator->file = flac_fopen(iterator->filename, "rb"))) { + if(0 == (iterator->file = flac_fopen(iterator->filename, "rbe"))) { iterator->status = FLAC__METADATA_SIMPLE_ITERATOR_STATUS_ERROR_OPENING_FILE; return false; } --- flac-1.2.99_git201305252226.orig/src/libFLAC/stream_decoder.c +++ flac-1.2.99_git201305252226/src/libFLAC/stream_decoder.c @@ -606,7 +606,7 @@ static FLAC__StreamDecoderInitStatus ini if(0 == write_callback || 0 == error_callback) return decoder->protected_->state = FLAC__STREAM_DECODER_INIT_STATUS_INVALID_CALLBACKS; - file = filename? flac_fopen(filename, "rb") : stdin; + file = filename? flac_fopen(filename, "rbe") : stdin; if(0 == file) return FLAC__STREAM_DECODER_INIT_STATUS_ERROR_OPENING_FILE; --- flac-1.2.99_git201305252226.orig/src/libFLAC/stream_encoder.c +++ flac-1.2.99_git201305252226/src/libFLAC/stream_encoder.c @@ -1250,7 +1250,7 @@ static FLAC__StreamEncoderInitStatus ini if(encoder->protected_->state != FLAC__STREAM_ENCODER_UNINITIALIZED) return FLAC__STREAM_ENCODER_INIT_STATUS_ALREADY_INITIALIZED; - file = filename? flac_fopen(filename, "w+b") : stdout; + file = filename? flac_fopen(filename, "w+be") : stdout; if(file == 0) { encoder->protected_->state = FLAC__STREAM_ENCODER_IO_ERROR;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor