From d273c5e77c19841dd7245e0d15b41cea3a9168d8 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Thu, 14 Dec 2023 11:03:58 +0200 Subject: [PATCH] rm: Use remove instead of unlink for removing files --- userspace/rm/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/rm/main.cpp b/userspace/rm/main.cpp index d42e8bcc82..359967dbe5 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;