OpenSSH 3.3p1 on SunOS 4.1.4
Ben Lindstrom
mouring at etoh.eviladmin.org
Fri Jun 28 03:56:22 EST 2002
The optarg fix is in 3.4p1. We are using bcopy() if memmove() does not
exist. I have a question pending to the rest of the portable group in
regards to a few include changes which this will be part of. So hopefully
in the next day or so it will be in the tree.
- Ben
On Thu, 27 Jun 2002, Detlef Lannert wrote:
> Hi,
>
> I just installed OpenSSH 3.3p1 on a SunOS 4.1.4 system (actually a
> 3-year old Auspex file server) as a replacement for an older, probably
> vulnerable ssh version.
>
> I used gcc, openssl 0.9.6d, zlib 1.1.4 and the configure incantation
> ./configure --with-tcp-wrappers --with-privsep-user=privsep
> (the latter option obviously being the default value).
>
> There were two problems: (a) memmove seems to be unavailable; I replaced
> it by memcpy, hoping that it won't break on overlapping areas, (b) optarg
> was undefined and needed to be declared.
>
> I enclose the diffs of the patches I made. Compilation, linking, and
> installation were OK, and (apparently) it's working.
>
> I do know that this OS is not the latest fad; just thought this
> information might be useful for someone else out there who has to work
> with a similar system.
>
> Please cc any replies as I'm not subscribed to the list. Thank you.
>
> Regards,
> Detlef
>
> ------------8<------------- cut here ------------8<-------------
> *** openbsd-compat/setenv.c.orig Wed Feb 13 06:00:16 2002
> --- openbsd-compat/setenv.c Wed Jun 26 18:27:17 2002
> ***************
> *** 40,45 ****
> --- 40,46 ----
>
> #include <stdlib.h>
> #include <string.h>
> + #include <memory.h>
>
> /*
> * __findenv --
> ***************
> *** 123,129 ****
> (cnt + 2)));
> if (!P)
> return (-1);
> ! memmove(P, environ, cnt * sizeof(char *));
> environ = P;
> }
> environ[cnt + 1] = NULL;
> --- 124,130 ----
> (cnt + 2)));
> if (!P)
> return (-1);
> ! memcpy(P, environ, cnt * sizeof(char *));
> environ = P;
> }
> environ[cnt + 1] = NULL;
> *** ssh-agent.c.orig Fri Jun 21 02:41:52 2002
> --- ssh-agent.c Wed Jun 26 18:18:48 2002
> ***************
> *** 939,944 ****
> --- 939,945 ----
> char *shell, *format, *pidstr, pidstrbuf[1 + 3 * sizeof pid];
> char *agentsocket = NULL;
> extern int optind;
> + extern char *optarg;
> fd_set *readsetp = NULL, *writesetp = NULL;
>
> SSLeay_add_all_algorithms();
> _______________________________________________
> openssh-unix-dev at mindrot.org mailing list
> http://www.mindrot.org/mailman/listinfo/openssh-unix-dev
>
More information about the openssh-unix-dev
mailing list