aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2023-02-04 08:16:29 +0000
committerRon Yorston <rmy@pobox.com>2023-02-04 08:16:29 +0000
commit0708c8a68dfaf39ec9c48e477ff44a5c6c7d497c (patch)
treea17f1716235ee345a74c6ca36a01c74661e2785d
parent6e9d680e5bd72f30eb6c8a6972b9653086e4ac90 (diff)
downloadbusybox-w32-0708c8a68dfaf39ec9c48e477ff44a5c6c7d497c.tar.gz
busybox-w32-0708c8a68dfaf39ec9c48e477ff44a5c6c7d497c.tar.bz2
busybox-w32-0708c8a68dfaf39ec9c48e477ff44a5c6c7d497c.zip
Fix POSIX build
A misplaced #endif in ash and the wrong sense of a test in parse_config.c broke the POSIX build.
-rw-r--r--libbb/parse_config.c2
-rw-r--r--shell/ash.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libbb/parse_config.c b/libbb/parse_config.c
index 800a2935e..bcd667c7c 100644
--- a/libbb/parse_config.c
+++ b/libbb/parse_config.c
@@ -113,7 +113,7 @@ static int get_line_with_continuation(parser_t *parser)
113 line = parser->line; 113 line = parser->line;
114 for (;;) { 114 for (;;) {
115 parser->lineno++; 115 parser->lineno++;
116#if ENABLE_PLATFORM_MINGW32 116#if !ENABLE_PLATFORM_MINGW32
117 if (line[len - 1] == '\n') 117 if (line[len - 1] == '\n')
118 len--; 118 len--;
119#else 119#else
diff --git a/shell/ash.c b/shell/ash.c
index 7b9b9f1e1..a24ed0ac8 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -7372,8 +7372,8 @@ expbackq(union node *cmd, int flag IF_BASH_PROCESS_SUBST(, int ctl))
7372 if (dest > ((char *)stackblock() + startloc) && dest[-1] == '\r') { 7372 if (dest > ((char *)stackblock() + startloc) && dest[-1] == '\r') {
7373 STUNPUTC(dest); 7373 STUNPUTC(dest);
7374 } 7374 }
7375 }
7376#endif 7375#endif
7376 }
7377 expdest = dest; 7377 expdest = dest;
7378 7378
7379 if (!(flag & EXP_QUOTED)) 7379 if (!(flag & EXP_QUOTED))