[packages/rpm-build-tools] Rel 2. Rebind stdin inside script (otherwise stdin is like tmp/sh787hud.tmp). Map group (just for co
arekm
arekm at pld-linux.org
Tue Feb 10 10:02:12 CET 2026
commit b3ca6f4e74417ed0eb9fcfc64ca68256efc32c9a
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Tue Feb 10 10:02:03 2026 +0100
Rel 2. Rebind stdin inside script (otherwise stdin is like tmp/sh787hud.tmp). Map group (just for convinience), too.
no-net.sh | 3 ++-
rpm-build-tools.spec | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/rpm-build-tools.spec b/rpm-build-tools.spec
index 093bb85..339676b 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: 1
+Release: 2
License: GPL
Group: Applications/File
Source0: builder.sh
diff --git a/no-net.sh b/no-net.sh
index 551a3a4..8449f8a 100755
--- a/no-net.sh
+++ b/no-net.sh
@@ -54,12 +54,13 @@ fi
exec unshare --user --net --map-root-user $SHELL -s${DEBUG:+xv} "$@" <<EOF
if test -x $IP; then
+ exec </dev/tty
$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
if test -n "\$addr"; then
$IP l set lo up
fi
unset addr
- exec unshare --map-user $(id -un) "\$@"
+ exec unshare --map-user $(id -un) --map-group $(id -gn) "\$@"
fi
EOF
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/b3ca6f4e74417ed0eb9fcfc64ca68256efc32c9a
More information about the pld-cvs-commit
mailing list