Index: uspace/srv/fs/fat/fat_ops.c
===================================================================
--- uspace/srv/fs/fat/fat_ops.c	(revision 711e33fc78f9caf16430c990f974dd3f6cbfe3a6)
+++ uspace/srv/fs/fat/fat_ops.c	(revision 5d494b3f7a42392f3a69ba78ee3c67c3969e5041)
@@ -43,4 +43,5 @@
 #include <errno.h>
 #include <string.h>
+#include <endian.h>
 
 #define FAT_NAME_LEN		8
@@ -136,5 +137,5 @@
 			/* hit */
 			void *node = fat_node_get(parentp->dev_handle,
-			    (fs_index_t)d->firstc);
+			    (fs_index_t)uint16_t_le2host(d->firstc));
 			fat_dentry_put(d);
 			return node;
