mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] fixup! detect_fs: use device instead of file
@ 2015-10-07 15:52 Peter Mamonov
  2015-10-09  6:31 ` Sascha Hauer
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Mamonov @ 2015-10-07 15:52 UTC (permalink / raw)
  To: barebox; +Cc: Peter Mamonov, vicencb

---
 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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-10-09 17:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-07 15:52 [PATCH] fixup! detect_fs: use device instead of file Peter Mamonov
2015-10-09  6:31 ` Sascha Hauer
2015-10-09 11:11   ` Peter Mamonov
2015-10-09 16:21     ` Sascha Hauer
2015-10-09 17:16       ` Vicente

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox