mirror of
https://github.com/sheumann/hush.git
synced 2024-08-20 19:29:02 +00:00
Apply a bandaid suggested by Jon McClintock <jonm@bluemug.com>, since deallocvt
has code for handling no arguments, but the usage checking code aborted if there are any other than two arguments. -Erik
This commit is contained in:
parent
8c185f9600
commit
a1b35c4512
@ -17,7 +17,7 @@ int deallocvt_main(int argc, char *argv[])
|
||||
{
|
||||
int fd, num, i;
|
||||
|
||||
if ((argc != 2) || (**(argv + 1) == '-'))
|
||||
if ((argc > 2) || ((argv == 2) && (**(argv + 1) == '-')))
|
||||
usage(deallocvt_usage);
|
||||
|
||||
fd = get_console_fd("/dev/console");
|
||||
|
@ -17,7 +17,7 @@ int deallocvt_main(int argc, char *argv[])
|
||||
{
|
||||
int fd, num, i;
|
||||
|
||||
if ((argc != 2) || (**(argv + 1) == '-'))
|
||||
if ((argc > 2) || ((argv == 2) && (**(argv + 1) == '-')))
|
||||
usage(deallocvt_usage);
|
||||
|
||||
fd = get_console_fd("/dev/console");
|
||||
|
Loading…
Reference in New Issue
Block a user