Skip to content
Snippets Groups Projects
Commit ba1f38cc authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

When adding a msg/file header, remove the DELETE attribute

When moving or renewing files, they're first removed and then added and they were being added with the DELETE attribute set. The filenames are displayed in red when staged for deletion/removal, so that's how I noticed. Oops.
parent 32df7843
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2099 passed
......@@ -1662,6 +1662,7 @@ int smb_addmsghdr(smb_t* smb, smbmsg_t* msg, int storage)
msg->idx.offset=(uint32_t)(smb->status.header_offset + l);
msg->idx_offset=smb->status.total_msgs;
msg->hdr.attr &= ~MSG_DELETE;
i=smb_putmsg(smb,msg);
if(i==SMB_SUCCESS) {
smb->status.last_msg++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment