diff options
Diffstat (limited to 'main/open-iscsi/musl-fixes.patch')
-rw-r--r-- | main/open-iscsi/musl-fixes.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/main/open-iscsi/musl-fixes.patch b/main/open-iscsi/musl-fixes.patch index 35f11e1a59..910b485878 100644 --- a/main/open-iscsi/musl-fixes.patch +++ b/main/open-iscsi/musl-fixes.patch @@ -29,3 +29,27 @@ #include <dirent.h> #include <limits.h> #include <sys/stat.h> +--- ./usr/iscsiadm.c.orig ++++ ./usr/iscsiadm.c +@@ -2553,7 +2553,10 @@ main(int argc, char **argv) + return 0; + case 'h': + usage(0); +- } ++ ++ case '?': ++ log_error("unrecognized character '%c'", optopt); ++ } + + if (name && value) { + param = idbm_alloc_user_param(name, value); +@@ -2568,8 +2571,7 @@ main(int argc, char **argv) + } + } + +- if (optopt) { +- log_error("unrecognized character '%c'", optopt); ++ if (opterr) { + rc = ISCSI_ERR_INVAL; + goto free_ifaces; + } |