Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package dash for openSUSE:Factory checked in at 2026-02-24 15:37:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/dash (Old) and /work/SRC/openSUSE:Factory/.dash.new.1977 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "dash" Tue Feb 24 15:37:34 2026 rev:32 rq:1334302 version:0.5.13.1 Changes: -------- --- /work/SRC/openSUSE:Factory/dash/dash.changes 2023-01-05 14:59:59.872768208 +0100 +++ /work/SRC/openSUSE:Factory/.dash.new.1977/dash.changes 2026-02-24 15:37:36.783962860 +0100 @@ -1,0 +2,9 @@ +Fri Feb 20 08:58:00 UTC 2026 - Enrico Belleri <[email protected]> + +- Update to 0.15.3.1 +- Add upstream shell-Fix-unsigned-char-promotion-and-truncation.patch: + fix unsigned char promotion and truncation +- Use autosetup +- Update license + +------------------------------------------------------------------- Old: ---- dash-0.5.12.tar.gz New: ---- dash-0.5.13.1.tar.gz shell-Fix-unsigned-char-promotion-and-truncation.patch ----------(New B)---------- New:- Update to 0.15.3.1 - Add upstream shell-Fix-unsigned-char-promotion-and-truncation.patch: fix unsigned char promotion and truncation ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ dash.spec ++++++ --- /var/tmp/diff_new_pack.XWd7Tm/_old 2026-02-24 15:37:37.816005561 +0100 +++ /var/tmp/diff_new_pack.XWd7Tm/_new 2026-02-24 15:37:37.820005727 +0100 @@ -1,7 +1,7 @@ # # spec file for package dash # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2026 SUSE LLC and contributors # Copyright (c) 2013 Guido Berhoerster. # # All modifications and additions to the file contributed by third parties @@ -18,14 +18,16 @@ Name: dash -Version: 0.5.12 +Version: 0.5.13.1 Release: 0 Summary: POSIX-compliant Implementation of /bin/sh -License: BSD-3-Clause +License: BSD-3-Clause AND GPL-2.0-or-later Group: System/Shells URL: http://gondor.apana.org.au/~herbert/dash/ Source0: http://gondor.apana.org.au/~herbert/dash/files/%{name}-%{version}.tar.gz -BuildRequires: libedit-devel +Patch0: shell-Fix-unsigned-char-promotion-and-truncation.patch +BuildRequires: pkgconfig +BuildRequires: pkgconfig(libedit) %description DASH is a POSIX-compliant implementation of /bin/sh that aims to be as small as @@ -43,8 +45,7 @@ Use dash as /bin/sh implementation. %prep -%setup -q -%autopatch -p1 +%autosetup -p1 %build %global optflags %{optflags} -fcommon ++++++ dash-0.5.12.tar.gz -> dash-0.5.13.1.tar.gz ++++++ ++++ 14613 lines of diff (skipped) ++++++ shell-Fix-unsigned-char-promotion-and-truncation.patch ++++++ >From 5139d6a27763fc0be386e15634db21e45598b299 Mon Sep 17 00:00:00 2001 From: Herbert Xu <[email protected]> Date: Tue, 21 Oct 2025 21:29:32 +0800 Subject: shell: Fix unsigned char promotion and truncation When a char is promoted to an int, it needs to be signed as otherwise comparisons on it may fail. Alternatively, an integer needs to be truncated to char before comparing it against another char. Reported-by: Juergen Daubert <[email protected]> Fixes: e878137f63e6 ("expand: Do not call rmescapes in expari") Fixes: c5bf9702ea11 ("expand: Add multi-byte support to pmatch") Fixes: 8f01c3796f0f ("[PARSER] Add FAKEEOFMARK for expandstr") Signed-off-by: Herbert Xu <[email protected]> --- src/expand.c | 4 ++-- src/parser.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/expand.c b/src/expand.c index 912384d..8c8bf0e 100644 --- a/src/expand.c +++ b/src/expand.c @@ -1914,7 +1914,7 @@ static int pmatch(char *pattern, const char *string) if (c == '?' || c == '[') c = CTLESC; for (;;) { - if (c != CTLESC) { + if (c != (char)CTLESC) { /* Stop should be null-terminated * as it is passed as a string to * strpbrk(3). @@ -1985,7 +1985,7 @@ static int pmatch(char *pattern, const char *string) p++; if (*p == (char)CTLESC) p++; - else if (*p == CTLMBCHAR) { + else if (*p == (char)CTLMBCHAR) { mbp = mbnext(p); p += mbp & 0xff; p += mbp >> 8; diff --git a/src/parser.c b/src/parser.c index eb402a7..5714958 100644 --- a/src/parser.c +++ b/src/parser.c @@ -1240,7 +1240,7 @@ checkend: { markloc = out - (char *)stackblock(); for (p = eofmark; STPUTC(c, out), *p; p++) { - if (c != *p) + if (c != (signed char)*p) goto more_heredoc; c = pgetc(); -- cgit 1.2.3-korg
