Bug 208 - SCO build/runtime fixes
Summary: SCO build/runtime fixes
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Build system (show other bugs)
Version: -current
Hardware: ix86 Other
: P2 normal
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-08 07:29 AEST by Gert Doering
Modified: 2004-04-14 12:24 AEST (History)
0 users

See Also:


Attachments
cvs diff of "works on SCO 3.2v4" vs. -current (1.39 KB, patch)
2002-04-08 07:30 AEST, Gert Doering
no flags Details | Diff
add truncate() to bsd-misc.[ch] (1.39 KB, patch)
2002-04-28 06:33 AEST, Tim Rice
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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