From 8378a1083a06880abbe49f750038afe812da49e1 Mon Sep 17 00:00:00 2001 From: Michael Andres Date: Wed, 10 Jul 2013 18:52:35 +0200 Subject: [PATCH] fix logfile truncation introduced by previous fix for (bnc#825490) --- zypp/base/LogControl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zypp/base/LogControl.cc b/zypp/base/LogControl.cc index a7d3068..03080bb 100644 --- a/zypp/base/LogControl.cc +++ b/zypp/base/LogControl.cc @@ -50,7 +50,7 @@ namespace zypp { // not filesystem::assert_file as filesystem:: functions log, // and this FileWriter is not yet in place. - int fd = ::creat( file_r.c_str(), mode_r ); + int fd = ::open( file_r.c_str(), O_CREAT|O_EXCL, mode_r ); if ( fd != -1 ) ::close( fd ); } -- 2.7.4