macchanger
macchanger copied to clipboard
"macchanger -z" exits with 0
Passing an invalid option prints usage but exits with EXIT_OK instead of EXIT_ERROR. Caller scripts interpreting the exit status might think intended macchange operation was successful.
Download the sources and find all the files that contain the line _exit(0) or exit(0), find the right one and change it to _exit(1) or exit(1). PROFIT!
@garilla22 that is exactly what I did 2 months ago as a PR in #44