mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
* 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:
parent
8d173014e9
commit
8b8d7de7ca
@ -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>
|
2002-08-14 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* vfs.h [!USE_VFS]: Declare mc_setctl as static inline function
|
* vfs.h [!USE_VFS]: Declare mc_setctl as static inline function
|
||||||
|
@ -632,9 +632,7 @@ vfs_s_readdir (void *data)
|
|||||||
else
|
else
|
||||||
vfs_die ("Null in structure-can not happen");
|
vfs_die ("Null in structure-can not happen");
|
||||||
|
|
||||||
#ifndef DIRENT_LENGTH_COMPUTED
|
compute_namelen(&dir.dir);
|
||||||
dir.d_namlen = strlen (dir.dir.d_name);
|
|
||||||
#endif
|
|
||||||
info->cur = info->cur->next;
|
info->cur = info->cur->next;
|
||||||
|
|
||||||
return (void *)&dir;
|
return (void *)&dir;
|
||||||
|
@ -896,9 +896,7 @@ static void * s_readdir (void *data)
|
|||||||
|
|
||||||
strcpy (&(dir.dir.d_name [0]), (*info)->name);
|
strcpy (&(dir.dir.d_name [0]), (*info)->name);
|
||||||
|
|
||||||
#ifndef DIRENT_LENGTH_COMPUTED
|
compute_namelen (&dir.dir);
|
||||||
dir.d_namlen = strlen (dir.dir.d_name);
|
|
||||||
#endif
|
|
||||||
*info = (*info)->next_in_dir;
|
*info = (*info)->next_in_dir;
|
||||||
|
|
||||||
return (void *)&dir;
|
return (void *)&dir;
|
||||||
|
@ -748,9 +748,7 @@ static void *mcfs_readdir (void *info)
|
|||||||
cached_lstat_info = &mcfs_info->current->my_stat;
|
cached_lstat_info = &mcfs_info->current->my_stat;
|
||||||
mcfs_info->current = mcfs_info->current->next;
|
mcfs_info->current = mcfs_info->current->next;
|
||||||
|
|
||||||
#ifndef DIRENT_LENGTH_COMPUTED
|
compute_namelen (&mcfs_readdir_data.dent);
|
||||||
mcfs_readdir_data.dent.d_namlen = strlen (mcfs_readdir_data.dent.d_name);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return &mcfs_readdir_data;
|
return &mcfs_readdir_data;
|
||||||
}
|
}
|
||||||
|
@ -759,9 +759,7 @@ smbfs_readdir (void *info)
|
|||||||
pstrcpy (dirent_dest, smbfs_info->current->text);
|
pstrcpy (dirent_dest, smbfs_info->current->text);
|
||||||
smbfs_info->current = smbfs_info->current->next;
|
smbfs_info->current = smbfs_info->current->next;
|
||||||
|
|
||||||
#ifndef DIRENT_LENGTH_COMPUTED
|
compute_namelen(&smbfs_readdir_data.dent);
|
||||||
smbfs_readdir_data.dent.d_namlen = strlen (smbfs_readdir_data.dent.d_name);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return &smbfs_readdir_data;
|
return &smbfs_readdir_data;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user