The only caller did not use the result.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
const char *ReadDirName(struct smb_Dir *dir_hnd, char **ptalloced)
{
- struct stat_ex st = {
- .st_ex_nlink = 0,
- };
const char *n;
char *talloced = NULL;
connection_struct *conn = dir_hnd->conn;
while ((n = vfs_readdirname(conn,
dir_hnd->fsp,
dir_hnd->dir,
- &st,
&talloced))) {
/* Ignore . and .. - we've already returned them. */
if (ISDOT(n) || ISDOTDOT(n)) {
const char *vfs_readdirname(connection_struct *conn,
struct files_struct *dirfsp,
void *p,
- SMB_STRUCT_STAT *sbuf,
char **talloced);
int vfs_ChDir(connection_struct *conn,
const struct smb_filename *smb_fname);
const char *vfs_readdirname(connection_struct *conn,
struct files_struct *dirfsp,
void *p,
- SMB_STRUCT_STAT *sbuf,
char **talloced)
{
+ struct stat_ex st = {
+ .st_ex_nlink = 0,
+ };
struct dirent *ptr= NULL;
const char *dname;
char *translated;
if (!p)
return(NULL);
- ptr = SMB_VFS_READDIR(conn, dirfsp, (DIR *)p, sbuf);
+ ptr = SMB_VFS_READDIR(conn, dirfsp, (DIR *)p, &st);
if (!ptr)
return(NULL);