diff options
author | Alex Auvolat <alex@adnab.me> | 2015-03-13 16:16:43 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2015-03-13 16:16:43 +0100 |
commit | 5bc7fcc00507bbc5ff5bf957a1589209f8495534 (patch) | |
tree | f18969c395f6e74e0f299948e376abbe74577f68 /src/sysbin/init | |
parent | 41a4f5309ef298da764bf1dca1254e734a4417f0 (diff) | |
download | kogata-5bc7fcc00507bbc5ff5bf957a1589209f8495534.tar.gz kogata-5bc7fcc00507bbc5ff5bf957a1589209f8495534.zip |
Shell begins to be usefull.
Diffstat (limited to 'src/sysbin/init')
-rw-r--r-- | src/sysbin/init/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sysbin/init/main.c b/src/sysbin/init/main.c index d7f3f36..6ac003b 100644 --- a/src/sysbin/init/main.c +++ b/src/sysbin/init/main.c @@ -80,10 +80,10 @@ void setup_sys() { char* sep = strchr(buf, ':'); if (sep == 0) { - ok = fs_subfs("sys", "root", buf, FM_READ | FM_MMAP); + ok = fs_subfs("sys", "root", buf, FM_READ | FM_MMAP | FM_READDIR); } else { *sep = 0; - ok = fs_subfs("sys", buf, sep +1, FM_READ | FM_MMAP); + ok = fs_subfs("sys", buf, sep +1, FM_READ | FM_MMAP | FM_READDIR); } if (!ok) PANIC("[init] Could not bind root:/sys to sys:/"); @@ -166,7 +166,7 @@ int main(int argc, char **argv) { char buf[50]; snprintf(buf, 50, "/config/%s", config); - bool ok = fs_subfs("config", "root", buf, FM_READ | FM_WRITE | FM_MMAP); + bool ok = fs_subfs("config", "root", buf, FM_READ | FM_WRITE | FM_MMAP | FM_READDIR); if (!ok) PANIC("[init] Could not setup config:"); } |