1
0
Fork 0
forked from nuttx/nuttx-update

fs/cromfs/fs_cromfs.c: Back out an erroneous change I made during a code review. Noted by Jussi Kivilinna.

This commit is contained in:
Gregory Nutt 2019-12-02 08:44:50 -06:00
parent 4e2b2e8ce7
commit b599aa0cee

View file

@ -1045,7 +1045,7 @@ static int cromfs_readdir(struct inode *mountpt, struct fs_dirent_s *dir)
finfo("Entry %lu: %s\n", (unsigned long)offset, name);
strncpy(dir->fd_dir.d_name, name, NAME_MAX + 1);
switch ((node->cn_mode & s_IFTGT) != 0)
switch (node->cn_mode & s_IFTGT)
{
case S_IFDIR: /* Directory */
dir->fd_dir.d_type = DTYPE_DIRECTORY;