From: Volker Lendecke Date: Fri, 2 Dec 2022 09:20:06 +0000 (+0100) Subject: tests: Try setting a 0-sized reparse point X-Git-Tag: talloc-2.4.0~403 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96580c8e1957776a8564fc73363f30259827a686;p=thirdparty%2Fsamba.git tests: Try setting a 0-sized reparse point Signed-off-by: Volker Lendecke Reviewed-by: David Mulder --- diff --git a/python/samba/tests/reparsepoints.py b/python/samba/tests/reparsepoints.py index ed683bcec50..ee90b224dd3 100644 --- a/python/samba/tests/reparsepoints.py +++ b/python/samba/tests/reparsepoints.py @@ -74,6 +74,13 @@ class ReparsePoints(samba.tests.libsmb.LibsmbTests): filename, DesiredAccess=sec.SEC_FILE_WRITE_ATTRIBUTE, CreateDisposition=libsmb.FILE_CREATE) + + with self.assertRaises(NTSTATUSError) as e: + conn.fsctl(fd, libsmb.FSCTL_SET_REPARSE_POINT, b'', 0) + + self.assertEqual(e.exception.args[0], + ntstatus.NT_STATUS_INVALID_BUFFER_SIZE) + b = reparse_symlink.put(0x80000025, 0, b'asdfasdfasdfasdfasdfasdf') conn.fsctl(fd, libsmb.FSCTL_SET_REPARSE_POINT, b, 0) b = reparse_symlink.put(0x80000026, 0, b'asdfasdfasdfasdfasdfasdf')