From 215dd8d96fd0e2ec1d1217d4272c91a288a20f2f Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 13 Aug 2020 20:16:06 -0700 Subject: [PATCH] tgt: remove bzero usage bzero is deprecated and replaced by memset. Signed-off-by: Rosen Penev --- net/tgt/Makefile | 2 +- net/tgt/patches/110-bzero.patch | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 net/tgt/patches/110-bzero.patch diff --git a/net/tgt/Makefile b/net/tgt/Makefile index d7a8d5ee0..6eb8230a5 100644 --- a/net/tgt/Makefile +++ b/net/tgt/Makefile @@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=tgt PKG_VERSION:=1.0.79 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/fujita/tgt/tar.gz/v$(PKG_VERSION)? diff --git a/net/tgt/patches/110-bzero.patch b/net/tgt/patches/110-bzero.patch new file mode 100644 index 000000000..2ff11b14f --- /dev/null +++ b/net/tgt/patches/110-bzero.patch @@ -0,0 +1,11 @@ +--- a/usr/iscsi/target.c ++++ b/usr/iscsi/target.c +@@ -224,7 +224,7 @@ get_redirect_address(char *callback, char *buffer, int buflen, + { + char *p, *addr, *port; + +- bzero(buffer, buflen); ++ memset(buffer, 0, buflen); + if (call_program(callback, NULL, NULL, buffer, buflen, 0)) + return -1; +