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

smbd: Return NT_STATUS_STOPPED_ON_SYMLINK

Do this for "follow symlinks = now" and smb2 unix extensions

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Volker Lendecke
2024-11-20 12:56:33 +01:00
committed by Ralph Boehme
parent cc0ed15fec
commit 34be8ef596
5 changed files with 161 additions and 44 deletions

View File

@@ -1343,11 +1343,17 @@ EOF
return 1
fi
echo "$out" | grep 'NT_STATUS_OBJECT_NAME_NOT_FOUND'
if [ "$PROTOCOL" = "SMB3" ]; then
expected_error="NT_STATUS_STOPPED_ON_SYMLINK"
else
expected_error="NT_STATUS_OBJECT_NAME_NOT_FOUND"
fi
echo "$out" | grep "$expected_error"
ret=$?
if [ $ret -ne 0 ]; then
echo "$out"
echo "failed - should get NT_STATUS_OBJECT_NAME_NOT_FOUND getting \\nosymlinks\\source"
echo "failed - should get ${expected_error} getting \\nosymlinks\\source"
return 1
fi