Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mRemoteNG/PuTTYNG.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2020-01-30 09:40:21 +0300
committerSimon Tatham <anakin@pobox.com>2020-01-30 09:40:21 +0300
commite5f85fc2694c432718117c42c314097e7e9ed938 (patch)
treee4c6f1915d4d28248a772b3f5fc06cc156b9603d /psftp.c
parent6e85d3fe60e3356a35de42aaa0ccf26c78503b29 (diff)
Remove FLAG_SYNCAGENT.
This was the easiest flag to remove: nothing ever checks it at all! It was part of an abandoned early attempt to make Pageant requests asynchronous. The flag was added in commit 135abf244 (April 2003); the code that used it was #ifdef-ed out in commit 98d735fde (January 2004), and removed completely in commit f864265e3 (January 2017). We now have an actually working system for async agent requests on Windows, via the new named-pipe IPC. And we also have a perfectly good way to force a particular agent request to work synchronously: just pass NULL as the callback function pointer. All of that works just fine, without ever using this flag. So begone!
Diffstat (limited to 'psftp.c')
-rw-r--r--psftp.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/psftp.c b/psftp.c
index c7e2414b..cf9e88e3 100644
--- a/psftp.c
+++ b/psftp.c
@@ -2769,11 +2769,7 @@ int psftp_main(int argc, char *argv[])
bool sanitise_stderr = true;
char *batchfile = NULL;
- flags = 0
-#ifdef FLAG_SYNCAGENT
- | FLAG_SYNCAGENT
-#endif
- ;
+ flags = 0;
cmdline_tooltype = TOOLTYPE_FILETRANSFER;
sk_init();