procd fix

2024-03-18 Thread Paul D
Maybe needs Rafał Miłecki approval? === diff --git a/package/system/procd/files/procd.sh b/package/system/procd/files/procd.sh index 8ee25f4f08b47..9d936bb7e9778 100644 --- a/package/system/procd/files/procd.sh +++ b/package/system/procd/files/procd.sh @@ -601,7 +601,7 @@

Re: [PATCH procd] Fix retriggering of init.d-scripts.

2023-08-30 Thread Henrique de Moraes Holschuh via openwrt-devel
The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software.--- Begin Message --- Em 28/08/2023 11:12, Markus

[PATCH procd] Fix retriggering of init.d-scripts.

2023-08-28 Thread Markus Gothe
Fix retriggering of init.d-scripts which calls commands dependent on functional STDIN/STDOUT/STDERR. If we just close these file descriptors those commands will not work as expected leading to unwanted consequences. If we instead redirect the file descriptors to /dev/null, we will end up the same

[PATCH 21.02 0/2] procd: fix console support

2022-01-06 Thread Rafał Miłecki
From: Rafał Miłecki There is one procd patch that is critical for few devices: 2cfc26f inittab: detect active console from kernel if no console= specified It allows using serial console on devices that have it but don't specify it e.g. using console= cmdline argument. In a long term we may

[PATCH] procd: fix compilation with newer musl

