diff options
author | trasz <trasz@FreeBSD.org> | 2014-11-15 06:14:38 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2014-11-15 06:14:38 +0000 |
commit | 316ed4f86183c89d32c00f94a83fcb6c89cb4fa9 (patch) | |
tree | 9cbe3e003472658c08c108d57b16a69086c7cc67 /usr.bin/iscsictl | |
parent | f8016fba1e6b73f6eb62606a2c85884fbf6bbfbb (diff) | |
download | FreeBSD-src-316ed4f86183c89d32c00f94a83fcb6c89cb4fa9.zip FreeBSD-src-316ed4f86183c89d32c00f94a83fcb6c89cb4fa9.tar.gz |
Make it possible to do "iscsictl -Rt xxx -p yyy", to remove a session
that matches both -t and -p.
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.bin/iscsictl')
-rw-r--r-- | usr.bin/iscsictl/iscsictl.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/usr.bin/iscsictl/iscsictl.c b/usr.bin/iscsictl/iscsictl.c index 27467bb..a27e32b 100644 --- a/usr.bin/iscsictl/iscsictl.c +++ b/usr.bin/iscsictl/iscsictl.c @@ -758,14 +758,9 @@ main(int argc, char **argv) errx(1, "-n and -p and mutually exclusive"); if (target != NULL) errx(1, "-n and -t and mutually exclusive"); - } else if (portal != NULL) { - if (target != NULL) - errx(1, "-p and -t and mutually exclusive"); - } else if (target != NULL) { - if (portal != NULL) - errx(1, "-t and -p and mutually exclusive"); - } else + } else if (target == NULL && portal == NULL) { errx(1, "must specify either -a, -n, -t, or -p"); + } if (session_id != -1) errx(1, "-i cannot be used with -R"); |