diff options
author | Andreas Kling <kling@serenityos.org> | 2021-01-23 17:57:21 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-23 17:59:42 +0100 |
commit | 8a9853d5da396b6ef2dbcf92c73cd21582863afc (patch) | |
tree | bed11a2cfa5d580dddc94774dfc2057f547f8d3b /Kernel/CoreDump.cpp | |
parent | cf836e6bff3400d8865f6fd7985ecb6f3fe71e05 (diff) | |
download | serenity-8a9853d5da396b6ef2dbcf92c73cd21582863afc.zip |
Kernel: Create core dumps with S_IFREG set (regular file)
Otherwise, the VFS will refuse to create the file.
Diffstat (limited to 'Kernel/CoreDump.cpp')
-rw-r--r-- | Kernel/CoreDump.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/CoreDump.cpp b/Kernel/CoreDump.cpp index 7b81f61793..b03f27da82 100644 --- a/Kernel/CoreDump.cpp +++ b/Kernel/CoreDump.cpp @@ -84,7 +84,7 @@ RefPtr<FileDescription> CoreDump::create_target_file(const Process& process, con auto fd_or_error = VFS::the().open( lexical_path.basename(), O_CREAT | O_WRONLY | O_EXCL, - 0, // We will enable reading from userspace when we finish generating the coredump file + S_IFREG, // We will enable reading from userspace when we finish generating the coredump file *dump_directory.value(), UidAndGid { process.uid(), process.gid() }); |