aboutsummaryrefslogtreecommitdiff
path: root/console-tools/deallocvt.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-09-22 00:40:39 +0000
committerEric Andersen <andersen@codepoet.org>2000-09-22 00:40:39 +0000
commita1b35c4512dfb37227bfcb244d717119d39899ae (patch)
treea8410133d2507b6d7b6912aac6482d1da8d00739 /console-tools/deallocvt.c
parent8c185f9600dce42234a407992323af3cc4c8f989 (diff)
downloadbusybox-a1b35c4512dfb37227bfcb244d717119d39899ae.tar.gz
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
Diffstat (limited to 'console-tools/deallocvt.c')
-rw-r--r--console-tools/deallocvt.c2
1 files changed, 1 insertions, 1 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[])
{
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");