diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-08-05 17:51:30 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-08-05 17:51:30 +0200 |
commit | 35d4ceb1fa329e2adba6af29cde8cb1a805522c1 (patch) | |
tree | 91e50089aa26e79c839bc628858f4852fcfd3ff7 /src/Hooks | |
parent | fd398978422b244989a8d32dc0d74d0c4cd04fbd (diff) | |
download | abrt-35d4ceb1fa329e2adba6af29cde8cb1a805522c1.tar.gz abrt-35d4ceb1fa329e2adba6af29cde8cb1a805522c1.tar.xz abrt-35d4ceb1fa329e2adba6af29cde8cb1a805522c1.zip |
open with O_CREAT must have 3 args, fixing that
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src/Hooks')
-rw-r--r-- | src/Hooks/CCpp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Hooks/CCpp.cpp b/src/Hooks/CCpp.cpp index e8c35edd..ddbebf6f 100644 --- a/src/Hooks/CCpp.cpp +++ b/src/Hooks/CCpp.cpp @@ -165,7 +165,7 @@ int main(int argc, char** argv) snprintf(path + strlen(path), sizeof(path), "/%s", FILENAME_COREDUMP); - fd = open(path, O_WRONLY | O_CREAT | O_TRUNC); + fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0600); if (fd < 0) { dd.Delete(); |