2021-03-01 Thread Rosen Penev
An open bracket was missing. Signed-off-by: Rosen Penev --- jail/jail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jail/jail.c b/jail/jail.c index 378a729..ce4f50c 100644 --- a/jail/jail.c +++ b/jail/jail.c @@ -2804,7 +2804,7 @@ static void post_main(struct

Re: [PATCH 2/2] procd: fix wrong format for 32-bit

2020-07-20 Thread Rosen Penev
On Mon, Jul 20, 2020 at 3:35 PM Rosen Penev wrote: > > The proper format is %zu . > > Signed-off-by: Rosen Penev https://downloads.openwrt.org/snapshots/faillogs/powerpc_464fp/base/procd/compile.txt > --- > jail/jail.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

[PATCH 2/2] procd: fix wrong format for 32-bit

2020-07-20 Thread Rosen Penev
The proper format is %zu . Signed-off-by: Rosen Penev --- jail/jail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jail/jail.c b/jail/jail.c index 5a6802f..90de411 100644 --- a/jail/jail.c +++ b/jail/jail.c @@ -1366,7 +1366,7 @@ static int parseOCIprocessuser(struct

[PATCH] procd: fix compilation with uClibc-ng

2020-06-24 Thread Rosen Penev
_GNU_SOURCE was missing. Also defined two macros unavailable with uClibc-ng. Signed-off-by: Rosen Penev --- jail/console.c | 4 jail/jail.c| 4 trace/trace.c | 5 + 3 files changed, 13 insertions(+) diff --git a/jail/console.c b/jail/console.c index eacb2fa..588d241 100644

Re: [OpenWrt-Devel] [PATCH] procd: fix shutdown when running in a container

2019-08-07 Thread Hans Dedecker
On Mon, Aug 5, 2019 at 6:09 PM Paul Spooren wrote: > > Applies patch from @mikma [0] to fix Docker shutdown. Added detection to > state.c if running in a containre or not. > > Tested with a x86/64 Docker image. > > Fixes FS#2425 > > CC: Mikael Magnusson > CC: Petr Štetiar > > [0]: >

[OpenWrt-Devel] [PATCH] procd: fix shutdown when running in a container

2019-08-05 Thread Paul Spooren
Applies patch from @mikma [0] to fix Docker shutdown. Added detection to state.c if running in a containre or not. Tested with a x86/64 Docker image. Fixes FS#2425 CC: Mikael Magnusson CC: Petr Štetiar [0]:

Re: [OpenWrt-Devel] [PATCH] procd: Fix compile error with GCC8

2018-06-21 Thread Arjen de Korte
Citeren John Crispin : On 21/06/18 22:58, Rosen Penev wrote: error: ‘%d’ directive output may be truncated writing between 2 and 10 bytes into a region of size 3 [-Werror=format-truncation=] snprintf(fd_buf, sizeof(fd_buf), "%d", wdt_fd); ^~~ note: directive

Re: [OpenWrt-Devel] [PATCH] procd: Fix compile error with GCC8

2018-06-21 Thread John Crispin
On 21/06/18 22:58, Rosen Penev wrote: error: ‘%d’ directive output may be truncated writing between 2 and 10 bytes into a region of size 3 [-Werror=format-truncation=] snprintf(fd_buf, sizeof(fd_buf), "%d", wdt_fd); ^~~ note: directive argument in the range

[OpenWrt-Devel] [PATCH] procd: Fix compile error with GCC8

2018-06-21 Thread Rosen Penev
error: ‘%d’ directive output may be truncated writing between 2 and 10 bytes into a region of size 3 [-Werror=format-truncation=] snprintf(fd_buf, sizeof(fd_buf), "%d", wdt_fd); ^~~ note: directive argument in the range [0, 2147483647] snprintf(fd_buf,

[OpenWrt-Devel] [PATCH][procd] fix generating syscall-names.h

2015-08-15 Thread Hauke Mehrtens
Sometimes the syscall number is not defined with a number but with an offset to an other syscall and then make_syscall_h.sh created some broken header file. For example the bit/syscall.h from musl for i386 has this: #define __NR_timer_create 259 #define __NR_timer_settime

[OpenWrt-Devel] [PATCH procd] fix /dev/shm permissions

2015-06-17 Thread Daniel Gimpelevich
On my Ubuntu system, the permissions are 1777. They are incorrect in procd, leading to this: https://forum.openwrt.org/viewtopic.php?id=57073 This in intended for both CC and DD. Signed-off-by: Daniel Gimpelevich dan...@gimpelevich.san-francisco.ca.us --- a/initd/early.c 2015-06-14

[OpenWrt-Devel] [PATCH 0/2] procd: fix building with latest json-c

2015-02-26 Thread William Holland
These patches allow procd to be build with the latest json-c William Holland (2): fix building with json-c.0.12 Fix use of functions deprecated in json-c.0.12 CMakeLists.txt |7 +++ plug/hotplug.c |6 +- service/validate.c | 37 ++---

[OpenWrt-Devel] [PATCH 2/2] procd: fix/clean some conditions in nand.sh

2014-11-24 Thread Rafał Miłecki
1) nand_upgrade_tar: use a simpler condition that matches if () { } logic and fix check of $kernel_length variable 2) nand_do_upgrade_stage2: use case, otherwise one could believe we always call nand_upgrade_tar Signed-off-by: Rafał Miłecki zaj...@gmail.com --- This hasn't been tested on

[OpenWrt-Devel] [PATCH] procd: fix uci_validation

2014-06-27 Thread Luka Perkov
Regardles of the return code from validate_data _error variable will be 0 due to 'local' command in the previous line. With this patch we are able to catch the return code from validate_data tool. Signed-off-by: Luka Perkov l...@openwrt.org --- package/system/procd/Makefile | 9 -

[OpenWrt-Devel] [PATCH 2/2] procd: fix nand.sh kernel_length typo

2014-06-20 Thread Daniel Golle
sysupgrade otherwise skips kernel part on devices which got kernel in ubi due to kern_length being undefined, kernel_length is being used instead. Signed-off-by: Daniel Golle dan...@makrotopia.org --- package/system/procd/files/nand.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

Re: [OpenWrt-Devel] [PATCH] procd: Fix USB cellular modems

2014-06-07 Thread Felix Fietkau
On 2014-06-06 23:20, Matthew Reeve wrote: Without this patch, /etc/hotplug.d/tty/30-3g won't be called when you insert or remove a USB-serial cellular modem. (see Ticket #14117) Signed-off-by: Matthew Reeve mre...@tenxnetworks.com Applied in r41039, thanks. - Felix

[OpenWrt-Devel] [PATCH] procd: Fix USB cellular modems

2014-06-06 Thread Matthew Reeve
Without this patch, /etc/hotplug.d/tty/30-3g won't be called when you insert or remove a USB-serial cellular modem. (see Ticket #14117) Signed-off-by: Matthew Reeve mre...@tenxnetworks.com --- package/system/procd/files/hotplug.json 2014-05-27 22:34:33.175634831 + +++