From 0d9f9bba421c8271e52b67320b161c60bcf0151d Mon Sep 17 00:00:00 2001
From: Jakub Filak <jfilak@redhat.com>
Date: Wed, 21 Jan 2015 10:41:05 +0100
Subject: [PATCH] core: use updated dump_fd_info()

Related to abrt/libreport#320

Signed-off-by: Jakub Filak <jfilak@redhat.com>
---
 src/hooks/abrt-hook-ccpp.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/hooks/abrt-hook-ccpp.c b/src/hooks/abrt-hook-ccpp.c
index 37a9a74..e1d81b6 100644
--- a/src/hooks/abrt-hook-ccpp.c
+++ b/src/hooks/abrt-hook-ccpp.c
@@ -630,7 +630,8 @@ int main(int argc, char** argv)
         IGNORE_RESULT(chown(dest_filename, dd->dd_uid, dd->dd_gid));
 
         strcpy(dest_base, FILENAME_OPEN_FDS);
-        if (dump_fd_info(dest_filename, source_filename, source_base_ofs))
+        strcpy(source_filename + source_base_ofs, "fd");
+        if (dump_fd_info(dest_filename, source_filename) == 0)
             IGNORE_RESULT(chown(dest_filename, dd->dd_uid, dd->dd_gid));
 
         free(dest_filename);
-- 
2.1.0

