Closed gregprosser closed 7 years ago
I just downloaded the OS X build of ykpers from yubico.com, and I can't use "-S" without an option to set the scanmap back to the default.
Looking at man getopt, it looks like the :: syntax works differently on OS X than it does on GNU libc
It looks like the way around this is starting the optstring with ':' and then looking at optopt if the return from getopt is ':'. I don't know how portable this change would be.
Thank you for this report, it should be fixed by 1a22604d3321bd34ebbc654d1615d1c5d09fc43a
I just downloaded the OS X build of ykpers from yubico.com, and I can't use "-S" without an option to set the scanmap back to the default.
Looking at man getopt, it looks like the :: syntax works differently on OS X than it does on GNU libc
It looks like the way around this is starting the optstring with ':' and then looking at optopt if the return from getopt is ':'. I don't know how portable this change would be.