macchanger icon indicating copy to clipboard operation
macchanger copied to clipboard

"macchanger -z" exits with 0

Open erjoalgo opened this issue 8 years ago • 2 comments

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.

erjoalgo avatar May 28 '17 19:05 erjoalgo

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!

ghost avatar Jul 24 '17 10:07 ghost

@garilla22 that is exactly what I did 2 months ago as a PR in #44

erjoalgo avatar Jul 25 '17 03:07 erjoalgo