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

strange 'tgetent failure'



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