File git-39-df622b89bc92fd882a6715c5743095528a643546.patch of Package aaa_base.24604

commit df622b89bc92fd882a6715c5743095528a643546
Author: Berthold Gunreben <azouhr@gmail.com>
Date:   Mon Mar 8 11:57:14 2021 +0100

    excluding new kernel string in version search

diff --git a/get_kernel_version.c b/get_kernel_version.c
index c042487..a04571f 100644
--- a/get_kernel_version.c
+++ b/get_kernel_version.c
@@ -116,7 +116,7 @@ main (int argc, char *argv[])
 	    buffer[i+10] == 'i' && buffer[i+11] == 'o' &&
 	    buffer[i+12] == 'n' && buffer[i+13] == ' ' &&
 	    /* current s390 images have that string without version: */
-	    buffer[i+14] != 0)
+	    buffer[i+14] != 0 && buffer[i+17] != 0)
           {
 	    int j = i+14;
 	    int number_dots = 0;
openSUSE Build Service is sponsored by