Author: mlandres Date: Mon Jan 28 15:58:49 2008 New Revision: 8375 URL: http://svn.opensuse.org/viewcvs/zypp?rev=8375&view=rev Log: Fixed missing O_CREAT when opening an ofgzstream. Modified: branches/tmp/ma/jump_sat/libzypp/zypp/base/GzStream.cc branches/tmp/ma/jump_sat/libzypp/zypp/base/GzStream.h Modified: branches/tmp/ma/jump_sat/libzypp/zypp/base/GzStream.cc URL: http://svn.opensuse.org/viewcvs/zypp/branches/tmp/ma/jump_sat/libzypp/zypp/base/GzStream.cc?rev=8375&r1=8374&r2=8375&view=diff ============================================================================== --- branches/tmp/ma/jump_sat/libzypp/zypp/base/GzStream.cc (original) +++ branches/tmp/ma/jump_sat/libzypp/zypp/base/GzStream.cc Mon Jan 28 15:58:49 2008 @@ -84,7 +84,7 @@ } else if ( mode_r == std::ios_base::out ) { - _fd = ::open( name_r, O_WRONLY ); + _fd = ::open( name_r, O_WRONLY|O_CREAT ); _file = gzdopen( _fd, "wb" ); } // else: not supported Modified: branches/tmp/ma/jump_sat/libzypp/zypp/base/GzStream.h URL: http://svn.opensuse.org/viewcvs/zypp/branches/tmp/ma/jump_sat/libzypp/zypp/base/GzStream.h?rev=8375&r1=8374&r2=8375&view=diff ============================================================================== --- branches/tmp/ma/jump_sat/libzypp/zypp/base/GzStream.h (original) +++ branches/tmp/ma/jump_sat/libzypp/zypp/base/GzStream.h Mon Jan 28 15:58:49 2008 @@ -64,6 +64,10 @@ }; /////////////////////////////////////////////////////////////////// + /** \relates ZlibError Stream output. */ + inline std::ostream & operator<<( std::ostream & str, const ZlibError & obj ) + { return str << obj.strerror(); } + /////////////////////////////////////////////////////////////////// // // CLASS NAME : fgzstreambuf -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org