ReadDirName happily takes NULL for "sbuf"
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
long dirpos = 0;
const char *dname = NULL;
char *talloced = NULL;
- SMB_STRUCT_STAT st;
struct connection_struct *conn = fsp->conn;
struct smb_Dir *dir_hnd = NULL;
return status;
}
- while ((dname = ReadDirName(dir_hnd, &dirpos, &st, &talloced))) {
+ while ((dname = ReadDirName(dir_hnd, &dirpos, NULL, &talloced))) {
struct smb_filename *smb_dname_full = NULL;
struct smb_filename *direntry_fname = NULL;
char *fullname = NULL;