search for: maxhostnamelen

Displaying 20 results from an estimated 45 matches for "maxhostnamelen".

2003 Oct 30
1
Patch to make sshd work on multihomed systems
...1.h" #include "packet.h" #include "xmalloc.h" +#include "canohost.h" #include "log.h" #include "servconf.h" #include "uidswap.h" @@ -71,12 +72,23 @@ #endif krb5_error_code problem; krb5_ccache ccache = NULL; + char localname[MAXHOSTNAMELEN]; + char *socketname; if (authctxt->pw == NULL) return (0); temporarily_use_uid(authctxt->pw); + socketname = get_local_name(packet_get_connection_in()); + if (socketname) { + strlcpy(localname, socketname, MAXHOSTNAMELEN); + xfree(socketname); + } else if (gethostname(localname,...
2001 Oct 26
1
MAXHOSTNAMELEN and Solaris 2.5
Solaris 2.5 does not seem to define MAXHOSTNAMELEN, and a compilation of vanilla OpenSSH 2.9.9p2 fails: > gcc -g -O2 -Wall -Wpointer-arith -Wno-uninitialized -I. -I. > -I/usr/local/ssl/include -I/usr/local/include > -DETCDIR=\"/usr/local/etc\" -D_PATH_SSH_PROGRAM=\"/usr/local/bin/ssh\" > -D_PATH_SSH_ASKPASS_DEFAULT...
2015 Feb 24
4
Call for testing: OpenSSH 6.8
...due to the > missing <err.h>. > > I noticed one of the changes was about HOST_NAME_MAX but I don't > think that change addresses the real issue on at least these old > Solaris systems. It looks to me like the fall back in defines.h > was not activated because Solaris has MAXHOSTNAMELEN in <netdb.h> > which has not been included when defines.h tries to find a fall back > HOST_NAME_MAX. > > Looking at sshd.c with gcc -dD -E confirms it as defines.h now set > HOST_NAME_MAX to 255 and later <netdb.h> is included which then > defines MAXHOSTNAMELEN to 256...
2000 Dec 30
1
MAXHOSTNAMELEN
ChangeLog 20001230 - (bal) if no MAXHOSTNAMELEN is defined. Default to 64 character defination. Suggested by Christian Kurz <shorty at debain.org> This change causes compiler warnings on UnixWare 7, Solaris 7, others? ... gcc -g -O2 -Wall -I/usr/local/include -I/usr/local/ssl/include -I. -Isrc -DETCDI R=\"/usr/local/etc\" -D...
2002 Apr 10
1
openssh-3.1p1 on GNU/Hurd
Hi, I've gone and ported the latest version of openssh, 3.1p1, to GNU/Hurd. I've tried to learn from the other threads on this topic, but I still had to get rid of MAXHOSTNAMELEN where I could. James A. Morrison diff -urN openssh-3.1p1.old/Makefile.in openssh-3.1p1/Makefile.in --- openssh-3.1p1.old/Makefile.in Tue Feb 26 14:24:22 2002 +++ openssh-3.1p1/Makefile.in Tue Apr 9 16:16:49 2002 @@ -54,7 +54,7 @@ SSHOBJS= ssh.o sshconnect.o sshconnect1.o sshconnect2.o sshtty....
2015 Feb 23
2
Call for testing: OpenSSH 6.8
On Mon, 23 Feb 2015, Tom G. Christensen wrote: > On 23/02/15 20:31, Damien Miller wrote: > > Thanks - I just committed a fix: > > > <snip patch> > > Thanks, unfortunately you missed the one in packet.h. > > In file included from ssh_api.h:31:0, > from ssh_api.c:21: > packet.h:38:23: fatal error: sys/queue.h: No such file or directory
2000 Dec 27
1
patch to support hurd-i386.
....0p1-/ssh-keygen.c openssh-2.2.0p1/ssh-keygen.c --- openssh-2.2.0p1-/ssh-keygen.c Wed Aug 23 02:46:24 2000 +++ openssh-2.2.0p1/ssh-keygen.c Sun Oct 29 16:44:50 2000 @@ -68,7 +68,7 @@ static const char *__progname = "ssh-keygen"; #endif /* HAVE___PROGNAME */ -char hostname[MAXHOSTNAMELEN]; +char *hostname; void ask_filename(struct passwd *pw, const char *prompt) @@ -525,10 +525,24 @@ printf("You don't exist, go away!\n"); exit(1); } - if (gethostname(hostname, sizeof(hostname)) < 0) { - perror("ge...
2001 Jan 04
0
patch for the HURD
This is a small/trivial patch to get HURD to _compile_ (I haven't gotten PRNG to work yet) openssh. All it does is define MAXHOSTNAMELEN in defines.h if it isn't already defined (there may need to be a library loaded first, or you may want to incorporate that patch into canohost.c instead of defines.h). Anyway, small patch for canohost.c and defines.h because HURD doesn't use MAXHOSTNAMELEN Jonathan Bartlett -- PGP infor...
2014 May 06
6
[Bug 2239] New: ssh-keygen cannot handle Linux with 64 char long hostname
...ttachment 2434 --> https://bugzilla.mindrot.org/attachment.cgi?id=2434&action=edit patch I've tried to set set hostname on my linux box to 64 characters which is the maximum supported by Linux. This works fine but breaks ssh-keygen (and possibly other openssh tools) because Linux sets MAXHOSTNAMELEN to 64 which does not account for trailing zero. I've tested this on OEL 6.5 (2.6.32-431.3.1.el6 kernel) and openssh-5.3p1-94.el6.x86_64 OEL 6.5 (2.6.32-431.3.1.el6 kernel) and OpenSSH_6.6p1 Fedora 20 (3.15.0-rc2+ kernel) and openssh-6.4p1-3.fc20.x86_64 The above root cause seems like a inten...
2001 Jul 23
1
forwarded message from mouring@etoh.eviladmin.org
...to accept patches for them. But from > what I'm reading on the Hurd summary mailinglist it may be a long time. We are POSIX compatible (modulo bugs), at least we make the claim. We are happy to check the standard for each individual concern about compatibility you might raise. Concerning MAXHOSTNAMELEN, this symbol is widely spread on UNIX and other systems, but it is not defined by any released version of POSIX. The Single Unix Specification says that hostnames are limited to 255 characters, however, the upcoming POSIX draft which is supposed to cover also the area that SUSv2 does, does fix thi...
2008 Jul 04
1
Samba 3.2.0 doesn't compile under Solaris8
...non-shared library bin/libtalloc.a Compiling lib/replace/replace.c Compiling lib/replace/snprintf.c Compiling lib/replace/getpass.c Compiling lib/replace/strptime.c Compiling lib/replace/timegm.c Compiling lib/replace/inet_aton.c "/usr/include/netdb.h", line 412: warning: macro redefined: MAXHOSTNAMELEN Compiling lib/replace/getifaddrs.c "/usr/include/netdb.h", line 412: warning: macro redefined: MAXHOSTNAMELEN creating /opt/SOURCES/samba-3.2.0/source/exports/libtalloc.syms Linking shared library bin/libtalloc.so ln: cannot create bin/libtalloc.so.1: File exists *** Error code 2 make: Fa...
2000 Dec 27
2
patch to support hurd-i386
...iff -Nur openssh-2.2.0p1-/canohost.c openssh-2.2.0p1/canohost.c --- openssh-2.2.0p1-/canohost.c Thu Jun 22 13:32:31 2000 +++ openssh-2.2.0p1/canohost.c Sun Oct 29 16:44:49 2000 @@ -32,7 +32,8 @@ int i; socklen_t fromlen; struct addrinfo hints, *ai, *aitop; - char name[MAXHOSTNAMELEN]; + char *name; + size_t name_size; char ntop[NI_MAXHOST], ntop2[NI_MAXHOST]; /* Get IP address of client. */ @@ -71,10 +72,21 @@ fatal("get_remote_hostname: getnameinfo NI_NUMERICHOST failed"); /* Map the IP address to a host name....
2002 Apr 05
2
[Bug 96] bsd-cray.h modifications to allow correct UNICOS execution
http://bugzilla.mindrot.org/show_bug.cgi?id=96 ------- Additional Comments From stevesk at pobox.com 2002-04-05 19:23 ------- the cray support is incomplete now, is that correct? if so, what is needed to complete it? ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
2003 Jan 27
0
[Bug 477] New: progressmeter.c problem requires openbsd-compat/bsd-cray.h change
...the following patch added to openbsd-compat/bsd-cray.h diff -c openbsd-compat/bsd-cray.h.orig openbsd-compat/bsd-cray.h *** openbsd-compat/bsd-cray.h.orig Mon Jan 27 11:42:17 2003 --- openbsd-compat/bsd-cray.h Mon Jan 27 11:52:07 2003 *************** *** 49,54 **** --- 49,56 ---- #ifndef MAXHOSTNAMELEN #define MAXHOSTNAMELEN 64 #endif + #include <sys/ttold.h> + #define TIOCGPGRP (tIOC|20) #endif #endif /* _BSD_CRAY_H */ ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
2008 Sep 24
0
utmp_len
In sshd.c: /* record remote hostname or ip */ u_int utmp_len = MAXHOSTNAMELEN; However, HOSTNAMELEN is almost certainly too long. Is there a reason not to use UT_HOSTSIZE instead, as below? Index: sshd.c =================================================================== --- sshd.c (revision 182719) +++ sshd.c (working copy) @@ -72,6 +72,7 @@ #include <std...
2008 Jul 04
0
unable to compile samba 3.2.0 under Solaris8
...non-shared library bin/libtalloc.a Compiling lib/replace/replace.c Compiling lib/replace/snprintf.c Compiling lib/replace/getpass.c Compiling lib/replace/strptime.c Compiling lib/replace/timegm.c Compiling lib/replace/inet_aton.c "/usr/include/netdb.h", line 412: warning: macro redefined: MAXHOSTNAMELEN Compiling lib/replace/getifaddrs.c "/usr/include/netdb.h", line 412: warning: macro redefined: MAXHOSTNAMELEN creating /opt/SOURCES/samba-3.2.0/source/exports/libtalloc.syms Linking shared library bin/libtalloc.so ln: cannot create bin/libtalloc.so.1: File exists *** Error code 2 make: Fa...
2002 Jan 30
0
[Bug 87] New: Last logon that gets reported upon login is the current login time
...-void do_login(Session *, const char *); +void do_login(Session *, const char *, const time_t, const char *); #ifdef LOGIN_NEEDS_UTMPX static void do_pre_login(Session *s); #endif @@ -548,11 +548,17 @@ { int fdout, ptyfd, ttyfd, ptymaster; pid_t pid; + char hostname[MAXHOSTNAMELEN]; + time_t last_login_time; if (s == NULL) fatal("do_exec_pty: no session"); ptyfd = s->ptyfd; ttyfd = s->ttyfd; + /* Get the time and hostname when the user last logged in. */ + hostname[0] = '\0'; + last_log...
1997 Apr 22
1
SNI-12: BIND Vulnerabilities and Solutions (fwd)
.... I. The usage of predictable IDs in queries and recursed queries allows for remote cache corruption. This allows malicious users to alter domain name server caches to change the addresses and hostnames of hosts on the internet. II. A failure to check whether hostname lengths exceed MAXHOSTNAMELEN in size. This results in potential buffer overflows in programs which expect the BIND resolver to only return a maximum hostname length of MAXHOSTNAMELEN. Problem I. The usage of predictable ID''s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
2010 Oct 22
2
Interix Port
Hi! I recently updated my now long-standing patches for openssh 5.5p1 on interix, and wondered if i ever reported those here, and whether there would be any interest in it anyway. So just to make sure, i'm sending it here, so you may do with it however you like. It would be cool to see the changes go upstream though ;) Regards, markus -------------- next part -------------- A non-text
2001 Apr 04
1
Solaris UseLogin problems
...he child, such as execing the command. */ do_child(s, command); @@ -685,18 +690,11 @@ return remote; } -/* administrative, login(1)-like work */ void -do_login(Session *s, const char *command) +call_record_login(Session *s) { - FILE *f; - char *time_string; - char buf[256]; - char hostname[MAXHOSTNAMELEN]; socklen_t fromlen; struct sockaddr_storage from; - struct stat st; - time_t last_login_time; struct passwd * pw = s->pw; pid_t pid = getpid(); @@ -714,15 +712,30 @@ } } + /* Record that there was a login on that tty from the remote host. */ + record_login(pid, s->tty, pw->...