[PATCH] ash: use memmove instead of mempcpy in subevalvar

2022-02-27 Thread Ariadne Conill
from David Laight. Signed-off-by: Ariadne Conill --- shell/ash.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shell/ash.c b/shell/ash.c index adb0f223a..8acd2d32e 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -7187,7 +7187,8 @@ subevalvar(char *start, char *str, int strloc

[PATCH v2] ash: use memmove instead of mempcpy in subevalvar

2022-02-26 Thread Ariadne Conill
is not allowed to overlap source and destination, as mempcpy is a GNU-specific extension to mempcpy, the same semantics can be assumed. Accordingly, we use memmove instead, which does not have this limitation. v2: Forgot to emulate mempcpy's dest+size return value, fixed. Signed-off-by: Ariadne

[PATCH] ash: use memmove instead of mempcpy in subevalvar

2022-02-26 Thread Ariadne Conill
is not allowed to overlap source and destination, as mempcpy is a GNU-specific extension to mempcpy, the same semantics can be assumed. Accordingly, we use memmove instead, which does not have this limitation. Signed-off-by: Ariadne Conill --- shell/ash.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH] ash: add built-in $BB_ASH_VERSION variable

2022-01-14 Thread Ariadne Conill
-- (add/remove: 0/0 grow/shrink: 2/0 up/down: 50/0) Total: 50 bytes Signed-off-by: Ariadne Conill --- shell/ash.c | 28 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/shell/ash.c b/shell/ash.c index ca5c755b6..b3f64383b 100644

RE: Tar component in busybox version 1.34.1 has a memory leak bug when trying to unpack a tar file.

2021-12-01 Thread Ariadne Conill
Hi, On Wed, 1 Dec 2021, David Laight wrote: From: busybox On Behalf Of Ping Lee Sent: 01 December 2021 01:42 It seems that I found a bug on busybox version 1.34.1: In libbb/xfuncs_printf.c:50, malloc twice for archive_handle and archive_hadle->fileheader with 184 and 72 bytes heap space.

[PATCH] pgrep: add support for matching against UID and RUID

2021-11-22 Thread Ariadne Conill
-- (add/remove: 0/0 grow/shrink: 3/0 up/down: 224/0) Total: 224 bytes Signed-off-by: Ariadne Conill --- procps/pgrep.c | 37 + 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/procps/pgrep.c b/procps/pgrep.c index 6d25c247e..6a12ac23b

Re: [PATCH v2 1/2] cpio: add support for --ignore-devno like GNU cpio

2021-08-04 Thread Ariadne Conill
Hi, Just following up on this patch and the other one. It would be nice to get them upstream. Ariadne On Mon, 28 Jun 2021, Ariadne Conill wrote: The --ignore-devno option is used to set device numbers to (0, 0). This can be useful in verifying whether a CPIO archive is reproducible

[PATCH v2 2/2] cpio: add support for --renumber-inodes like GNU cpio

2021-06-28 Thread Ariadne Conill
-- (add/remove: 0/0 grow/shrink: 2/2 up/down: 102/-12)Total: 90 bytes Signed-off-by: Ariadne Conill --- archival/cpio.c | 32 1 file changed, 32 insertions(+) diff --git a/archival/cpio.c b/archival/cpio.c index 4d386d38d..14f0b5b84 100644 --- a/archival

[PATCH v2 1/2] cpio: add support for --ignore-devno like GNU cpio

2021-06-28 Thread Ariadne Conill
/0 grow/shrink: 3/1 up/down: 60/-6) Total: 54 bytes Signed-off-by: Ariadne Conill --- archival/cpio.c | 20 1 file changed, 20 insertions(+) diff --git a/archival/cpio.c b/archival/cpio.c index d84f6937d..4d386d38d 100644 --- a/archival/cpio.c +++ b/archival

[PATCH 2/2] cpio: add support for --renumber-inodes like GNU cpio

2021-06-28 Thread Ariadne Conill
-- (add/remove: 0/0 grow/shrink: 2/2 up/down: 102/-12)Total: 90 bytes Signed-off-by: Ariadne Conill --- archival/cpio.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/archival/cpio.c b/archival/cpio.c index 4d386d38d..6bdf21001 100644 --- a/archival

[PATCH 1/2] cpio: add support for --ignore-devno like GNU cpio

2021-06-28 Thread Ariadne Conill
/0 grow/shrink: 3/1 up/down: 60/-6) Total: 54 bytes Signed-off-by: Ariadne Conill --- archival/cpio.c | 20 1 file changed, 20 insertions(+) diff --git a/archival/cpio.c b/archival/cpio.c index d84f6937d..4d386d38d 100644 --- a/archival/cpio.c +++ b/archival

Re: [PATCH] use SOURCE_DATE_EPOCH for timestamp if available

2021-05-13 Thread Ariadne Conill
Hello, On Thu, 13 May 2021, Paul Spooren wrote: The SOURCE_DATE_EPOCH is an effort of the Reproducible Builds organization to make timestamps/build dates in compiled tools deterministic over several repetitive builds. Busybox shows by default the build date timestamp which changes whenever

[PATCH] ash: add built-in $BB_ASH_VERSION variable

2021-03-11 Thread Ariadne Conill
-- (add/remove: 0/0 grow/shrink: 2/0 up/down: 50/0) Total: 50 bytes Signed-off-by: Ariadne Conill --- shell/ash.c | 26 +++--- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/shell/ash.c b/shell/ash.c index 6a16833b1..b8525dd57 100644

Re: [PATCH] ash: add built-in $ASH_VERSION variable

2021-03-11 Thread Ariadne Conill
Hello, On Thu, 11 Mar 2021, Kang-Che Sung wrote: On Thu, Mar 11, 2021 at 2:55 PM Ariadne Conill wrote: This is helpful for detecting if the shell is busybox ash or not, which is necessary for enabling ash-specific features in /etc/profile and Alpine's default $ENV. https

[PATCH] ash: add built-in $ASH_VERSION variable

2021-03-10 Thread Ariadne Conill
-7 -- (add/remove: 0/0 grow/shrink: 2/1 up/down: 47/-7) Total: 40 bytes Signed-off-by: Ariadne Conill --- shell/ash.c | 26 +++--- 1 file changed, 19 insertions(+), 7 deletions