SHA256
3
0
forked from pool/aaa_base
aaa_base/get_kernel_version_fix_plus_in_kernel_string.patch

19 lines
660 B
Diff

From: Michal Marek <mmarek@suse.cz>
Subject: get_kernel_version: accept '+' in kernel version string
Starting with 2.6.35, the kernel build by default appends a plus sign to
the kernel version string when building in a git tree that is not in a clean
tagged state.
--- get_kernel_version.c~ 2010-09-02 22:34:31.000000000 +0200
+++ get_kernel_version.c 2010-09-02 22:34:47.000000000 +0200
@@ -26,7 +26,7 @@
static inline int my_is_alnum_punct(char c)
{
return isdigit(c) || (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')
- || c == '.' || c == ',' || c == '-' || c == '_';
+ || c == '.' || c == ',' || c == '-' || c == '_' || c == '+';
}
int