]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
pylibsmb: Fix a typo
authorVolker Lendecke <vl@samba.org>
Tue, 24 Sep 2024 08:59:23 +0000 (10:59 +0200)
committerRalph Boehme <slow@samba.org>
Thu, 26 Sep 2024 16:35:55 +0000 (16:35 +0000)
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 <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Thu Sep 26 16:35:55 UTC 2024 on atb-devel-224

python/samba/tests/smb3unix.py
source3/libsmb/pylibsmb.c

index 612a54e0f79f82bc8fe03fc2ee2572d3afe35d1e..d8e8783670a8eae7e2f1294931b01bbd97ef16a6 100644 (file)
@@ -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)
index 25b89380dd3d6704675eb5b348004303ba677aa1..8594b2b7315e47f321e47d13638bd59e98514715 100644 (file)
@@ -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),