diff options
author | Phil Shafer <phil@FreeBSD.org> | 2023-01-30 20:43:01 +0000 |
---|---|---|
committer | Phil Shafer <phil@FreeBSD.org> | 2023-01-30 20:43:01 +0000 |
commit | ef7d10fde4f650c7e9ef207af53d5f116b689826 (patch) | |
tree | 65b6d5073bf52b4a8aceecdee3b3287f25ae8683 /usr.bin/iscsictl | |
parent | e1e2080fc1ce59cc2ef3ba4ae6031cd550d75bed (diff) | |
download | src-ef7d10fde4f650c7e9ef207af53d5f116b689826.tar.gz src-ef7d10fde4f650c7e9ef207af53d5f116b689826.zip |
Diffstat (limited to 'usr.bin/iscsictl')
-rw-r--r-- | usr.bin/iscsictl/iscsictl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/iscsictl/iscsictl.c b/usr.bin/iscsictl/iscsictl.c index 258b4f7c28ac..5b2a62874163 100644 --- a/usr.bin/iscsictl/iscsictl.c +++ b/usr.bin/iscsictl/iscsictl.c @@ -745,6 +745,9 @@ main(int argc, char **argv) struct target *targ; argc = xo_parse_args(argc, argv); + if (argc < 0) + exit(1); + xo_open_container("iscsictl"); while ((ch = getopt(argc, argv, "AMRLac:d:e:i:n:p:rt:u:s:vw:")) != -1) { |