From: Sasha Levin Date: Fri, 23 May 2025 12:19:58 +0000 (-0400) Subject: mailbot: avoid octal bug X-Git-Tag: v6.12.31~87 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7215fd0b97a4c948e6a27d142e283f9644cf4b81;p=thirdparty%2Fkernel%2Fstable-queue.git mailbot: avoid octal bug Signed-off-by: Sasha Levin --- diff --git a/scripts/mailbot.sh b/scripts/mailbot.sh index a04cfcdcb4..2ca3a71a8f 100755 --- a/scripts/mailbot.sh +++ b/scripts/mailbot.sh @@ -290,6 +290,9 @@ extract_series_info() { if [[ $subject =~ $part_pattern ]]; then local current="${BASH_REMATCH[1]}" local total="${BASH_REMATCH[2]}" + # Remove leading zeros to avoid octal interpretation + current=$((10#$current)) + total=$((10#$total)) echo "$current $total" return 0 fi