1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-18 08:23:51 +03:00

tests: Show that the case sensitive large dir optimization is broken

We don't normalize the directories

Bug: https://bugzilla.samba.org/show_bug.cgi?id=15313
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke
2023-02-17 15:41:12 +01:00
parent a9301d8f29
commit 342d8f6a0a
2 changed files with 10 additions and 0 deletions

View File

@@ -193,6 +193,15 @@ class LibsmbTestCase(samba.tests.libsmb.LibsmbTests):
finally:
c.deltree(testdir)
def test_libsmb_TortureDirCaseSensitive(self):
c = libsmb.Conn(self.server_ip, "lowercase", self.lp, self.creds)
c.mkdir("subdir")
c.mkdir("subdir/b")
ret = c.chkpath("SubDir/b")
c.rmdir("subdir/b")
c.rmdir("subdir")
self.assertTrue(ret)
if __name__ == "__main__":
import unittest
unittest.main()