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

tests: Reparse point dirs are shown as REPARSE_POINT|DIRECTORY

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Volker Lendecke
2023-01-09 18:30:05 +01:00
committed by Ralph Boehme
parent 70f424657f
commit 63d877342a

View File

@@ -251,6 +251,15 @@ class ReparsePoints(samba.tests.libsmb.LibsmbTests):
conn.delete_on_close(dir_fd, 1)
conn.close(dir_fd)
dirents = conn.list("", dirname)
self.assertEqual(
dirents[0]["attrib"],
libsmb.FILE_ATTRIBUTE_REPARSE_POINT|
libsmb.FILE_ATTRIBUTE_DIRECTORY)
self.assertEqual(dirents[0]["reparse_tag"], 0x80000025)
self.clean_file(conn, dirname)
# Only empty directories can carry reparse points
def test_create_reparse_nonempty_directory(self):