[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
strange 'tgetent failure'
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: strange 'tgetent failure'
- From: Pablo Luis Bucich <pbucic_(_at_)_mecon_(_dot_)_ar>
- Date: Sat, 5 Jun 1999 21:44:27 -0300 (ART)
Hi
I've a strange problem. This is not the real program, only a minimal
test that fails :
>>>>>>>>
testx.c :
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
main ()
{
system ("/usr/local/bin/x");
}
>>>>>>>>
x :
#!/bin/sh
clear
>>>>>>>>
Running as non-root, if testx is marked as 755, all is ok, but if
I change with +s to setuid, I'm getting :
clear: tgetent failure: Undefined error: 0
when it tries to do a 'clear', and, of course, the screen is not cleared.
It was running at 2.4, and when I cange the PC (to another 2.4) it
becomes to fail.
I think in a perms problem, but where ? (termcap/terminfo and /dev/tty*
are ok)
thanks
============================================================================
Ministerio de Economia y Obras y Servicios Publicos
Secretaria de Hacienda Tel : +54 1 349-6110
Pablo Luis Bucich Fax : +54 1 349-6505
Buenos Aires, Argentina e-mail : pbucic_(_at_)_mecon_(_dot_)_ar
----------------------------------------------------------------------------
Never attribute to malice that which is adequately explained by stupidity.
-- Hanlon's Razor
Visit your host, monkey.org