*
* Update the file attributes with the one provided.
*/
-static void set_remote_attr(char *filename, uint16 new_attr, int mode)
+static void set_remote_attr(const char *filename, uint16 new_attr, int mode)
{
extern struct cli_state *cli;
uint16 old_attr;
goto out;
}
+ if (t->mode.reset) {
+ set_remote_attr(full_dos_path, FILE_ATTRIBUTE_ARCHIVE, ATTR_UNSET);
+ }
+
full_unix_path = talloc_asprintf(ctx, ".%s", full_dos_path);
string_replace(full_unix_path, '\\', '/');
entry = archive_entry_new();