Summary: | /bin/rmdir should exit with status code 2 for invalid arguments | ||||||
---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | Henrich Hartzer <henrichhartzer> | ||||
Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | ||||||
Priority: | --- | ||||||
Version: | CURRENT | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Opened a pull request for this: https://github.com/freebsd/freebsd-src/pull/1161 A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=9bcc1b18c119148e4455e548c90b2bc9cef16d1b commit 9bcc1b18c119148e4455e548c90b2bc9cef16d1b Author: Henrich Hartzer <henrichhartzer@tuta.io> AuthorDate: 2024-05-10 17:53:49 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2024-05-11 19:13:28 +0000 /bin/rmdir: Exit with status 2 for invalid arguments PR: 277677 Signed-off-by: Henrich Hartzer <henrichhartzer@tuta.io> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1161 bin/rmdir/rmdir.1 | 15 ++++++++------- bin/rmdir/rmdir.c | 2 +- bin/rmdir/tests/rmdir_test.sh | 6 +++--- 3 files changed, 12 insertions(+), 11 deletions(-) |
Created attachment 249139 [details] /bin/rmdir patch /bin/rmdir should exit with status 2 if invalid arguments are passed.