aboutsummaryrefslogtreecommitdiffstats
path: root/toys/pending/modprobe.c
diff options
context:
space:
mode:
authorSteve Kondik <steve@cyngn.com>2016-09-26 05:28:18 -0700
committerSteve Kondik <steve@cyngn.com>2016-09-26 05:40:17 -0700
commitb5e7cfb667a1dc94add27762e518a4ca3bc24157 (patch)
tree68f8a8ba5b1af182227cf3ba52989ef3221b252a /toys/pending/modprobe.c
parent00a7af60ddbe98baa838326809f9b7293929c8b8 (diff)
parenta31c4a356fd541cdaf455bba9e723e6bdb01f8ea (diff)
downloadandroid_external_toybox-b5e7cfb667a1dc94add27762e518a4ca3bc24157.tar.gz
android_external_toybox-b5e7cfb667a1dc94add27762e518a4ca3bc24157.tar.bz2
android_external_toybox-b5e7cfb667a1dc94add27762e518a4ca3bc24157.zip
Merge branch 'master' of https://android.googlesource.com/platform/external/toybox into cm-14.0cm-14.0
Change-Id: I30f7024dc0b625c2a0b34907a640052592c3f8c1
Diffstat (limited to 'toys/pending/modprobe.c')
-rw-r--r--toys/pending/modprobe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/toys/pending/modprobe.c b/toys/pending/modprobe.c
index 7a35c186..ebf17a0e 100644
--- a/toys/pending/modprobe.c
+++ b/toys/pending/modprobe.c
@@ -367,7 +367,9 @@ static int ins_mod(char *modules, char *flags)
{
char *buf = NULL;
int len, res;
- int fd = xopen(modules, O_RDONLY);
+ int fd = xopenro(modules);
+
+ // TODO xreadfile()
len = fdlength(fd);
buf = xmalloc(len);