mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
Kernel: Create core dumps with S_IFREG set (regular file)
Otherwise, the VFS will refuse to create the file.
This commit is contained in:
parent
cf836e6bff
commit
8a9853d5da
1 changed files with 1 additions and 1 deletions
|
@ -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() });
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue