SHA256
3
0
forked from pool/aaa_base
aaa_base/get_kernel_version_fix_plus_in_kernel_string.patch
OBS User autobuild 4502688fa8 Accepting request 47594 from Base:System
Copy from Base:System/aaa_base based on submit request 47594 from user coolo

OBS-URL: https://build.opensuse.org/request/show/47594
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/aaa_base?expand=0&rev=216
2010-09-10 13:43:26 +00:00

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