diff options
-rw-r--r-- | console-tools/deallocvt.c | 2 | ||||
-rw-r--r-- | deallocvt.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/console-tools/deallocvt.c b/console-tools/deallocvt.c index 9c477d238..a5b5a03f0 100644 --- a/console-tools/deallocvt.c +++ b/console-tools/deallocvt.c | |||
@@ -17,7 +17,7 @@ int deallocvt_main(int argc, char *argv[]) | |||
17 | { | 17 | { |
18 | int fd, num, i; | 18 | int fd, num, i; |
19 | 19 | ||
20 | if ((argc != 2) || (**(argv + 1) == '-')) | 20 | if ((argc > 2) || ((argv == 2) && (**(argv + 1) == '-'))) |
21 | usage(deallocvt_usage); | 21 | usage(deallocvt_usage); |
22 | 22 | ||
23 | fd = get_console_fd("/dev/console"); | 23 | fd = get_console_fd("/dev/console"); |
diff --git a/deallocvt.c b/deallocvt.c index 9c477d238..a5b5a03f0 100644 --- a/deallocvt.c +++ b/deallocvt.c | |||
@@ -17,7 +17,7 @@ int deallocvt_main(int argc, char *argv[]) | |||
17 | { | 17 | { |
18 | int fd, num, i; | 18 | int fd, num, i; |
19 | 19 | ||
20 | if ((argc != 2) || (**(argv + 1) == '-')) | 20 | if ((argc > 2) || ((argv == 2) && (**(argv + 1) == '-'))) |
21 | usage(deallocvt_usage); | 21 | usage(deallocvt_usage); |
22 | 22 | ||
23 | fd = get_console_fd("/dev/console"); | 23 | fd = get_console_fd("/dev/console"); |