opkg

statically linked package installer
git clone anongit@rnpnr.xyz:opkg.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

0041-xargs-avoid-using-sys_signames-table.patch (905B)


      1 From 5f949b35a10b496bae09de3d30c62580c39e3cf7 Mon Sep 17 00:00:00 2001
      2 From: Randy Palamar <randy@rnpnr.xyz>
      3 Date: Wed, 27 Dec 2023 09:24:34 -0700
      4 Subject: [PATCH] xargs: avoid using sys_signames table
      5 
      6 ---
      7  usr.bin/xargs/xargs.c | 8 ++------
      8  1 file changed, 2 insertions(+), 6 deletions(-)
      9 
     10 diff --git a/usr.bin/xargs/xargs.c b/usr.bin/xargs/xargs.c
     11 index ff17caa..18942bb 100644
     12 --- a/usr.bin/xargs/xargs.c
     13 +++ b/usr.bin/xargs/xargs.c
     14 @@ -581,12 +581,8 @@ waitchildren(const char *name, int waitall)
     15  			}
     16  		} else if (WIFSIGNALED(status)) {
     17  			if (WTERMSIG(status) != SIGPIPE) {
     18 -				if (WTERMSIG(status) < NSIG)
     19 -					warnx("%s terminated by SIG%s", name,
     20 -					    sys_signame[WTERMSIG(status)]);
     21 -				else
     22 -					warnx("%s terminated by signal %d",
     23 -					    name, WTERMSIG(status));
     24 +				warnx("%s terminated by signal %d",
     25 +				    name, WTERMSIG(status));
     26  			}
     27  			exit(125);
     28  		}
     29 -- 
     30 2.42.0
     31