mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
parent
2944039d6b
commit
54cb1e36b6
Notes:
sideshowbarker
2024-07-19 07:56:17 +09:00
Author: https://github.com/awesomekling
Commit: 54cb1e36b6
1 changed files with 4 additions and 0 deletions
|
@ -305,6 +305,10 @@ KResult VFS::mknod(StringView path, mode_t mode, dev_t dev, Custody& base)
|
|||
|
||||
KResultOr<NonnullRefPtr<FileDescription>> VFS::create(StringView path, int options, mode_t mode, Custody& parent_custody, Optional<UidAndGid> owner)
|
||||
{
|
||||
auto result = validate_path_against_process_veil(path, options);
|
||||
if (result.is_error())
|
||||
return result;
|
||||
|
||||
if (!is_socket(mode) && !is_fifo(mode) && !is_block_device(mode) && !is_character_device(mode)) {
|
||||
// Turn it into a regular file. (This feels rather hackish.)
|
||||
mode |= 0100000;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue