Re: Solaris and use of /usr/ucb

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



On Sat, Apr 1, 2017 at 2:28 PM, Jeffrey Walton <noloader@xxxxxxxxx> 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.
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux