From 4136f61dbd4325a636b513513ee7c8f2cbbd3cef Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 21 May 2010 15:42:18 +0200 Subject: remove "rename(DEBUG_DUMPS_DIR_OLD, DEBUG_DUMPS_DIR)" compat kludge It causes selinux problems by itself. Even though we ovn both dirs, attempting to move them is not allowed... Signed-off-by: Denys Vlasenko --- src/Daemon/Daemon.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/Daemon/Daemon.cpp') diff --git a/src/Daemon/Daemon.cpp b/src/Daemon/Daemon.cpp index 55bbcea8..f3ecb5f4 100644 --- a/src/Daemon/Daemon.cpp +++ b/src/Daemon/Daemon.cpp @@ -678,12 +678,6 @@ static void ensure_writable_dir(const char *dir, mode_t mode, const char *user) static void sanitize_dump_dir_rights() { - /* Compat kludge, remove after 1.3.0 - * (and remove DEBUG_DUMPS_DIR_OLD define everywhere) - */ - if (rename(DEBUG_DUMPS_DIR_OLD, DEBUG_DUMPS_DIR) == 0) - symlink(DEBUG_DUMPS_DIR, DEBUG_DUMPS_DIR_OLD); - /* We can't allow everyone to create dumps: otherwise users can flood * us with thousands of bogus or malicious dumps */ /* 07000 bits are setuid, setgit, and sticky, and they must be unset */ -- cgit