diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2011-03-15 17:02:18 +0100 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2011-03-15 17:02:18 +0100 |
commit | eb936eda33ad2b3c0b192215120498feaeb10483 (patch) | |
tree | 07743d7cec99c75590fc11e58989e28b9987139b | |
parent | c019a8999323b859e4c647d3878e1f2013f67efe (diff) | |
download | abrt-eb936eda33ad2b3c0b192215120498feaeb10483.tar.gz abrt-eb936eda33ad2b3c0b192215120498feaeb10483.tar.xz abrt-eb936eda33ad2b3c0b192215120498feaeb10483.zip |
daemon: run dd_sanitize_mode_and_owner after post-create too
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
-rw-r--r-- | src/daemon/MiddleWare.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/daemon/MiddleWare.cpp b/src/daemon/MiddleWare.cpp index 84400361..6ee0d0c0 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++; |