diff options
| author | Michal Idziorek <m.i@gmx.at> | 2015-05-18 00:48:07 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2015-05-18 00:48:07 +0200 |
| commit | db22b587966b4a4eaa47536f32ca812532446bcb (patch) | |
| tree | b6d471f5232973713ef64d9c81feefef51ee5eaf /fs/ext2.c | |
| parent | 042e25e19b5fc0cec1d47440c26246c886cf39f6 (diff) | |
heavy refactoring underway
Diffstat (limited to 'fs/ext2.c')
| -rw-r--r-- | fs/ext2.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -6,7 +6,6 @@ #include <stdbool.h> #include <stdint.h> -#include "lib/string/string.h" #include "lib/logger/log.h" #include "fs.h" #include "ext2.h" @@ -272,7 +271,7 @@ int ext2_filename_to_inode_traverse(uint8_t *ram, char *path,int inode_start) for(int i=0;i<count;i++) { - if(true==strcmp(first,dirs[i].name,0)) + if(!strcmp_l(first,dirs[i].name,0)) { log(FOOLOS_MODULE_NAME,FOOLOS_LOG_DEBUG,"found: %s (%s)",first,dirs[i].type==FS_FILE_TYPE_DIR?"dir":"file"); if(final)return dirs[i].inode; @@ -291,7 +290,8 @@ int ext2_filename_to_inode_traverse(uint8_t *ram, char *path,int inode_start) int ext2_filename_to_inode(uint8_t *ram, char *path) { - if(true==strcmp(path,"/",0))return 2; // root is inode 2 by definition + if(!strcmp_l(path,"/",0))return 2; // root is inode 2 by definition + char buf[256]; for(int i=0;i<256;i++) { |
