s3: Fix two arguments that broke when plumbing smb_filneame through dos_mode()
authorTim Prouty <tprouty@samba.org>
Thu, 9 Jul 2009 22:56:36 +0000 (15:56 -0700)
committerTim Prouty <tprouty@samba.org>
Thu, 9 Jul 2009 22:56:53 +0000 (15:56 -0700)
source3/smbd/dosmode.c

index ca926aa33c55a031e3bc05d7734f4289372a54a9..d3df80ad9177c1a485673768a4caae936827edad 100644 (file)
@@ -448,8 +448,8 @@ static bool get_stat_dos_flags(connection_struct *conn,
        if (S_ISDIR(smb_fname->st.st_ex_mode))
                *dosmode |= aDIR;
 
-       *dosmode |= set_sparse_flag(smb_fname->st);
-       *dosmode |= set_link_read_only_flag(smb_fname->st);
+       *dosmode |= set_sparse_flag(&smb_fname->st);
+       *dosmode |= set_link_read_only_flag(&smb_fname->st);
 
        return true;
 }