Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

date --rfc-3339 foo error should be managed properly #4530

Closed
sylvestre opened this issue Mar 18, 2023 · 3 comments · Fixed by #4535
Closed

date --rfc-3339 foo error should be managed properly #4530

sylvestre opened this issue Mar 18, 2023 · 3 comments · Fixed by #4535
Labels

Comments

@sylvestre
Copy link
Contributor

sylvestre commented Mar 18, 2023

Found with the fuzzer introduced in #4389

$ ./target/debug/coreutils date --rfc-3339 foo      
thread 'main' panicked at 'Invalid format: foo', src/uu/date/src/date.rs:136:18
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

with GNU:

date --rfc-3339 foo
date: invalid argument 'foo' for '--rfc-3339'
Valid arguments are:
  - 'date'
  - 'seconds'
  - 'ns'
Try 'date --help' for more information.

Similar too #4499 . cc @shanmukhateja if you want to do it here too

@tertsdiepraam
Copy link
Member

I think you meant: cc @shanmukhateja :)

@sylvestre
Copy link
Contributor Author

ah ah, oups :)
I will fix it

@shanmukhateja
Copy link
Contributor

Yup I'm up for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants