]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - psftp.c
Log when -restrict-acl is in use.
[PuTTY.git] / psftp.c
diff --git a/psftp.c b/psftp.c
index 83dec9687b4f70c9fbde22df15b553c8e7342ff3..3b22741e2965c153e72f15a603633bb2708ec20f 100644 (file)
--- a/psftp.c
+++ b/psftp.c
@@ -2840,6 +2840,8 @@ static int psftp_connect(char *userhost, char *user, int portnumber)
     logctx = log_init(NULL, conf);
     console_provide_logctx(logctx);
 
+    platform_psftp_pre_conn_setup();
+
     err = back->init(NULL, &backhandle, conf,
                     conf_get_str(conf, CONF_host),
                     conf_get_int(conf, CONF_port),
@@ -2954,8 +2956,6 @@ int psftp_main(int argc, char *argv[])
     argv += i;
     back = NULL;
 
-    platform_psftp_post_option_setup();
-
     /*
      * If the loaded session provides a hostname, and a hostname has not
      * otherwise been specified, pop it in `userhost' so that