Oops, errno codes need to be negative in the kernel.

This commit is contained in:
Andreas Kling 2018-12-31 20:38:25 +01:00
parent 9eca2ffd41
commit cc30407b8c

View file

@ -283,7 +283,7 @@ RetainPtr<FileDescriptor> VFS::create(const String& path, InodeIdentifier base,
bool VFS::mkdir(const String& path, mode_t mode, InodeIdentifier base, int& error) 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. // FIXME: This won't work nicely across mount boundaries.
FileSystemPath p(path); FileSystemPath p(path);
if (!p.is_valid()) { if (!p.is_valid()) {