mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 10:01:13 +09: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
Notes:
sideshowbarker
2024-07-18 22:54:59 +09:00
Author: https://github.com/awesomekling
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
Add a link
Reference in a new issue