Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit ba1f38cc authored by Rob Swindell's avatar Rob Swindell 💬

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
Pipeline #2099 passed with stage
in 9 minutes and 14 seconds
......@@ -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++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment