From eafe336a8e5580bbd76546970351956810f01d8f Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 7 Feb 2010 23:08:53 +0100 Subject: *: remove all usages of C++ streams (-10k in code size) Also add copyright banners to all files which were missing them Signed-off-by: Denys Vlasenko --- lib/Utils/DebugDump.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'lib/Utils/DebugDump.cpp') diff --git a/lib/Utils/DebugDump.cpp b/lib/Utils/DebugDump.cpp index a0a52ab9..b8f8827c 100644 --- a/lib/Utils/DebugDump.cpp +++ b/lib/Utils/DebugDump.cpp @@ -17,11 +17,7 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ - -#include -#include -#include +*/ #include #include "abrtlib.h" #include "DebugDump.h" @@ -251,7 +247,7 @@ void CDebugDump::UnLock() * * Security: we should not allow users to write new files or write * into existing ones, but they should be able to read them. - * + * * @param uid * Crashed application's User Id * @@ -282,7 +278,7 @@ void CDebugDump::Create(const char *pDir, uid_t uid) Lock(); m_bOpened = true; - /* Was creating it with mode 0700 and user as the owner, but this allows + /* Was creating it with mode 0700 and user as the owner, but this allows * the user to replace any file in the directory, changing security-sensitive data * (e.g. "uid", "analyzer", "executable") */ @@ -302,7 +298,7 @@ void CDebugDump::Create(const char *pDir, uid_t uid) } /* Get ABRT's user id */ - m_uid = 0; + m_uid = 0; struct passwd *pw = getpwnam("abrt"); if (pw) m_uid = pw->pw_uid; @@ -319,7 +315,7 @@ void CDebugDump::Create(const char *pDir, uid_t uid) if (chown(m_sDebugDumpDir.c_str(), m_uid, m_gid) == -1) { - perror_msg("can't change '%s' ownership to %lu:%lu", m_sDebugDumpDir.c_str(), + perror_msg("can't change '%s' ownership to %lu:%lu", m_sDebugDumpDir.c_str(), (long)m_uid, (long)m_gid); } -- cgit