Bug 208

Summary: SCO build/runtime fixes
Product: Portable OpenSSH Reporter: Gert Doering <gert>
Component: Build systemAssignee: OpenSSH Bugzilla mailing list <openssh-bugs>
Status: CLOSED FIXED    
Severity: normal    
Priority: P2    
Version: -current   
Hardware: ix86   
OS: Other   
Attachments:
Description Flags
cvs diff of "works on SCO 3.2v4" vs. -current
none
add truncate() to bsd-misc.[ch] none

Description Gert Doering 2002-04-08 07:29:01 AEST
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.
Comment 1 Gert Doering 2002-04-08 07:30:04 AEST
Created attachment 65 [details]
cvs diff of "works on SCO 3.2v4" vs. -current
Comment 2 Tim Rice 2002-04-22 04:28:38 AEST
I've commited the patch to entropy.c
Thanks for your work on this.
Comment 3 Damien Miller 2002-04-23 23:24:27 AEST
For the truncate() problem, I'd prefer to see a replacement function in
openbsd-compat.
Comment 4 Tim Rice 2002-04-28 06:33:17 AEST
Created attachment 90 [details]
add truncate() to bsd-misc.[ch]
Comment 5 Tim Rice 2002-04-28 06:34:17 AEST
Please try the patch in attachment 90 [details]
Comment 6 Gert Doering 2002-05-08 06:21:38 AEST
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.
Comment 7 Tim Rice 2002-05-08 12:54:06 AEST
Commited patch (attachment 90 [details])to CVS
Comment 8 Damien Miller 2004-04-14 12:24:18 AEST
Mass change of RESOLVED bugs to CLOSED