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),