[stgt] tgt-admin utility not working anymore
FUJITA Tomonori
fujita.tomonori at lab.ntt.co.jp
Sat Jan 11 22:32:19 CET 2014
On Sat, 11 Jan 2014 16:16:49 -0500
nia dev <niadev67 at gmail.com> wrote:
> This used to work ... Any idea ?
>
> # tgt-admin --dump
> -C argument value '0' out of range
> Try `tgtadm --help' for more information.
>
> All other options produce an error also.
How about the following?
diff --git a/usr/tgtadm.c b/usr/tgtadm.c
index a46f1a4..7771119 100644
--- a/usr/tgtadm.c
+++ b/usr/tgtadm.c
@@ -600,7 +600,7 @@ int main(int argc, char **argv)
ac_dir = ACCOUNT_TYPE_OUTGOING;
break;
case 'C':
- rc = str_to_int_gt(optarg, control_port, 0);
+ rc = str_to_int_ge(optarg, control_port, 0);
if (rc)
bad_optarg(rc, ch, optarg);
break;
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the stgt
mailing list