diff options
| author | Miguel <m.i@gmx.at> | 2018-09-26 23:58:14 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-09-26 23:58:14 +0200 |
| commit | b86f48da7fc46934d576698bb4f16be9b2a7eaf9 (patch) | |
| tree | ea42a72faeb406c303025b0c981a76e533a8b110 /fs | |
| parent | 915791f6acedbb35db73216156c1baa790e384d9 (diff) | |
some bugfixes
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/mount.c | 2 | ||||
| -rw-r--r-- | fs/sysfs.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -79,7 +79,7 @@ static char* get_mount_for_path(char *path,mount *mnt) mount *m=&mounts[i]; uint32_t len=check_match(path,m->path); - if(len>best_len&&len==strlen(m->path)) + if(len>best_len)//&&len==strlen(m->path)) { best=i; best_len=len; @@ -9,7 +9,7 @@ #include "lib/string/string.h" -static const char* names[] = {"mem","kmalloc","mount"}; +static const char* names[] = {"/mem","/kmalloc","/mount"}; static uint32_t map[]={mem_sysfs,mem_sysfs_set, kmalloc_sysfs,NULL, |
