summaryrefslogtreecommitdiff
path: root/Userland/DevTools
diff options
context:
space:
mode:
authorsin-ack <sin-ack@users.noreply.github.com>2022-02-10 11:30:33 +0000
committerBrian Gianforcaro <b.gianfo@gmail.com>2022-04-23 10:43:32 -0700
commitbc7c8879c5d3230c0caf3ea922446e27c6f77cbc (patch)
treeafcd145a2ceb9a105836e3a5facd4e651b612c8d /Userland/DevTools
parenta5514fece9cc15738bf41d579b203630c809fe8e (diff)
downloadserenity-bc7c8879c5d3230c0caf3ea922446e27c6f77cbc.zip
Kernel+LibC+LibCore: Implement the unlinkat(2) syscall
Diffstat (limited to 'Userland/DevTools')
-rw-r--r--Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp b/Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp
index 7f10a25c6b..fe90eff657 100644
--- a/Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp
+++ b/Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp
@@ -362,7 +362,7 @@ int Emulator::virt$rmdir(FlatPtr path, size_t path_length)
int Emulator::virt$unlink(FlatPtr path, size_t path_length)
{
auto buffer = mmu().copy_buffer_from_vm(path, path_length);
- return syscall(SC_unlink, buffer.data(), buffer.size());
+ return syscall(SC_unlink, AT_FDCWD, buffer.data(), buffer.size(), 0);
}
int Emulator::virt$symlink(FlatPtr params_addr)