[gvfs] sftp: force openpty(3) on BSD



commit 9f5585c3d73e7013ad4e9b0e065e75646daf1bc6
Author: Antoine Jacoutot <ajacoutot gnome org>
Date:   Wed Jan 15 14:26:22 2014 +0100

    sftp: force openpty(3) on BSD
    
    Implementation of grantpt() and unlockpt() on FreeBSD and OpenBSD does
    not conform to IEEE Std 1003.1-2008 (``POSIX.1'') so force using the
    openpty(3) code path so that the key fingerprint and login/password
    dialogs instead of just failing or falling back to SSH_ASKPASS.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=722001

 daemon/pty_open.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/daemon/pty_open.c b/daemon/pty_open.c
index d9d44f1..ca9a4b7 100644
--- a/daemon/pty_open.c
+++ b/daemon/pty_open.c
@@ -78,6 +78,14 @@
 #undef HAVE_UNIX98_PTY
 #endif
 
+/*
+ * force openpty(3) on BSD
+ * https://bugzilla.gnome.org/show_bug.cgi?id=722001
+ */
+#if defined(__FreeBSD__) || defined(__OpenBSD__)
+#undef HAVE_UNIX98_PTY
+#endif
+
 int _pty_set_size(int master, int columns, int rows);
 
 /* Solaris does not have the login_tty() function so implement locally. */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]