]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: libsmb: Info level SMB_FIND_INFO_STANDARD encodes attibutes as a uint16, not...
authorJeremy Allison <jra@samba.org>
Mon, 1 Jun 2020 19:01:13 +0000 (12:01 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 3 Jun 2020 04:54:38 +0000 (04:54 +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>
source3/libsmb/clilist.c

index d0f67ed25bdc52c4747bcf4c8afe001136b4e5e5..e00cdc4921c5ec2294be31756b8db1690cac60e2 100644 (file)
@@ -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) {