VFS: Modify chmod to take a const struct smb_filename * instead of const char *
[samba.git] / source3 / smbd / dosmode.c
index ecc211c0a625176eb4b82128b5bbfd7e3b3ac25f..60761c2b306177180e30215e02b884c8395801a3 100644 (file)
@@ -766,7 +766,7 @@ int file_set_dosmode(connection_struct *conn, struct smb_filename *smb_fname,
                return -1;
        }
 
-       ret = SMB_VFS_CHMOD(conn, smb_fname->base_name, unixmode);
+       ret = SMB_VFS_CHMOD(conn, smb_fname, unixmode);
        if (ret == 0) {
                if(!newfile || (lret != -1)) {
                        notify_fname(conn, NOTIFY_ACTION_MODIFIED,