1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:37:35 +00:00

Kernel: Take path+length in the unlink() and umount() syscalls

This commit is contained in:
Andreas Kling 2020-01-09 12:41:15 +01:00
parent 76c20642f0
commit 4b4d369c5d
3 changed files with 18 additions and 16 deletions

View file

@ -319,7 +319,7 @@ int link(const char* old_path, const char* new_path)
int unlink(const char* pathname)
{
int rc = syscall(SC_unlink, pathname);
int rc = syscall(SC_unlink, pathname, strlen(pathname));
__RETURN_WITH_ERRNO(rc, rc, -1);
}
@ -572,7 +572,7 @@ int mount(const char* device, const char* mountpoint, const char* fstype)
int umount(const char* mountpoint)
{
int rc = syscall(SC_umount, mountpoint);
int rc = syscall(SC_umount, mountpoint, strlen(mountpoint));
__RETURN_WITH_ERRNO(rc, rc, -1);
}