Skip to content

Commit

Permalink
ccpp: create dump directory without parents
Browse files Browse the repository at this point in the history
This patch makes the code more robust.

Related: #1211835

Signed-off-by: Jakub Filak <jfilak@redhat.com>
  • Loading branch information
Jakub Filak committed Apr 16, 2015
1 parent 4cba417 commit 217e822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/abrt-hook-ccpp.c
Expand Up @@ -613,7 +613,7 @@ int main(int argc, char** argv)
* the current user, hence, we have to call dd_reset_ownership() after the
* directory is populated.
*/
dd = dd_create_skeleton(path, fsuid, DEFAULT_DUMP_DIR_MODE);
dd = dd_create_skeleton(path, fsuid, DEFAULT_DUMP_DIR_MODE, /*no flags*/0);
if (dd)
{
char source_filename[sizeof("/proc/%lu/somewhat_long_name") + sizeof(long)*3];
Expand Down

0 comments on commit 217e822

Please sign in to comment.