FreeBSD Bugzilla – Attachment 249139 Details for
Bug 277677
/bin/rmdir should exit with status code 2 for invalid arguments
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
/bin/rmdir patch
rmdir-exit-codes.patch (text/plain), 984 bytes, created by
Henrich Hartzer
on 2024-03-13 22:41:27 UTC
(
hide
)
Description:
/bin/rmdir patch
Filename:
MIME Type:
Creator:
Henrich Hartzer
Created:
2024-03-13 22:41:27 UTC
Size:
984 bytes
patch
obsolete
>diff --git a/bin/rmdir/rmdir.c b/bin/rmdir/rmdir.c >index 776b2297a8c0..55be9c4cca0f 100644 >--- a/bin/rmdir/rmdir.c >+++ b/bin/rmdir/rmdir.c >@@ -124,5 +124,5 @@ usage(void) > { > > (void)fprintf(stderr, "usage: rmdir [-pv] directory ...\n"); >- exit(1); >+ exit(2); > } >diff --git a/bin/rmdir/tests/rmdir_test.sh b/bin/rmdir/tests/rmdir_test.sh >index d443849258b6..ba80ac6204be 100644 >--- a/bin/rmdir/tests/rmdir_test.sh >+++ b/bin/rmdir/tests/rmdir_test.sh >@@ -35,8 +35,8 @@ invalid_usage_head() > > invalid_usage_body() > { >- atf_check -s not-exit:0 -e match:"$usage_output" rmdir -p >- atf_check -s not-exit:0 -e match:"$usage_output" rmdir -v >+ atf_check -s exit:2 -e match:"$usage_output" rmdir -p >+ atf_check -s exit:2 -e match:"$usage_output" rmdir -v > } > > atf_test_case no_arguments >@@ -47,7 +47,7 @@ no_arguments_head() > > no_arguments_body() > { >- atf_check -s not-exit:0 -e match:"$usage_output" rmdir >+ atf_check -s exit:2 -e match:"$usage_output" rmdir > } > > atf_init_test_cases()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 277677
: 249139