mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-18 00:10:04 +00:00
48500b76a6
Submitted by: Issei Suzuki <issei@jp.FreeBSD.ORG> Upgrade to 1.2.27. # I'm not maintainer but it seems that torstenb is too busy to # look the PR and many people want new version ssh port.
35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
--- newchannels.c.orig Wed May 12 20:19:27 1999
|
|
+++ newchannels.c Sun Jun 6 01:49:22 1999
|
|
@@ -282,6 +282,10 @@
|
|
#endif /* NEED_SYS_SYSLOG_H */
|
|
#endif /* LIBWRAP */
|
|
|
|
+#ifdef __FreeBSD__
|
|
+#include <utmp.h>
|
|
+#endif
|
|
+
|
|
/* Directory in which the fake unix-domain X11 displays reside. */
|
|
#ifndef X11_DIR
|
|
#define X11_DIR "/tmp/.X11-unix"
|
|
@@ -1891,6 +1895,9 @@
|
|
fatal("gethostname: %.100s", strerror(errno));
|
|
snprintf(buf, sizeof(buf),
|
|
"%.400s:%d.%d", hostname, display_number, screen_number);
|
|
+#ifdef __FreeBSD__
|
|
+ trimdomain(buf, UT_HOSTSIZE);
|
|
+#endif
|
|
#else /* HAVE_GETHOSTNAME */
|
|
if (uname(&uts) < 0)
|
|
fatal("uname: %.100s", strerror(errno));
|
|
@@ -2412,6 +2419,10 @@
|
|
ssh-agent connections on your system */
|
|
old_umask = umask(S_IRUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH);
|
|
|
|
+ /* Make sure the socket doesn't already exist, left over from a system
|
|
+ crash perhaps. */
|
|
+ unlink(channel_forwarded_auth_socket_name);
|
|
+
|
|
if (bind(sock, (struct sockaddr *)&sunaddr, AF_UNIX_SIZE(sunaddr)) < 0)
|
|
packet_disconnect("Agent socket bind failed: %.100s", strerror(errno));
|
|
|