unbreak -4/-6 flags in netbsd-iscsi-target, problem reported by solene@
This commit is contained in:
parent
3b3ad206cd
commit
99d0eeb0ab
@ -1,10 +1,10 @@
|
||||
# $OpenBSD: Makefile,v 1.11 2018/01/11 19:27:07 rpe Exp $
|
||||
# $OpenBSD: Makefile,v 1.12 2019/02/28 20:39:40 sthen Exp $
|
||||
|
||||
COMMENT= iSCSI (RFC 3720) target from NetBSD
|
||||
|
||||
DISTNAME= netbsd-iscsi-20111006
|
||||
PKGNAME= ${DISTNAME:S/-iscsi/-iscsi-target/}
|
||||
REVISION= 5
|
||||
REVISION= 6
|
||||
|
||||
CATEGORIES= net sysutils
|
||||
|
||||
|
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-src_target_iscsi-target_c,v 1.1 2019/02/28 20:39:40 sthen Exp $
|
||||
|
||||
Index: src/target/iscsi-target.c
|
||||
--- src/target/iscsi-target.c.orig
|
||||
+++ src/target/iscsi-target.c
|
||||
@@ -61,7 +61,7 @@ main(int argc, char **argv)
|
||||
switch (i) {
|
||||
case '4':
|
||||
case '6':
|
||||
- (void) snprintf(buf, sizeof(buf), "%d", i);
|
||||
+ (void) snprintf(buf, sizeof(buf), "%c", i);
|
||||
iscsi_target_setvar(&tgt, "address family", buf);
|
||||
break;
|
||||
case 'b':
|
Loading…
Reference in New Issue
Block a user