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:
Eric Andersen 2000-09-22 00:40:39 +00:00
parent 8c185f9600
commit a1b35c4512
2 changed files with 2 additions and 2 deletions

View File

@ -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");

View File

@ -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");