Hello community, here is the log from the commit of package flac for openSUSE:Factory checked in at 2011-11-21 15:45:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/flac (Old) and /work/SRC/openSUSE:Factory/.flac.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "flac", Maintainer is "[email protected]" Changes: -------- --- /work/SRC/openSUSE:Factory/flac/flac.changes 2011-10-03 09:17:58.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.flac.new/flac.changes 2011-11-21 15:45:41.000000000 +0100 @@ -1,0 +2,5 @@ +Sun Nov 20 03:45:44 UTC 2011 - [email protected] + +- Use O_CLOEXEC in all library code. + +------------------------------------------------------------------- New: ---- flac-ocloexec.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ flac.spec ++++++ --- /var/tmp/diff_new_pack.s1b5GJ/_old 2011-11-21 15:45:44.000000000 +0100 +++ /var/tmp/diff_new_pack.s1b5GJ/_new 2011-11-21 15:45:44.000000000 +0100 @@ -40,6 +40,7 @@ Patch2: flac-gcc43-fixes.diff Patch3: flac-1.2.1-asm.patch Patch4: flac-1.2.1-bitreader.patch +Patch5: flac-ocloexec.patch Url: http://flac.sourceforge.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -83,6 +84,7 @@ %patch2 %patch3 -p1 %patch4 +%patch5 %build autoreconf --force --install @@ -108,17 +110,13 @@ %check make check -%post -n libFLAC8 -%run_ldconfig +%post -n libFLAC8 -p /sbin/ldconfig -%postun -n libFLAC8 -%run_ldconfig +%postun -n libFLAC8 -p /sbin/ldconfig -%post -n libFLAC++6 -%run_ldconfig +%post -n libFLAC++6 -p /sbin/ldconfig -%postun -n libFLAC++6 -%run_ldconfig +%postun -n libFLAC++6 -p /sbin/ldconfig %files %defattr(-, root, root) ++++++ flac-ocloexec.patch ++++++ --- src/libFLAC/metadata_iterators.c.orig +++ src/libFLAC/metadata_iterators.c @@ -438,10 +438,10 @@ static FLAC__bool simple_iterator_prime_ FLAC__ASSERT(0 != iterator); - if(read_only || 0 == (iterator->file = fopen(iterator->filename, "r+b"))) { + if(read_only || 0 == (iterator->file = fopen(iterator->filename, "r+be"))) { iterator->is_writable = false; if(read_only || errno == EACCES) { - if(0 == (iterator->file = fopen(iterator->filename, "rb"))) { + if(0 == (iterator->file = fopen(iterator->filename, "rbe"))) { iterator->status = FLAC__METADATA_SIMPLE_ITERATOR_STATUS_ERROR_OPENING_FILE; return false; } @@ -1380,7 +1380,7 @@ static FLAC__bool chain_rewrite_metadata FLAC__ASSERT(0 != chain->filename); - if(0 == (file = fopen(chain->filename, "r+b"))) { + if(0 == (file = fopen(chain->filename, "r+be"))) { chain->status = FLAC__METADATA_CHAIN_STATUS_ERROR_OPENING_FILE; return false; } @@ -1405,7 +1405,7 @@ static FLAC__bool chain_rewrite_file_(FL FLAC__ASSERT(0 != chain->head); /* copy the file prefix (data up to first metadata block */ - if(0 == (f = fopen(chain->filename, "rb"))) { + if(0 == (f = fopen(chain->filename, "rbe"))) { chain->status = FLAC__METADATA_CHAIN_STATUS_ERROR_OPENING_FILE; return false; } @@ -1542,7 +1542,7 @@ static FLAC__bool chain_read_(FLAC__Meta chain->is_ogg = is_ogg; - if(0 == (file = fopen(filename, "rb"))) { + if(0 == (file = fopen(filename, "rbe"))) { chain->status = FLAC__METADATA_CHAIN_STATUS_ERROR_OPENING_FILE; return false; } @@ -3240,7 +3240,7 @@ FLAC__bool open_tempfile_(const char *fi strcat(*tempfilename, tempfile_suffix); } - if(0 == (*tempfile = fopen(*tempfilename, "w+b"))) { + if(0 == (*tempfile = fopen(*tempfilename, "w+be"))) { *status = FLAC__METADATA_SIMPLE_ITERATOR_STATUS_ERROR_OPENING_FILE; return false; } --- src/libFLAC/stream_decoder.c.orig +++ src/libFLAC/stream_decoder.c @@ -628,7 +628,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? fopen(filename, "rb") : stdin; + file = filename? fopen(filename, "rbe") : stdin; if(0 == file) return FLAC__STREAM_DECODER_INIT_STATUS_ERROR_OPENING_FILE; --- src/libFLAC/stream_encoder.c.orig +++ src/libFLAC/stream_encoder.c @@ -1283,7 +1283,7 @@ static FLAC__StreamEncoderInitStatus ini if(encoder->protected_->state != FLAC__STREAM_ENCODER_UNINITIALIZED) return FLAC__STREAM_ENCODER_INIT_STATUS_ALREADY_INITIALIZED; - file = filename? fopen(filename, "w+b") : stdout; + file = filename? fopen(filename, "w+be") : stdout; if(file == 0) { encoder->protected_->state = FLAC__STREAM_ENCODER_IO_ERROR; -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
