From: Ralph Boehme Date: Sun, 29 Oct 2023 13:49:20 +0000 (+0100) Subject: libsmb: info-level SMB2_FIND_POSIX_INFORMATION doesn't return short name X-Git-Tag: talloc-2.4.2~964 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f52a025ac485694441096edff910da58761df94a;p=thirdparty%2Fsamba.git libsmb: info-level SMB2_FIND_POSIX_INFORMATION doesn't return short name Signed-off-by: Ralph Boehme Reviewed-by: David Mulder --- 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),