diff options
author | Shannon Booth <shannon.ml.booth@gmail.com> | 2020-02-15 11:23:39 +1300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-14 23:30:22 +0100 |
commit | 1f75dfd95d7d321179433be3eb1f512c64d84e54 (patch) | |
tree | f4372cc632f00bb7032f75e77fa0006b0b404a6d /Userland | |
parent | 5884ef8425e21d66acfba2ffb3524d77599a2bc7 (diff) | |
download | serenity-1f75dfd95d7d321179433be3eb1f512c64d84e54.zip |
Userland: Fix error handling in rm program
Fixes: #1218
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/rm.cpp | 2 |
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; } } |