symlinknest = 0;
- if (!path || path[0] != '/') {
+ if (!path) {
return (0);
}
int len;
if (ext2fs_root == NULL) {
- return (0);
+ return (-1);
}
ext2fs_file = NULL;
status = ext2fs_find_file (filename, &ext2fs_root->diropen, &fdiro,
ext2fs_file = fdiro;
return (len);
- fail:
+fail:
ext2fs_free_node (fdiro, &ext2fs_root->diropen);
- return (0);
+ return (-1);
}