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

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