summaryrefslogtreecommitdiffstats
path: root/src/daemon
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2011-03-15 17:02:18 +0100
committerDenys Vlasenko <dvlasenk@redhat.com>2011-03-15 17:02:18 +0100
commiteb936eda33ad2b3c0b192215120498feaeb10483 (patch)
tree07743d7cec99c75590fc11e58989e28b9987139b /src/daemon
parentc019a8999323b859e4c647d3878e1f2013f67efe (diff)
downloadabrt-eb936eda33ad2b3c0b192215120498feaeb10483.zip
abrt-eb936eda33ad2b3c0b192215120498feaeb10483.tar.gz
abrt-eb936eda33ad2b3c0b192215120498feaeb10483.tar.xz
daemon: run dd_sanitize_mode_and_owner after post-create too
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src/daemon')
-rw-r--r--src/daemon/MiddleWare.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/daemon/MiddleWare.cpp b/src/daemon/MiddleWare.cpp
index 8440036..6ee0d0c 100644
--- a/src/daemon/MiddleWare.cpp
+++ b/src/daemon/MiddleWare.cpp
@@ -532,6 +532,11 @@ mw_result_t LoadDebugDump(const char *dump_dir_name, crash_data_t **crash_data)
res = MW_ERROR;
goto ret;
}
+
+ /* Reset mode/uig/gid to correct values for all files created by event run */
+ dd_sanitize_mode_and_owner(dd);
+
+ /* Update count */
char *count_str = dd_load_text_ext(dd, FILENAME_COUNT, DD_FAIL_QUIETLY_ENOENT);
unsigned long count = strtoul(count_str, NULL, 10);
count++;