summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/VirtualFileSystem.cpp
diff options
context:
space:
mode:
authorMartin Bříza <m@rtinbriza.cz>2021-12-21 16:11:19 +0100
committerBrian Gianforcaro <b.gianfo@gmail.com>2021-12-21 12:54:11 -0800
commitf75bab2a25a1e8e1b9ea788924601a3b0ecbbc9b (patch)
treeb5e5032c45f80ef42835ee61aa1e18e2ca518427 /Kernel/FileSystem/VirtualFileSystem.cpp
parentccb9cae8e903a8043f813675639831e1890190c7 (diff)
downloadserenity-f75bab2a25a1e8e1b9ea788924601a3b0ecbbc9b.zip
Kernel: Move symlink recursion limit to .h, increase it to 8
As pointed out by BertalanD on Discord, POSIX specifies that _SC_SYMLOOP_MAX (implemented in the following commit) always needs to be equal or more than _POSIX_SYMLOOP_MAX (8, defined in LibC/bits/posix1_lim.h), hence I've increased it to that value to comply with the standard. The move to header is required for the following commit - to make this constant accessible outside of the VFS class, namely in sysconf.
Diffstat (limited to 'Kernel/FileSystem/VirtualFileSystem.cpp')
-rw-r--r--Kernel/FileSystem/VirtualFileSystem.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/Kernel/FileSystem/VirtualFileSystem.cpp b/Kernel/FileSystem/VirtualFileSystem.cpp
index c8c6f19367..ebc94a3ac5 100644
--- a/Kernel/FileSystem/VirtualFileSystem.cpp
+++ b/Kernel/FileSystem/VirtualFileSystem.cpp
@@ -24,7 +24,6 @@
namespace Kernel {
static Singleton<VirtualFileSystem> s_the;
-static constexpr int symlink_recursion_limit { 5 }; // FIXME: increase?
static constexpr int root_mount_flags = MS_NODEV | MS_NOSUID | MS_RDONLY;
UNMAP_AFTER_INIT void VirtualFileSystem::initialize()