From 567c86d7891684dd19e8987b4c302d6d2f9ab7d2 Mon Sep 17 00:00:00 2001 From: Rob Swindell <rob@synchro.net> Date: Sun, 2 May 2021 17:14:12 -0700 Subject: [PATCH] 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. --- src/smblib/smblib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/smblib/smblib.c b/src/smblib/smblib.c index ab10277223..952c640896 100644 --- a/src/smblib/smblib.c +++ b/src/smblib/smblib.c @@ -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++; -- GitLab