From 66d76978f2ffbe276e84b03a7fac1041a7c3b4c3 Mon Sep 17 00:00:00 2001
From: Matthias Maier <tamiko@43-1.org>
Date: Thu, 2 Jun 2022 13:17:10 -0500
Subject: [PATCH] Do not hardcode the path of sed

---
 doc/Makefile             | 2 +-
 etc/Makefile             | 2 +-
 libopeniscsiusr/Makefile | 2 +-
 utils/Makefile           | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/doc/Makefile b/doc/Makefile
index 9ed025d..e121270 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -7,7 +7,7 @@ ifeq ($(TOPDIR),)
 	TOPDIR = ..
 endif
 
-SED = /usr/bin/sed
+SED = sed
 INSTALL = install
 
 DESTDIR ?=
diff --git a/etc/Makefile b/etc/Makefile
index d065319..2d98027 100644
--- a/etc/Makefile
+++ b/etc/Makefile
@@ -19,7 +19,7 @@ initddir ?= $(etcdir)/init.d
 
 HOMEDIR ?= $(etcdir)/iscsi
 
-SED = /usr/bin/sed
+SED = sed
 INSTALL = install
 
 SYSTEMD_SOURCE_FILES	= iscsid.socket iscsiuio.socket
diff --git a/libopeniscsiusr/Makefile b/libopeniscsiusr/Makefile
index 523518b..90903dd 100644
--- a/libopeniscsiusr/Makefile
+++ b/libopeniscsiusr/Makefile
@@ -29,7 +29,7 @@ PKGCONF_DIR ?= $(LIB_DIR)/pkgconfig
 MAN_DIR = $(prefix)/share/man
 
 PKG_CONFIG ?= /usr/bin/pkg-config
-SED ?= /usr/bin/sed
+SED ?= sed
 
 LIBISCSI_USR_DIR=$(TOPDIR)/libopeniscsiusr
 
diff --git a/utils/Makefile b/utils/Makefile
index a7eb352..15539eb 100644
--- a/utils/Makefile
+++ b/utils/Makefile
@@ -7,7 +7,7 @@
 # from the top-level make file.
 #
 
-SED = /usr/bin/sed
+SED = sed
 INSTALL = install
 CHMOD = chmod
 
-- 
2.35.1

