staging: usbip: properly handle "-l" / "--log" option
authorAnthony Foiani <anthony.foiani@gmail.com>
Fri, 23 Aug 2013 04:06:41 +0000 (22:06 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Aug 2013 16:54:27 +0000 (09:54 -0700)
This option is in the long options list, and it's handled in the
option processing loop, but the optstring didn't include it.

Signed-off-by: Anthony Foiani <anthony.foiani@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/usbip/userspace/src/usbip.c

index 69ac4b569c3600c35812bfeccb059811c5dfbb64..b4f299ee5dd4bbaef9264704343cff9619b1a2e8 100644 (file)
@@ -152,7 +152,7 @@ int main(int argc, char *argv[])
        usbip_use_stderr = 1;
        opterr = 0;
        for (;;) {
-               opt = getopt_long(argc, argv, "+dt:", opts, NULL);
+               opt = getopt_long(argc, argv, "+dlt:", opts, NULL);
 
                if (opt == -1)
                        break;