mirror / busybox

BusyBox mirror
https://www.busybox.net/
Other
1.64k stars 617 forks source link

diff: fix return code of opt errors #51

Open KazKobara opened 2 years ago

KazKobara commented 2 years ago

BusyBox's diff (confirmed at v1.36.0 (987be932e)) returns '1' for its option errors instead of '2'.

This is because the location of 'xfunc_error_retval = 2;' is not correct and has been fixed by moving it.