Solaris and use of /usr/ucb

Darren Tucker dtucker at zip.com.au
Sat Apr 1 19:43:41 AEDT 2017


On Sat, Apr 1, 2017 at 2:28 PM, Jeffrey Walton <noloader at gmail.com> wrote:

> Hi Everyone,
>
> The portability team may be interesting in this. It looks like
> /usr/ucb is being used a fair amount on Solaris:
>
>     $ /usr/gnu/bin/grep -IR '/usr/ucb' * | wc -l
>         17
>

I don't think it's anything to be concerned about.  The bulk are in the
automatically generated configure script and for the most part it's just
one more place to look.

$ grep -rc /usr/ucb * | grep -v :0
configure:12
configure.ac:3
regress/test-exec.sh:2

Of the remaining ones, 2 in configure.ac are not even for Solaris and the
other one is only a path addition

if test -z "$MANTYPE"; then
        TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb"
        AC_PATH_PROGS([NROFF], [nroff awf], [/bin/false], [$TestPath])
        if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then

test-exec also looks innocuous:

if [ -x /usr/ucb/whoami ]; then
        USER=`/usr/ucb/whoami`
elif whoami >/dev/null 2>&1; then
        USER=`whoami`

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 11EAA6FA / A86E 3E07 5B19 5880 E860  37F4 9357 ECEF 11EA A6FA (new)
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.


More information about the openssh-unix-dev mailing list