immortalwrt-mt798x/package/system/procd/patches/0001-uxc-fix-compilation-error-caused-by-unused-variable.patch
Yuteng Zhong 7cf6696120
procd: jail: ignore missing .dynamic sect
A static-linked binary doesn't have a .dynamic section, but when
starting ujail with -r or -w will automatically search for PT_DYNAMIC in
ELF and exit with failure if it is not found.

Fixes: #970

Signed-off-by: Yuteng Zhong <zonyitoo@qq.com>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-06-05 15:56:36 +08:00

32 lines
867 B
Diff

From 2ddf0005298e08ba1e358d95be6b826c56a7d1fc Mon Sep 17 00:00:00 2001
From: Christian Marangi <ansuelsmth@gmail.com>
Date: Tue, 29 Nov 2022 16:33:23 +0100
Subject: [PATCH] uxc: fix compilation error caused by unused variable
Fix compilation error caused by unused verbose variable.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
---
uxc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/uxc.c
+++ b/uxc.c
@@ -80,6 +80,8 @@ static struct blob_buf conf;
static struct blob_buf state;
static struct ubus_context *ctx;
+static bool verbose = false;
+
static int usage(void) {
printf("syntax: uxc <command> [parameters ...]\n");
printf("commands:\n");
@@ -724,7 +726,6 @@ int main(int argc, char **argv)
char *pidfile = NULL;
bool autostart = false;
bool force = false;
- bool verbose = false;
int signal = SIGTERM;
int c;