mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:27:45 +00:00
Kernel: Take path+length in the unlink() and umount() syscalls
This commit is contained in:
parent
76c20642f0
commit
4b4d369c5d
3 changed files with 18 additions and 16 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue