1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:27:35 +00:00

Userland: Fix error handling in rm program

Fixes: #1218
This commit is contained in:
Shannon Booth 2020-02-15 11:23:39 +13:00 committed by Andreas Kling
parent 5884ef8425
commit 1f75dfd95d

View file

@ -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;
}
}