diff --git a/contrib/win32/openssh/config.h.vs b/contrib/win32/openssh/config.h.vs
index 69bdc8773..3e552848a 100644
--- a/contrib/win32/openssh/config.h.vs
+++ b/contrib/win32/openssh/config.h.vs
@@ -435,7 +435,7 @@
/* #undef HAVE_GETOPT_OPTRESET */
/* Define if your libraries define getpagesize() */
-#define HAVE_GETPAGESIZE 1
+/* #undef HAVE_GETPAGESIZE */
/* Define to 1 if you have the `getpeereid' function. */
/* #undef HAVE_GETPEEREID */
diff --git a/contrib/win32/openssh/openbsd_compat.vcxproj b/contrib/win32/openssh/openbsd_compat.vcxproj
index 0f2eaa6c7..5667162b6 100644
--- a/contrib/win32/openssh/openbsd_compat.vcxproj
+++ b/contrib/win32/openssh/openbsd_compat.vcxproj
@@ -75,7 +75,7 @@
-
+
@@ -125,7 +125,7 @@
-
+
diff --git a/contrib/win32/openssh/openbsd_compat.vcxproj.filters b/contrib/win32/openssh/openbsd_compat.vcxproj.filters
index 673ff8f34..135cbcfd0 100644
--- a/contrib/win32/openssh/openbsd_compat.vcxproj.filters
+++ b/contrib/win32/openssh/openbsd_compat.vcxproj.filters
@@ -129,7 +129,7 @@
Source Files
-
+
Source Files
@@ -278,7 +278,7 @@
Header Files
-
+
Header Files
diff --git a/sftp.c b/sftp.c
index ca5e68151..d9592d67a 100644
--- a/sftp.c
+++ b/sftp.c
@@ -2544,8 +2544,10 @@ main(int argc, char **argv)
}
break;
}
- if (argv + 1)
- file2 = *(argv + 1);
+
+ /* TODO: need to debug this. this parameter doesn't make sense
+ file2 = *(argv + 1);
+ */
if (!*host) {
fprintf(stderr, "Missing hostname\n");
diff --git a/ssh.c b/ssh.c
index 5c26eac28..9ba83a16c 100644
--- a/ssh.c
+++ b/ssh.c
@@ -1915,6 +1915,7 @@ ssh_session2(struct ssh *ssh, struct passwd *pw)
* NB. this can only happen after LocalCommand has completed,
* as it may want to write to stdout.
*/
+#ifndef WINDOWS /* TODO - implement dup2 for Windows */
if (!need_controlpersist_detach) {
if ((devnull = open(_PATH_DEVNULL, O_WRONLY)) == -1)
error("%s: open %s: %s", __func__,
@@ -1924,6 +1925,7 @@ ssh_session2(struct ssh *ssh, struct passwd *pw)
if (devnull > STDERR_FILENO)
close(devnull);
}
+#endif
/*
* If requested and we are not interested in replies to remote