diff --git a/fs/exfat/config.h b/fs/exfat/config.h index ff492f149b5..b7fac327d8e 100644 --- a/fs/exfat/config.h +++ b/fs/exfat/config.h @@ -1,6 +1,8 @@ /* libexfat/config.h. Generated from config.h.in by configure. */ /* libexfat/config.h.in. Generated from configure.ac by autoheader. */ +#include + /* Name of package */ #define PACKAGE "exfat" @@ -44,3 +46,7 @@ /* Enable pread() and pwrite(). */ #define _XOPEN_SOURCE 500 + +#ifndef CONFIG_LIBC_LOCALTIME +void tzset(void); +#endif diff --git a/fs/exfat/exfat_vfs.c b/fs/exfat/exfat_vfs.c index f15e91b6977..efd5854f276 100644 --- a/fs/exfat/exfat_vfs.c +++ b/fs/exfat/exfat_vfs.c @@ -221,7 +221,7 @@ static int exfatfs_getpath(FAR struct inode *inode, } path += strlen(path); - exfat_get_name(node, path); + strcpy(path, node->name); if (node->child) { strcat(path, "/"); @@ -930,7 +930,7 @@ static int exfatfs_readdir(FAR struct inode *mountpt, dir->fd_dir.d_type = DTYPE_FILE; } - exfat_get_name(priv->entry, dir->fd_dir.d_name); + strcpy(dir->fd_dir.d_name, priv->entry->name); node = priv->entry; priv->entry = exfat_readdir(&priv->it); exfatfs_release_node(&fs->ef, node);