On 28/08/14 11:39, Ingo Schwarze wrote:
Hi,

Kapetanakis Giannis wrote on Thu, Aug 28, 2014 at 11:08:34AM +0300:

I have NOT edited /usr/libexec/security nor the e-mail from /etc/daily

Running security(8):
tset: standard error: Inappropriate ioctl for device
Oh.  My bad.  stderr doesn't go through nag(), indeed.
So you don't get a check_title.  That's hard to fix,
actually.  I fear we have to live with it.

# grep security,v /usr/libexec/security
# $OpenBSD: security,v 1.31 2014/07/14 08:49:27 schwarze Exp $
Good, that's up to date.

only tset is in /root/.profile

if [ -x /usr/bin/tset ]; then
    if [ X"$XTERM_VERSION" = X"" ]; then
       eval `/usr/bin/tset -sQ '-munknown:?vt220' $TERM`
    else
       eval `/usr/bin/tset -IsQ '-munknown:?vt220' $TERM`
    fi
fi
Your problem's right here:  The check for an interactive
shell is missing.  Compare to

   http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/etc/root/dot.profile?rev=HEAD

to see what i'm talking about.  These four lines are missing:

   case "$-" in
   *i*)    # interactive shell
   [...]
        ;;
   esac

This should solve the issue.  Feel free to forward to the list
such that others can see the solution, too.

Yours,
   Ingo

Thanx,
I've updated root's .profile

G

Reply via email to