From f52a025ac485694441096edff910da58761df94a Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Sun, 29 Oct 2023 14:49:20 +0100 Subject: [PATCH] libsmb: info-level SMB2_FIND_POSIX_INFORMATION doesn't return short name Signed-off-by: Ralph Boehme Reviewed-by: David Mulder --- source3/libsmb/pylibsmb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source3/libsmb/pylibsmb.c b/source3/libsmb/pylibsmb.c index efaed925ff0..00f7e010cf7 100644 --- a/source3/libsmb/pylibsmb.c +++ b/source3/libsmb/pylibsmb.c @@ -1892,12 +1892,10 @@ static NTSTATUS list_posix_helper(struct file_info *finfo, size = PyLong_FromUnsignedLongLong(finfo->size); /* * Build a dictionary representing the file info. - * Note: Windows does not always return short_name (so it may be None) */ - file = Py_BuildValue("{s:s,s:i,s:s,s:O,s:l,s:i,s:i,s:i,s:s,s:s}", + file = Py_BuildValue("{s:s,s:i,s:O,s:l,s:i,s:i,s:i,s:s,s:s}", "name", finfo->name, "attrib", (int)finfo->attr, - "short_name", finfo->short_name, "size", size, "mtime", convert_timespec_to_time_t(finfo->mtime_ts), -- 2.11.4.GIT