diff options
author | Jeremy Allison <jra@samba.org> | 2020-06-01 12:01:13 -0700 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2020-06-03 04:54:38 +0000 |
commit | be52f87c376a8f71b2de4aa52f25818cad2b160e (patch) | |
tree | cf19ff5d4a56654b55d7caae4483d29049c93041 /source3/libsmb/clilist.c | |
parent | 5e3e6c4c0c70e171607f4b5351bd8ec146730f08 (diff) | |
download | samba-be52f87c376a8f71b2de4aa52f25818cad2b160e.tar.gz |
s3: libsmb: Info level SMB_FIND_INFO_STANDARD encodes attibutes as a uint16, not a uint8.
We will need this to detect FILE_ATTRIBUTE_REPARSE_POINT in a later commit.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14391
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3/libsmb/clilist.c')
-rw-r--r-- | source3/libsmb/clilist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/clilist.c b/source3/libsmb/clilist.c index d0f67ed25bd..e00cdc4921c 100644 --- a/source3/libsmb/clilist.c +++ b/source3/libsmb/clilist.c @@ -152,7 +152,7 @@ static size_t interpret_long_filename(TALLOC_CTX *ctx, finfo->mtime_ts = convert_time_t_to_timespec( make_unix_date2(p+12, smb1cli_conn_server_time_zone(cli->conn))); finfo->size = IVAL(p,16); - finfo->mode = CVAL(p,24); + finfo->mode = SVAL(p,24); len = CVAL(p, 26); p += 27; if (recv_flags2 & FLAGS2_UNICODE_STRINGS) { |