Blame SOURCES/0018-sh-Don-t-need-to-cast-parameter-of-ascii_is-to-unsig.patch

538efe
From d5947881c2918196d61d7795adba0abb881a86b9 Mon Sep 17 00:00:00 2001
538efe
From: "Richard W.M. Jones" <rjones@redhat.com>
538efe
Date: Tue, 19 May 2020 15:29:55 +0100
538efe
Subject: [PATCH 18/19] sh: Don't need to cast parameter of ascii_is* to
538efe
 (unsigned char).
538efe
538efe
Our replacements for these functions are not undefined for negative
538efe
values.
538efe
538efe
Thanks: Eric Blake
538efe
Fixes: commit 9f34db74786fdc92b290a7d47e4b003bd84fec69.
538efe
(cherry picked from commit 06a79b8bb8cfd97a272223c967601d8858acb817)
538efe
---
538efe
 plugins/sh/call.c | 4 ++--
538efe
 1 file changed, 2 insertions(+), 2 deletions(-)
538efe
538efe
diff --git a/plugins/sh/call.c b/plugins/sh/call.c
538efe
index ae0cc0ac..ba9f055f 100644
538efe
--- a/plugins/sh/call.c
538efe
+++ b/plugins/sh/call.c
538efe
@@ -392,7 +392,7 @@ handle_script_error (const char *argv0, char *ebuf, size_t len)
538efe
   }
538efe
 
538efe
   if (skip && ebuf[skip]) {
538efe
-    if (!ascii_isspace ((unsigned char) ebuf[skip])) {
538efe
+    if (!ascii_isspace (ebuf[skip])) {
538efe
       /* Treat 'EINVALID' as EIO, not EINVAL */
538efe
       err = EIO;
538efe
       skip = 0;
538efe
@@ -400,7 +400,7 @@ handle_script_error (const char *argv0, char *ebuf, size_t len)
538efe
     else
538efe
       do
538efe
         skip++;
538efe
-      while (ascii_isspace ((unsigned char) ebuf[skip]));
538efe
+      while (ascii_isspace (ebuf[skip]));
538efe
   }
538efe
 
538efe
   while (len > 0 && ebuf[len-1] == '\n')
538efe
-- 
538efe
2.18.2
538efe