ReadDirName happily takes NULL for "sbuf"
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
{
const char *dname = NULL;
char *dname_talloced = NULL;
- SMB_STRUCT_STAT st;
bool found = false;
char *translated = NULL;
struct smb_filename *smb_fname = NULL;
/* ReadDirName() returns Windows "encoding" */
dname = ReadDirName(vfs->currentdir,
&vfs->currentdir_offset,
- &st,
+ NULL,
&dname_talloced);
if (dname == NULL) {
break;