summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorwdenk <wdenk>2005-02-04 15:02:06 +0000
committerwdenk <wdenk>2005-02-04 15:02:06 +0000
commit20a80418f9201f81b718aeb6c872b83bd8e929c0 (patch)
tree0261a799b44e9b6029b1e7bb7620cba2ceb88ac6 /fs
parent1a344f298d9d334f7bec631432c10c0666d04757 (diff)
downloadu-boot-20a80418f9201f81b718aeb6c872b83bd8e929c0.tar.gz
* Patch by Cajus Hahn, 04 Feb 2005:
- don't insist on leading '/' for filename in ext2load - set default partition to useful value (1) in ext2load * Patch by Andrew Dyer, 08 Jan 2005: fix wrong return codes in ext2 code
Diffstat (limited to 'fs')
-rw-r--r--fs/ext2/ext2fs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ext2/ext2fs.c b/fs/ext2/ext2fs.c
index d13305bf90..c21d2d6172 100644
--- a/fs/ext2/ext2fs.c
+++ b/fs/ext2/ext2fs.c
@@ -724,7 +724,7 @@ int ext2fs_find_file
symlinknest = 0;
- if (!path || path[0] != '/') {
+ if (!path) {
return (0);
}
@@ -769,7 +769,7 @@ int ext2fs_open (char *filename) {
int len;
if (ext2fs_root == NULL) {
- return (0);
+ return (-1);
}
ext2fs_file = NULL;
status = ext2fs_find_file (filename, &ext2fs_root->diropen, &fdiro,
@@ -788,9 +788,9 @@ int ext2fs_open (char *filename) {
ext2fs_file = fdiro;
return (len);
- fail:
+fail:
ext2fs_free_node (fdiro, &ext2fs_root->diropen);
- return (0);
+ return (-1);
}