-
-
Notifications
You must be signed in to change notification settings - Fork 567
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
--json-pp allows writing to non-regular files #3590
Labels
Comments
This was referenced Nov 17, 2023
Closed in favor of #3596 |
pombredanne
added a commit
that referenced
this issue
Nov 24, 2023
This is to ensure that the input are regular files or directories and that the output are writable files if they pre-exist. This is a fix for closely related issues: Referenced-by: #3588 Referenced-by: #3589 Referenced-by: #3590 Referenced-by: #3591 Referenced-by: #3592 Referenced-by: #3593 Referenced-by: #3594 Referenced-by: #3595 Referenced-by: #3596 Reported-by: Armijn Hemel @armijnhemel Reported-by: Till Jaeger @LeChasseur Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
6 tasks
This seems to have been fixed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Related to #3588 and #3589
scancode allows writing to device files such as
/dev/null
without an error. While it is possible to write to device files (as it is basically a black hole) it is possibly not something that was intended. I would have at least expected a warning (I could imagine that sending output to/dev/null
could be useful in some test circumstances but it is not normal use of scancode).How To Reproduce
Write to
/dev/null
:and to
/dev/zero
:System configuration
The text was updated successfully, but these errors were encountered: