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

mcookie: generate cookie even if specified file doesn't exist #262

Open
cakebaker opened this issue Mar 21, 2025 · 0 comments
Open

mcookie: generate cookie even if specified file doesn't exist #262

cakebaker opened this issue Mar 21, 2025 · 0 comments
Labels
bug Something isn't working mcookie

Comments

@cakebaker
Copy link
Contributor

The original mcookie shows an error message if the specified file doesn't exist, but still generates a cookie and returns an exit code of 0:

$ mcookie -f non-existing
mcookie: cannot open non-existing: No such file or directory
2a40970ac734f28034a8bcabf00b7026
$ echo $?
0

Our implementation, on the other hand, shows an error message, but doesn't generate a cookie and returns an exit code of 1:

$ cargo run -q mcookie -f non-existing
mcookie: No such file or directory
$ echo $?
1
@cakebaker cakebaker added bug Something isn't working mcookie labels Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mcookie
Projects
None yet
Development

No branches or pull requests

1 participant