Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82075a40 authored by Benoit Goby's avatar Benoit Goby Committed by Android (Google) Code Review
Browse files

Merge "toolbox: Fix rm -f with multiple files"

parents df115f33 391f365c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -103,8 +103,8 @@ int rm_main(int argc, char *argv[])
            ret = unlink_recursive(argv[i], flags);
        } else {
            ret = unlink(argv[i]);
            if (errno == ENOENT && (flags & OPT_FORCE)) {
                return 0;
            if (ret < 0 && errno == ENOENT && (flags & OPT_FORCE)) {
                continue;
            }
        }