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

tgetent() failure if setuid



Hi

If I compile this :

------
#include <stdio.h>
#include <stdlib.h>

main ()
{
   system ("clear");
}
------

and run as any user, works ok, but, if I change owner to root and set 'setuid'
bit (+s), root can exec ok but any other user gets a 

clear: tgetent failure: Undefined error: 0

TERM is set and exported.  I've tried this in three 2.4 platforms. 
Any ideas ? Must I report this as a bug ? error 0 sounds like no error ...

regards

============================================================================
 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