diff --git a/userspace/rm/main.cpp b/userspace/rm/main.cpp index d42e8bcc..359967db 100644 --- a/userspace/rm/main.cpp +++ b/userspace/rm/main.cpp @@ -48,7 +48,7 @@ bool delete_recursive(const char* path) closedir(dir); } - if (unlink(path) == -1) + if (remove(path) == -1) { perror(path); return false;