summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Hooks/abrt-hook-ccpp.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Hooks/abrt-hook-ccpp.cpp b/src/Hooks/abrt-hook-ccpp.cpp
index 59a75a09..6e59df2a 100644
--- a/src/Hooks/abrt-hook-ccpp.cpp
+++ b/src/Hooks/abrt-hook-ccpp.cpp
@@ -146,6 +146,13 @@ static char* get_executable(pid_t pid, int *fd_p)
*deleted = '\0';
log("file %s seems to be deleted", executable);
}
+ /* find and cut off prelink suffixes from the path */
+ char *prelink = executable + strlen(executable) - strlen(".#prelink#.XXXXXX");
+ if (prelink > executable && strncmp(prelink, ".#prelink#.", strlen(".#prelink#.")) == 0)
+ {
+ log("file %s seems to be a prelink temporary file", executable);
+ *prelink = '\0';
+ }
return executable;
}