[openwrt/openwrt] procd: create /dev/fd symlink

LEDE Commits lede-commits at lists.infradead.org
Sat Sep 16 11:49:55 PDT 2023


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/fdce970dbb47a6f91b08bdac21a098e77926549f

commit fdce970dbb47a6f91b08bdac21a098e77926549f
Author: Erik Karlsson <erik.karlsson at genexis.eu>
AuthorDate: Wed Sep 6 12:33:17 2023 +0200

    procd: create /dev/fd symlink
    
    This is needed for ksh/bash style process substitution such as
    <(command) and >(command) which was introduced in ash as of busybox
    version 1.34.0 to work.
    
    Signed-off-by: Erik Karlsson <erik.karlsson at genexis.eu>
---
 package/system/procd/Makefile           | 2 +-
 package/system/procd/files/hotplug.json | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/package/system/procd/Makefile b/package/system/procd/Makefile
index d0576c1259..7c829260d5 100644
--- a/package/system/procd/Makefile
+++ b/package/system/procd/Makefile
@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=procd
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL=$(PROJECT_GIT)/project/procd.git
diff --git a/package/system/procd/files/hotplug.json b/package/system/procd/files/hotplug.json
index b930b307a4..9fecddae6b 100644
--- a/package/system/procd/files/hotplug.json
+++ b/package/system/procd/files/hotplug.json
@@ -11,6 +11,7 @@
 						[ "eq", "DEVNAME", "null" ],
 						[
 							[ "makedev", "/dev/%DEVNAME%", "0666" ],
+							[ "exec", "/bin/ln", "-s", "/proc/self/fd", "/dev/fd" ],
 							[ "exec", "/bin/ln", "-s", "/proc/self/fd/0", "/dev/stdin" ],
 							[ "exec", "/bin/ln", "-s", "/proc/self/fd/1", "/dev/stdout" ],
 							[ "exec", "/bin/ln", "-s", "/proc/self/fd/2", "/dev/stderr" ],




More information about the lede-commits mailing list