SUS says that getopt() should return -1 immediately if the argument is "-".
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Mon, 14 Mar 2005 11:55:33 +0000 (11:55 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Mon, 14 Mar 2005 11:55:33 +0000 (11:55 +0000)
commitf5d088c10d6c23518fe6b40c0410e7dda3a18494
tree5b89becd0bc2f5e4fb20ed7400130bcde05334e3
parent6bea6a9b045c688edbf8e188d9583263973cdf7c
SUS says that getopt() should return -1 immediately if the argument is "-".
Correctly handle this case. We formerly depended on the (undocumented)
behaviour of getopt to return this as '-' option.
usr.bin/su/su.c