From cc30407b8cb2d2b4b3c49537c0b8dd8b12bc8225 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 31 Dec 2018 20:38:25 +0100 Subject: [PATCH] Oops, errno codes need to be negative in the kernel. --- VirtualFileSystem/VirtualFileSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VirtualFileSystem/VirtualFileSystem.cpp b/VirtualFileSystem/VirtualFileSystem.cpp index b14eb34ca1..a96ac920dc 100644 --- a/VirtualFileSystem/VirtualFileSystem.cpp +++ b/VirtualFileSystem/VirtualFileSystem.cpp @@ -283,7 +283,7 @@ RetainPtr VFS::create(const String& path, InodeIdentifier base, bool VFS::mkdir(const String& path, mode_t mode, InodeIdentifier base, int& error) { - error = EWHYTHO; + error = -EWHYTHO; // FIXME: This won't work nicely across mount boundaries. FileSystemPath p(path); if (!p.is_valid()) {