]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: libsmb: Info level SMB_FIND_EA_SIZE encodes attibutes as a uint16, not a uint8.
authorJeremy Allison <jra@samba.org>
Mon, 1 Jun 2020 18:33:13 +0000 (11:33 -0700)
committerKarolin Seeger <kseeger@samba.org>
Fri, 26 Jun 2020 07:52:26 +0000 (07:52 +0000)
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)

source3/libsmb/clilist.c

index deeb794ffe5b7b537f3fef03231b2848514d0def..4a32fc45fa6c277557af69e7ae15eb4d944b15f5 100644 (file)
@@ -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! */