UnixWare 2.03 patch

mouring at etoh.eviladmin.org mouring at etoh.eviladmin.org
Fri Jan 5 17:51:06 EST 2001


On Thu, 4 Jan 2001, Tim Rice wrote:

> 
> Here is a patch to help UnixWare 2.03 along.
> 
> No if we could only change utimes() back to utime() in scp.c & sftp-server.c
> we would have a working versin for Unixware 2.03 and SCO 3.2v4.2
> 
> 
>--- defines.h.old	Wed Jan  3 17:33:52 2001
>+++ defines.h	Wed Jan  3 17:41:28 2001
>@@ -360,6 +360,10 @@
> # define memmove(s1, s2, n) bcopy((s2), (s1), (n))
> #endif /* !defined(HAVE_MEMMOVE) && defined(HAVE_BCOPY) */
> 
>+#if defined(HAVE_MEMMOVE) && !defined(HAVE_BCOPY)
>+#define bcopy(b1,b2,length)     (void) memmove ((b2), (b1), (length))
>+#endif /* defined(HAVE_MEMMOVE) && !defined(HAVE_BCOPY) */
>+

Hmm.. bsd-getcwd.c and bsd-setenv.c  (both I believe I added or requested 
originally due to NeXT issuses) use bcopy().  Would you have any objection
to just changing them to memmove() (like how the rest of the OpenSSH
code) instead of doing this patch? 

- Ben






More information about the openssh-unix-dev mailing list