All of lore.kernel.org
 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 related	[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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.