summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/hooks/abrt-hook-ccpp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hooks/abrt-hook-ccpp.c b/src/hooks/abrt-hook-ccpp.c
index 5beabbac..e4d1fc5a 100644
--- a/src/hooks/abrt-hook-ccpp.c
+++ b/src/hooks/abrt-hook-ccpp.c
@@ -175,7 +175,7 @@ static int open_user_core(const char *user_pwd, uid_t uid, pid_t pid)
|| chdir(user_pwd) != 0
) {
perror_msg("can't cd to %s", user_pwd);
- return 0;
+ return -1;
}
/* Mimic "core.PID" if requested */