[PATCH] fixup! detect_fs: use device instead of file
Peter Mamonov
pmamonov at gmail.com
Wed Oct 7 08:52:57 PDT 2015
---
fs/fs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/fs.c b/fs/fs.c
index c041e41..6283cea 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -1201,7 +1201,7 @@ EXPORT_SYMBOL(register_fs_driver);
static const char *detect_fs(const char *filename)
{
- enum filetype type = cdev_detect_type(filename);
+ enum filetype type = cdev_detect_type(basename(filename));
struct driver_d *drv;
struct fs_driver_d *fdrv;
--
2.1.4
More information about the barebox
mailing list