tiger-devel
[Top][All Lists]
Advanced

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

[Tiger-devel] [PATCH] Define MESG for HP-UX and fix /etc/ftpusers check


From: Ryan Bradetich
Subject: [Tiger-devel] [PATCH] Define MESG for HP-UX and fix /etc/ftpusers check
Date: 25 Jun 2003 22:16:17 -0600

Hello all,

This patch does the following:
        * Define MESG for HP-UX
        * Fix the /etc/ftpusers check

The /etc/ftpusers check did this:

        if [ ! "`$GREP '^root' /etc/ftpusers`" ]; then

The problem was with the ""'s, the statement ended up looking like:
        if [ ! "root" ]; then

which did not produce the desired results.  I believe the origional
author intended to check the return code from the grep, which would also
work.

I believe this problem also exists with the /etc/default/login check,
but since I do not have a system to verify this, I left it alone.

This patch has been tested on HP-UX 11.11, HP-UX 11.00, HP-UX 10.20,
Debian Linux, and RedHat Linux.

Thanks,

- Ryan

P.S. I have some additional concerns with the check_root script that I
will address in a follow up RFC email.

Attachment: checkroot.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]