* direntry.c (vfs_s_readdir): Use compute_namelen().

* extfs.c (s_readdir): Likewise.
* mcfs.c (mcfs_readdir): Likewise.
* smbfs.c (smbfs_readdir): Likewise.
This commit is contained in:
Pavel Roskin 2002-08-15 19:38:17 +00:00
parent 8d173014e9
commit 8b8d7de7ca
5 changed files with 11 additions and 12 deletions

View File

@ -1,3 +1,10 @@
2002-08-15 Pavel Roskin <proski@gnu.org>
* direntry.c (vfs_s_readdir): Use compute_namelen().
* extfs.c (s_readdir): Likewise.
* mcfs.c (mcfs_readdir): Likewise.
* smbfs.c (smbfs_readdir): Likewise.
2002-08-14 Pavel Roskin <proski@gnu.org>
* vfs.h [!USE_VFS]: Declare mc_setctl as static inline function

View File

@ -632,9 +632,7 @@ vfs_s_readdir (void *data)
else
vfs_die ("Null in structure-can not happen");
#ifndef DIRENT_LENGTH_COMPUTED
dir.d_namlen = strlen (dir.dir.d_name);
#endif
compute_namelen(&dir.dir);
info->cur = info->cur->next;
return (void *)&dir;

View File

@ -896,9 +896,7 @@ static void * s_readdir (void *data)
strcpy (&(dir.dir.d_name [0]), (*info)->name);
#ifndef DIRENT_LENGTH_COMPUTED
dir.d_namlen = strlen (dir.dir.d_name);
#endif
compute_namelen (&dir.dir);
*info = (*info)->next_in_dir;
return (void *)&dir;

View File

@ -748,9 +748,7 @@ static void *mcfs_readdir (void *info)
cached_lstat_info = &mcfs_info->current->my_stat;
mcfs_info->current = mcfs_info->current->next;
#ifndef DIRENT_LENGTH_COMPUTED
mcfs_readdir_data.dent.d_namlen = strlen (mcfs_readdir_data.dent.d_name);
#endif
compute_namelen (&mcfs_readdir_data.dent);
return &mcfs_readdir_data;
}

View File

@ -759,9 +759,7 @@ smbfs_readdir (void *info)
pstrcpy (dirent_dest, smbfs_info->current->text);
smbfs_info->current = smbfs_info->current->next;
#ifndef DIRENT_LENGTH_COMPUTED
smbfs_readdir_data.dent.d_namlen = strlen (smbfs_readdir_data.dent.d_name);
#endif
compute_namelen(&smbfs_readdir_data.dent);
return &smbfs_readdir_data;
}