summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2012-06-19 13:09:23 -0300
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2012-06-19 13:27:56 -0300
commit33202e84f344794b1ae261874883874a2c15dc80 (patch)
treec178abcf592bcc2a63858634cc0740a37dd4e217 /testsuite
parent3f376cd87742246f00fe552596975a00ec5d60b1 (diff)
downloadkmod-33202e84f344794b1ae261874883874a2c15dc80.tar.gz
kmod-33202e84f344794b1ae261874883874a2c15dc80.tar.bz2
kmod-33202e84f344794b1ae261874883874a2c15dc80.zip
build-sys: Make dirs writable on rootfs creation
Autofoo make the dist dir as readonly. If we copy it, tools needing to create sysfs entries will not be able to do so, because they can't create the needed directories/files. It would be much better if autofoo allowed to let the files as is instead of converting them to read-only.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/init_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/init_module.c b/testsuite/init_module.c
index 6db0d17..814998a 100644
--- a/testsuite/init_module.c
+++ b/testsuite/init_module.c
@@ -147,7 +147,7 @@ static int create_sysfs_files(const char *modname)
strcpy(buf + len, modname);
len += strlen(modname);
- mkdir_p(buf, 0755);
+ assert(mkdir_p(buf, 0755) >= 0);
strcpy(buf + len, "/initstate");
return write_one_line_file(buf, "live\n", strlen("live\n"));