diff options
author | Nathan Straz <nstraz@redhat.com> | 2008-12-01 17:29:06 -0500 |
---|---|---|
committer | Nathan Straz <nstraz@redhat.com> | 2008-12-01 17:29:06 -0500 |
commit | f2419cc098d9f802765eb3cf71be698d411e086e (patch) | |
tree | 3a3983989938974fd75876f4d78dc3865da4c685 | |
parent | 954eb9f33f69dd9089133c8bc2df2b5695d185a1 (diff) | |
download | qarsh-f2419cc098d9f802765eb3cf71be698d411e086e.tar.gz qarsh-f2419cc098d9f802765eb3cf71be698d411e086e.tar.xz qarsh-f2419cc098d9f802765eb3cf71be698d411e086e.zip |
[qacp] Check that we have two or more paths
-rw-r--r-- | qacp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -641,7 +641,7 @@ main(int argc, char *argv[]) } } - if (argv[optind] == NULL) { + if (argv[optind] == NULL || (argc - optind < 2)) { usage(); exit(2); } |