aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2025-10-06 07:53:56 +0100
committerRon Yorston <rmy@pobox.com>2025-10-06 07:53:56 +0100
commit3b6192619de7b98db5155dbcfe4038355d97cdac (patch)
treee8a2f81ce24594e4763308308fdf2ea8a204959f
parent946d0df22305704c4456b1be0cb842c2069d5992 (diff)
parentf5e1bf966b19ea1821f00a8c9ecd7774598689b4 (diff)
downloadbusybox-w32-3b6192619de7b98db5155dbcfe4038355d97cdac.tar.gz
busybox-w32-3b6192619de7b98db5155dbcfe4038355d97cdac.tar.bz2
busybox-w32-3b6192619de7b98db5155dbcfe4038355d97cdac.zip
Merge branch 'busybox' into merge
Diffstat (limited to '')
-rw-r--r--archival/libarchive/header_list.c2
-rw-r--r--archival/libarchive/header_verbose_list.c4
-rw-r--r--shell/ash.c10
3 files changed, 6 insertions, 10 deletions
diff --git a/archival/libarchive/header_list.c b/archival/libarchive/header_list.c
index 0621aa406..9490b3635 100644
--- a/archival/libarchive/header_list.c
+++ b/archival/libarchive/header_list.c
@@ -8,5 +8,5 @@
8void FAST_FUNC header_list(const file_header_t *file_header) 8void FAST_FUNC header_list(const file_header_t *file_header)
9{ 9{
10//TODO: cpio -vp DIR should output "DIR/NAME", not just "NAME" */ 10//TODO: cpio -vp DIR should output "DIR/NAME", not just "NAME" */
11 puts(file_header->name); 11 puts(printable_string(file_header->name));
12} 12}
diff --git a/archival/libarchive/header_verbose_list.c b/archival/libarchive/header_verbose_list.c
index a575a08a0..e7a09430d 100644
--- a/archival/libarchive/header_verbose_list.c
+++ b/archival/libarchive/header_verbose_list.c
@@ -57,13 +57,13 @@ void FAST_FUNC header_verbose_list(const file_header_t *file_header)
57 ptm->tm_hour, 57 ptm->tm_hour,
58 ptm->tm_min, 58 ptm->tm_min,
59 ptm->tm_sec, 59 ptm->tm_sec,
60 file_header->name); 60 printable_string(file_header->name));
61 61
62#endif /* FEATURE_TAR_UNAME_GNAME */ 62#endif /* FEATURE_TAR_UNAME_GNAME */
63 63
64 /* NB: GNU tar shows "->" for symlinks and "link to" for hardlinks */ 64 /* NB: GNU tar shows "->" for symlinks and "link to" for hardlinks */
65 if (file_header->link_target) { 65 if (file_header->link_target) {
66 printf(" -> %s", file_header->link_target); 66 printf(" -> %s", printable_string(file_header->link_target));
67 } 67 }
68 bb_putchar('\n'); 68 bb_putchar('\n');
69} 69}
diff --git a/shell/ash.c b/shell/ash.c
index 3722c2c23..ae49687da 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -16380,14 +16380,11 @@ init(void)
16380 * Process the shell command line arguments. 16380 * Process the shell command line arguments.
16381 */ 16381 */
16382static int 16382static int
16383procargs(char **argv) 16383procargs(char **xargv)
16384{ 16384{
16385 int i; 16385 int i;
16386 const char *xminusc;
16387 char **xargv;
16388 int login_sh; 16386 int login_sh;
16389 16387
16390 xargv = argv;
16391#if ENABLE_PLATFORM_MINGW32 16388#if ENABLE_PLATFORM_MINGW32
16392 login_sh = applet_name[0] == 'l'; 16389 login_sh = applet_name[0] == 'l';
16393#else 16390#else
@@ -16408,9 +16405,8 @@ procargs(char **argv)
16408 raise_exception(EXERROR); /* does not return */ 16405 raise_exception(EXERROR); /* does not return */
16409 } 16406 }
16410 xargv = argptr; 16407 xargv = argptr;
16411 xminusc = minusc;
16412 if (*xargv == NULL) { 16408 if (*xargv == NULL) {
16413 if (xminusc) 16409 if (minusc)
16414 ash_msg_and_raise_error(bb_msg_requires_arg, "-c"); 16410 ash_msg_and_raise_error(bb_msg_requires_arg, "-c");
16415 sflag = 1; 16411 sflag = 1;
16416 } 16412 }
@@ -16432,7 +16428,7 @@ procargs(char **argv)
16432 debug = 1; 16428 debug = 1;
16433#endif 16429#endif
16434 /* POSIX 1003.2: first arg after "-c CMD" is $0, remainder $1... */ 16430 /* POSIX 1003.2: first arg after "-c CMD" is $0, remainder $1... */
16435 if (xminusc) { 16431 if (minusc) {
16436 minusc = *xargv++; 16432 minusc = *xargv++;
16437 if (*xargv) 16433 if (*xargv)
16438 goto setarg0; 16434 goto setarg0;