diff options
author | Jeremy Allison <jra@samba.org> | 2020-06-01 11:33:13 -0700 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2020-06-26 07:52:26 +0000 |
commit | 50ff83cb3e3bc9247c639308057b7c927c266701 (patch) | |
tree | 9ce343d2f3812328dc539fb04ddf2058f54db5e4 | |
parent | 7db0eb75680a8af464ad26122331e0b808bc5aa5 (diff) | |
download | samba-50ff83cb3e3bc9247c639308057b7c927c266701.tar.gz |
s3: libsmb: Info level SMB_FIND_EA_SIZE 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>
(cherry picked from commit 6463f2612a662f217af18455206afde122323375)
-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 deeb794ffe5..4a32fc45fa6 100644 --- a/source3/libsmb/clilist.c +++ b/source3/libsmb/clilist.c @@ -211,7 +211,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, 30); p += 31; /* check for unisys! */ |