Portability fixes needed for SCO Unix 3.2v4.0 (SCO OSR 3.0). entropy.c needs seteuid(getuid()) for the setuid(original_uid) to succeed. This is per the man page for setuid(), though I won't claim to understand the reasoning. sftp-server.c uses truncate(), which does not exist on SCO. Only ftruncate() exists (-Dftruncate=chsize). I'll try to attach patches.
Created attachment 65 [details] cvs diff of "works on SCO 3.2v4" vs. -current
I've commited the patch to entropy.c Thanks for your work on this.
For the truncate() problem, I'd prefer to see a replacement function in openbsd-compat.
Created attachment 90 [details] add truncate() to bsd-misc.[ch]
Please try the patch in attachment 90 [details]
Tim, thanks for the patch. It works as expected - with the patch applied to CVS as of today (2002/05/07), and my local changes thrown away, everything compiles just fine. So please commit it to the master sources.
Commited patch (attachment 90 [details])to CVS
Mass change of RESOLVED bugs to CLOSED