Add '?' to the short option string.  Fixes runtime errors like
these:

  kexec: invalid option -- '?'

Signed-off-by: Geoff Levand <[email protected]> for Huawei, Linaro
---
 kexec/kexec.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kexec/kexec.h b/kexec/kexec.h
index 715b568..2904e03 100644
--- a/kexec/kexec.h
+++ b/kexec/kexec.h
@@ -230,7 +230,7 @@ extern int file_types;
        { "reuseinitrd",        0, 0, OPT_REUSE_INITRD }, \
        { "debug",              0, 0, OPT_DEBUG }, \
 
-#define KEXEC_OPT_STR "hvdfxluet:p"
+#define KEXEC_OPT_STR "h?vdfxluet:p"
 
 extern void die(const char *fmt, ...)
        __attribute__ ((format (printf, 1, 2)));
-- 
1.8.1.2



_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

Reply via email to