diff options
author | sin-ack <sin-ack@users.noreply.github.com> | 2022-10-01 11:15:02 +0000 |
---|---|---|
committer | Andrew Kaster <andrewdkaster@gmail.com> | 2022-12-11 19:55:37 -0700 |
commit | 9850a69cd199d48bc30a34e2fe38d5590b536aac (patch) | |
tree | 506a12437ac1651c9e25b2e08cdbc63ac80bf119 /Userland/Libraries/LibCore | |
parent | 5c1d5ed51da2cf3b9463413f704ea0e740950736 (diff) | |
download | serenity-9850a69cd199d48bc30a34e2fe38d5590b536aac.zip |
Kernel+LibC+LibCore: Implement `symlinkat(2)`
Co-Authored-By: Daniel Bertalan <dani@danielbertalan.dev>
Diffstat (limited to 'Userland/Libraries/LibCore')
-rw-r--r-- | Userland/Libraries/LibCore/System.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibCore/System.cpp b/Userland/Libraries/LibCore/System.cpp index 2970c23dfe..f58b4952b7 100644 --- a/Userland/Libraries/LibCore/System.cpp +++ b/Userland/Libraries/LibCore/System.cpp @@ -839,6 +839,7 @@ ErrorOr<void> symlink(StringView target, StringView link_path) Syscall::SC_symlink_params params { .target = { target.characters_without_null_termination(), target.length() }, .linkpath = { link_path.characters_without_null_termination(), link_path.length() }, + .dirfd = AT_FDCWD, }; int rc = syscall(SC_symlink, ¶ms); HANDLE_SYSCALL_RETURN_VALUE("symlink", rc, {}); |