Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
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"
share,
self.lp,
self.creds,
+ posix=posix,
force_smb1=smb1)
return conn