diff --git a/ocat.c b/ocat.c index 999c10c..2840b17 100644 --- a/ocat.c +++ b/ocat.c @@ -105,7 +105,11 @@ int main(int argc, char **argv) } else if (username && device && (argc > 0)) { fprintf(stderr, "%s: filename with --user and --device is not supported\n", progname); return (-1); + } else if (!username || !device) { + usage(progname); } + + /*