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
This commit is contained in:
Edward Tomasz Napierala 2014-11-15 06:14:38 +00:00
parent e7a8895c57
commit c7ee47a779
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=274549

View File

@ -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");