Ticket #7444: 7444_psftp.patch
File 7444_psftp.patch, 886 bytes (added by , 12 years ago) |
---|
-
src/putty/psftp.c
3052 3052 */ 3053 3053 if (!loaded_session) { 3054 3054 /* Try to load settings for `host' into a temporary config */ 3055 /* BEGIN FZ UNUSED 3055 3056 Config cfg2; 3056 3057 cfg2.host[0] = '\0'; 3057 3058 do_defaults(host, &cfg2); 3058 3059 if (cfg2.host[0] != '\0') { 3059 fzprintf(sftpVerbose, "psftp: Implicit session load."); 3060 fzprintf(sftpVerbose, "psftp: Implicit session load."); */ 3060 3061 /* Settings present and include hostname */ 3061 3062 /* Re-load data into the real config. */ 3063 /* FZ UNUSED 3062 3064 do_defaults(host, &cfg); 3063 } else { 3065 } else 3066 END FZ UNUSED */ 3067 { 3064 3068 /* Session doesn't exist or mention a hostname. */ 3065 3069 /* Use `host' as a bare hostname. */ 3066 3070 strncpy(cfg.host, host, sizeof(cfg.host) - 1);