revert adding motw for sftp uploads (#665)

This commit is contained in:
Tess Gauthier 2023-02-15 21:22:16 +00:00 committed by GitHub
parent ff62288f8e
commit e9b1317613
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 13 deletions

View File

@ -882,19 +882,6 @@ process_write(u_int32_t id)
(r = sshbuf_get_string(iqueue, &data, &len)) != 0)
fatal_fr(r, "parse");
#ifdef WINDOWS
char* filepath = resolved_path_utf8(handle_to_name(handle));
if (filepath == NULL) {
debug("cannot convert handle %d to utf8 filepath for mark of the web", handle);
}
else {
if (add_mark_of_web(filepath) == -1) {
debug("add_mark_of_web to %s failed", filepath);
}
free(filepath);
}
#endif // WINDOWS
debug("request %u: write \"%s\" (handle %d) off %llu len %zu",
id, handle_to_name(handle), handle, (unsigned long long)off, len);
fd = handle_to_fd(handle);