Use safe SIGINT handler
[oweals/nmrpflash.git] / main.c
diff --git a/main.c b/main.c
index fa4cdceee05f2b3722514fc0530b1bddc60ae56f..2830cf7f68c4443d2dd1cc5925e9a31c700e6c6e 100644 (file)
--- a/main.c
+++ b/main.c
@@ -68,8 +68,9 @@ void usage(FILE *fp)
                        "C:\\> nmrpflash.exe -i net0 -f firmware.bin\n"
 #endif
                        "\n"
-                       "When using -c, the environment variables IP, NETMASK and MAC are\n"
-                       "set to the device IP address, subnet mask and MAC address.\n"
+                       "When using -c, the environment variables IP, PORT, NETMASK\n"
+                       "and MAC are set to the device IP address, TFTP port, subnet\n"
+                       "mask and MAC address, respectively.\n"
                        "\n"
                        "nmrpflash %s, Copyright (C) 2016 Joseph C. Lehner\n"
                        "nmrpflash is free software, licensed under the GNU GPLv3.\n"
@@ -254,12 +255,14 @@ int main(int argc, char **argv)
                return 1;
        }
 
+#ifndef NMRPFLASH_FUZZ
        if (!list && ((!args.file_local && !args.tftpcmd) || !args.intf /*|| !args.ipaddr*/)) {
                usage(stderr);
                return 1;
        }
 
        require_admin();
+#endif
        val = !list ? nmrp_do(&args) : ethsock_list_all();
 
 out: