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

tests: move wire_mode_to_unix() to libsmb.py

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
Ralph Boehme
2024-11-26 14:52:52 +01:00
parent 02cc280710
commit d46bfc5d50
2 changed files with 8 additions and 7 deletions

View File

@@ -70,13 +70,6 @@ class Smb3UnixTests(samba.tests.libsmb.LibsmbTests):
return (conn1, conn2)
def wire_mode_to_unix(self, wire):
mode = libsmb.wire_mode_to_unix(wire)
type = stat.S_IFMT(mode)
perms = mode & (stat.S_IRWXU|stat.S_IRWXG|stat.S_IRWXO|
stat.S_ISUID|stat.S_ISGID|stat.S_ISVTX)
return (type, perms)
def test_negotiate_context_posix(self):
c = libsmb.Conn(
self.server_ip,