]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: file_set_dosmode(), can_write_to_file() -> can_write_to_fsp().
authorJeremy Allison <jra@samba.org>
Wed, 2 Jun 2021 19:01:17 +0000 (12:01 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 9 Jun 2021 13:14:30 +0000 (13:14 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/dosmode.c

index 92dd60c089ec04460ee4f212d7bbd888c7b16953..dcb5bec411948f6510fa663eb75cd9f946a52226 100644 (file)
@@ -1074,9 +1074,7 @@ int file_set_dosmode(connection_struct *conn,
                bits on a file. Just like file_ntimes below.
        */
 
-       if (!can_write_to_file(conn,
-                       conn->cwd_fsp,
-                       smb_fname))
+       if (!can_write_to_fsp(smb_fname->fsp))
        {
                errno = EACCES;
                return -1;