rpms/scsi-target-utils/devel tgt-0.9.2-restore-tgtadm-bind-option.patch, NONE, 1.1
Jarod Wilson
jwilson at fedoraproject.org
Tue Dec 16 21:30:07 UTC 2008
- Previous message (by thread): rpms/cherokee/F-9 .cvsignore, 1.3, 1.4 cherokee.spec, 1.3, 1.4 import.log, 1.3, 1.4 sources, 1.3, 1.4
- Next message (by thread): rpms/cherokee/EL-4 .cvsignore, 1.3, 1.4 cherokee.spec, 1.3, 1.4 import.log, 1.3, 1.4 sources, 1.3, 1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: jwilson
Update of /cvs/pkgs/rpms/scsi-target-utils/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv11785
Added Files:
tgt-0.9.2-restore-tgtadm-bind-option.patch
Log Message:
forgot the patch...
tgt-0.9.2-restore-tgtadm-bind-option.patch:
--- NEW FILE tgt-0.9.2-restore-tgtadm-bind-option.patch ---
From: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>
Date: Thu, 4 Dec 2008 10:13:26 +0000 (+0900)
Subject: tgtadm: restore tgtadm bind option with bus
X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftomo%2Ftgt.git;a=commitdiff_plain;h=5a21a4472817b5e70fad3ca9736e7415471ff741
tgtadm: restore tgtadm bind option with bus
fixes a regression caused by 467c94f2ac99843e0cc8d75c1ab9e71dde68a6d1
"check for valid parameters when passing tgtadm commands".
Signed-off-by: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>
---
diff --git a/usr/tgtadm.c b/usr/tgtadm.c
index 51d470c..de7aed1 100644
--- a/usr/tgtadm.c
+++ b/usr/tgtadm.c
@@ -555,15 +555,16 @@ int main(int argc, char **argv)
break;
case OP_BIND:
case OP_UNBIND:
- rc = verify_mode_params(argc, argv, "LmotI");
+ rc = verify_mode_params(argc, argv, "LmotIB");
if (rc) {
eprintf("target mode: option '-%c' is not "
"allowed/supported\n", rc);
exit(EINVAL);
}
- if (!address) {
- eprintf("%s operation requires initiator-address\n"
- , op == OP_BIND ? "bind" : "unbind");
+ if (!address && !hostno) {
+ eprintf("%s operation requires"
+ " initiator-address or bus\n",
+ op == OP_BIND ? "bind" : "unbind");
exit(EINVAL);
}
break;
- Previous message (by thread): rpms/cherokee/F-9 .cvsignore, 1.3, 1.4 cherokee.spec, 1.3, 1.4 import.log, 1.3, 1.4 sources, 1.3, 1.4
- Next message (by thread): rpms/cherokee/EL-4 .cvsignore, 1.3, 1.4 cherokee.spec, 1.3, 1.4 import.log, 1.3, 1.4 sources, 1.3, 1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list