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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user