[PATCH] some patches for Fujitsu-Siemens ReliantUNIX, minor fixes and XXXes

Robert Dahlem Robert.Dahlem at ffm2.siemens.de
Tue Aug 21 02:33:39 EST 2001


Hi,

attached please find some patches for ReliantUNIX. This was tested under 
Reliant UNIX V5.43C40 with Compiler CDSDEV V2.0C00.

Here is what I did:

- there is a common misunderstanding how to use /usr/libucb/libucb.a:

There are some library functions only in libucb.a under ReliantUNIX, so 
one needs to bind it. The problem is: there are some other functions in 
this library you should never bind from there (i.e. fopen()). The trick 
is to first search through libc.so and then through libucb.a. Don't let 
ld search in /usr/ucblib, it will virtually always produce nonsense.

- often found mistake with libsocket and libnsl:

Especially libsocket MUST be bound before libc. Otherwise you will get 
lots of messages like

    unix: syslog: 7784 sshd:_accept: SIOCGPGRP failed errno 22

- -ldl not choosen by configure:

Something in OpenSSH (I did not find) needs libdl. configure checks for 
dlopen() only when it finds PAM. No PAM on ReliantUNIX, so not libdl, 
thus no binding. Ouch! :-)

I made an XXX fix for ReliantUNIX and left it for someone else to 
de-nest the dlopen() check in configure.in. Sorry, but it's beyond my 
understanding of autoconf. BTW: Why does autoconf-2.50 bounce on 
configure.in?

- --with-mantype

configure tells about --with-mantype, but checked for --with-catman

- /etc/default/login

There is a file /etc/default/login on Solaris  2.x and ReliantUNIX. See

   http://docs.sun.com/ab2/coll.40.6/REFMAN1/@Ab2PageView/171170

for a description. It handles things like setting a different PATH for 
root and normal users at login time, quite a convenient feature for 
administrators.

This was handled in SSH 1 since at least 1998. I rewrote some of the old 
code to gather at least PATH. Rest will be done at a later time (when I 
better understand the code :-).

I added a paranoia check to have always a minimum PATH set but take 
care! I fear this changed the semantics of --with-default-path.


Regards,
        Robert


-- 
Robert.Dahlem at ffm2.siemens.de
Siemens Business Services - FS CBS KORDOBA-Outsourcing
Tel: +49-69-797-6530  Fax: +49-69-797-6599
----------------------------------------------------------------------
Sent using PMMail (http://www.pmmail2000.com) - fast, decent, email
software; far better than Outlook. Try it sometime.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/octet-stream
Size: 4669 bytes
Desc: not available
Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20010820/ed90e5e2/attachment.obj 


More information about the openssh-unix-dev mailing list