diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2007-07-05 18:01:38 +0200 |
---|---|---|
committer | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-07-05 18:01:38 +0200 |
commit | 06ed886f8b548a85060660869a8b9dad1f1271c1 (patch) | |
tree | b1712e1ff213f84437991a725a3bf562e762d2bc /fs | |
parent | 4cef4bdd6ef2a2e1bc81711bd0a071c6e6ea5176 (diff) | |
download | barebox-06ed886f8b548a85060660869a8b9dad1f1271c1.tar.gz barebox-06ed886f8b548a85060660869a8b9dad1f1271c1.tar.xz |
svn_rev_263
Diffstat (limited to 'fs')
-rw-r--r-- | fs/fs.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -177,6 +177,8 @@ struct dir *opendir(const char *pathname) struct mtab_entry *e; e = get_mtab_entry_by_path(pathname); + if (!e) + return NULL; if (e != mtab) pathname += strlen(e->path); @@ -252,6 +254,8 @@ int mkdir (const char *pathname) struct mtab_entry *e; e = get_mtab_entry_by_path(pathname); + if (!e) + return NULL; if (e != mtab) pathname += strlen(e->path); |