Show
Ignore:
Timestamp:
10/03/08 12:19:56 (3 months ago)
Author:
mwhitworth
Message:

No longer create directores in icfs, add checks for when conf entry is not found.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/branches/keobject/fs/icfs/config.c

    r971 r1062  
    8282        struct KeFsEntry* entry; 
    8383        DWORD position=0; 
     84 
     85        KePrint("%s\n", name); 
    8486         
    8587        entry=ConfigResolvePath(name); 
     88         
     89        if (!entry) 
     90                return -ENOENT; 
    8691         
    8792        IcRead(&position, entry->file, data, size); 
     
    96101         
    97102        entry=ConfigResolvePath(name); 
     103         
     104        if (!entry) 
     105                return -ENOENT; 
    98106         
    99107        IcWrite(&position, entry->file, data, size); 
     
    111119int ConfigInit() 
    112120{ 
    113         /* Create standard directories */ 
    114         ConfigCreateDir(NULL, "Devices"); 
    115         ConfigCreateDir(NULL, "Devices/Storage"); 
    116          
    117121        /* Register the ReadConf and WriteConf system calls, for quick access to configuration variables. */ 
    118122        SysRegisterRange(SYS_CONFIG_BASE, configSystemCalls);