[packages/rpm-build-tools] no-net: get rid of needless `cat`; rel 5

atler atler at pld-linux.org
Sun Feb 15 21:17:44 CET 2026


commit 76053f25492cd613dda8c1796ef3d7c606a4d8e4
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Feb 15 21:15:59 2026 +0100

    no-net: get rid of needless `cat`; rel 5

 no-net.sh            | 2 +-
 rpm-build-tools.spec | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/rpm-build-tools.spec b/rpm-build-tools.spec
index 3a9932c..221d2f6 100644
--- a/rpm-build-tools.spec
+++ b/rpm-build-tools.spec
@@ -6,7 +6,7 @@ Summary(ru.UTF-8):	Скрипты и утилиты, необходимые дл
 Summary(uk.UTF-8):	Скрипти та утиліти, необхідні для побудови пакетів
 Name:		rpm-build-tools
 Version:	4.14
-Release:	4
+Release:	5
 License:	GPL
 Group:		Applications/File
 Source0:	builder.sh
diff --git a/no-net.sh b/no-net.sh
index 6b31420..2691b67 100755
--- a/no-net.sh
+++ b/no-net.sh
@@ -62,7 +62,7 @@ done
 eval exec $stdin_fd'<&0'
 
 # explicitly pass stdin_fd (mksh does not inherit duplicated descriptors by default)
-cat <<EOF | eval exec unshare --user --net --map-root-user $SHELL -s${DEBUG:+xv} '"$@"' $stdin_fd"<&$stdin_fd"
+eval exec unshare --user --net --map-root-user $SHELL -s${DEBUG:+xv} '"$@"' $stdin_fd"<&$stdin_fd" <<EOF
 if test -x $IP; then
   $IP a add 127.0.0.1/8 dev lo 2> /dev/null && addr=1
   $IP a add ::1/128 dev lo noprefixroute 2> /dev/null && addr=1
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/76053f25492cd613dda8c1796ef3d7c606a4d8e4



More information about the pld-cvs-commit mailing list