87a9c849bd
- Don't assert mkdir_p, it fails on 32bit systems. add: dont-assert-mkdir_p.patch OBS-URL: https://build.opensuse.org/package/show/Base:System/kmod?expand=0&rev=31
16 lines
549 B
Diff
16 lines
549 B
Diff
Index: kmod-9/testsuite/init_module.c
|
|
===================================================================
|
|
--- kmod-9.orig/testsuite/init_module.c
|
|
+++ kmod-9/testsuite/init_module.c
|
|
@@ -147,7 +147,9 @@ static int create_sysfs_files(const char
|
|
strcpy(buf + len, modname);
|
|
len += strlen(modname);
|
|
|
|
- assert(mkdir_p(buf, 0755) >= 0);
|
|
+ // This fails on 32bit systems, we can't use assert
|
|
+ // assert(mkdir_p(buf, 0755) >= 0);
|
|
+ mkdir_p(buf, 0755);
|
|
|
|
strcpy(buf + len, "/initstate");
|
|
return write_one_line_file(buf, "live\n", strlen("live\n"));
|