summaryrefslogtreecommitdiff
path: root/Userland/rm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/rm.cpp')
-rw-r--r--Userland/rm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/rm.cpp b/Userland/rm.cpp
index ed0a82c52c..2b33d3d7d9 100644
--- a/Userland/rm.cpp
+++ b/Userland/rm.cpp
@@ -55,7 +55,7 @@ int remove(bool recursive, String path)
builder.append('/');
builder.append(de->d_name);
int s = remove(true, builder.to_string());
- if (s < 0)
+ if (s != 0)
return s;
}
}