diff options
author | Andreas Kling <awesomekling@gmail.com> | 2020-01-09 12:41:15 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2020-01-09 16:23:41 +0100 |
commit | 4b4d369c5daa9cdcc36a89fa0155248f4b8f8228 (patch) | |
tree | 360a6d5264d53ec2e8f98fac6214ff4b8b7e843b /Libraries | |
parent | 76c20642f00c943d649b78777d4c133bf80673f4 (diff) | |
download | serenity-4b4d369c5daa9cdcc36a89fa0155248f4b8f8228.zip |
Kernel: Take path+length in the unlink() and umount() syscalls
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibC/unistd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibC/unistd.cpp b/Libraries/LibC/unistd.cpp index a4c6c6234a..13252e7166 100644 --- a/Libraries/LibC/unistd.cpp +++ b/Libraries/LibC/unistd.cpp @@ -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); } |