Skip to main content

build_symlink_error_response

Function build_symlink_error_response 

Source
pub fn build_symlink_error_response(
    substitute: &str,
    print: &str,
    unparsed_path_len: u16,
    relative: bool,
) -> Vec<u8> 
Expand description

Build the SMB2 ERROR response body ([MS-SMB2] §2.2.2) carrying a Symbolic Link Error Response ([MS-SMB2] §2.2.2.2.1) for STATUS_STOPPED_ON_SYMLINK.

substitute/print are the symlink target (substitute and display names); unparsed_path_len is the byte length of the request path that follows the symlink; relative sets SYMLINK_FLAG_RELATIVE.