From 93db1c7f3bb4209b5d69b879bc506ca72b635bd7 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 24 Sep 2024 10:59:23 +0200 Subject: [PATCH] pylibsmb: Fix a typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pylibsmb is supposed to be used only internally, at least I hope this has not made it into an API that is perceived to be publically used. Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme Autobuild-User(master): Ralph Böhme Autobuild-Date(master): Thu Sep 26 16:35:55 UTC 2024 on atb-devel-224 --- python/samba/tests/smb3unix.py | 2 +- source3/libsmb/pylibsmb.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/samba/tests/smb3unix.py b/python/samba/tests/smb3unix.py index 612a54e0f79..d8e8783670a 100644 --- a/python/samba/tests/smb3unix.py +++ b/python/samba/tests/smb3unix.py @@ -321,7 +321,7 @@ class Smb3UnixTests(samba.tests.libsmb.LibsmbTests): self.assertTrue(stat.S_ISREG(found_unixmode)) self.assertEqual(found_files[fname]['nlink'], 1) self.assertEqual(found_files[fname]['size'], 4) - self.assertEqual(found_files[fname]['allocaction_size'], + self.assertEqual(found_files[fname]['allocation_size'], 4096) self.assertEqual(found_files[fname]['attrib'], libsmb.FILE_ATTRIBUTE_ARCHIVE) diff --git a/source3/libsmb/pylibsmb.c b/source3/libsmb/pylibsmb.c index 25b89380dd3..8594b2b7315 100644 --- a/source3/libsmb/pylibsmb.c +++ b/source3/libsmb/pylibsmb.c @@ -1996,7 +1996,7 @@ static NTSTATUS list_posix_helper(struct file_info *finfo, finfo->attr, "size", finfo->size, - "allocaction_size", + "allocation_size", finfo->allocated_size, "btime", convert_timespec_to_time_t(finfo->btime_ts),