From: Ralph Boehme Date: Tue, 26 Nov 2024 13:53:45 +0000 (+0100) Subject: tests: prepare reparsepoints.py for using POSIX on the SMB2 connection X-Git-Tag: tdb-1.4.13~463 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8c468c6e5c8bb3f1b8e8b2d65a5a68db158a03c7;p=thirdparty%2Fsamba.git tests: prepare reparsepoints.py for using POSIX on the SMB2 connection Signed-off-by: Ralph Boehme Reviewed-by: Volker Lendecke --- diff --git a/python/samba/tests/reparsepoints.py b/python/samba/tests/reparsepoints.py index 40d7de3f63b..42f301f4e24 100644 --- a/python/samba/tests/reparsepoints.py +++ b/python/samba/tests/reparsepoints.py @@ -22,9 +22,12 @@ from samba import reparse_symlink import samba.tests.libsmb import stat +def posix_context(mode): + return (libsmb.SMB2_CREATE_TAG_POSIX, mode.to_bytes(4, 'little')) + class ReparsePoints(samba.tests.libsmb.LibsmbTests): - def connection(self): + def connection(self, posix=False): share = samba.tests.env_get_var_value("SHARENAME", allow_missing=True) if not share: share = "tmp" @@ -34,6 +37,7 @@ class ReparsePoints(samba.tests.libsmb.LibsmbTests): share, self.lp, self.creds, + posix=posix, force_smb1=smb1) return conn