arrfab / rpms / abrt

Forked from rpms/abrt 5 years ago
Clone

Blame SOURCES/0094-ccpp-create-dump-directory-without-parents.patch

8ec399
From 2f948bdc09aa346616852a421ce1af2e03b39997 Mon Sep 17 00:00:00 2001
8ec399
From: Jakub Filak <jfilak@redhat.com>
8ec399
Date: Wed, 15 Apr 2015 17:42:59 +0200
8ec399
Subject: [ABRT PATCH] ccpp: create dump directory without parents
8ec399
8ec399
This patch makes the code more robust.
8ec399
This patch ensures that abrt-hook-ccpp never creates the dump location.
8ec399
8ec399
Related: #1211835
8ec399
8ec399
Signed-off-by: Jakub Filak <jfilak@redhat.com>
8ec399
---
8ec399
 src/hooks/abrt-hook-ccpp.c | 2 +-
8ec399
 1 file changed, 1 insertion(+), 1 deletion(-)
8ec399
8ec399
diff --git a/src/hooks/abrt-hook-ccpp.c b/src/hooks/abrt-hook-ccpp.c
8ec399
index 7e05aa6..85e0d35 100644
8ec399
--- a/src/hooks/abrt-hook-ccpp.c
8ec399
+++ b/src/hooks/abrt-hook-ccpp.c
8ec399
@@ -677,7 +677,7 @@ int main(int argc, char** argv)
8ec399
      * the current user, hence, we have to call dd_reset_ownership() after the
8ec399
      * directory is populated.
8ec399
      */
8ec399
-    dd = dd_create_skeleton(path, fsuid, DEFAULT_DUMP_DIR_MODE);
8ec399
+    dd = dd_create_skeleton(path, fsuid, DEFAULT_DUMP_DIR_MODE, /*no flags*/0);
8ec399
     if (dd)
8ec399
     {
8ec399
         char *rootdir = get_rootdir(pid);
8ec399
-- 
8ec399
1.8.3.1
8ec399