kmod/dont-assert-mkdir_p.patch
Robert Milasan 87a9c849bd * libkmod-util: add missing stdbool.h include
- 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
2012-06-20 13:11:38 +00:00

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"));