Hmmm - co z paranoid patches? ;]

Grzegorz Stanislawski stangrze w open.net.pl
Pią, 21 Sty 2000, 12:48:35 CET


On Thu, 20 Jan 2000, Michal Margula wrote:

> Ellowka
> 
> co z......
> 
> +/* PLD antiroot */
> + int antirootkey;
> + if (geteuid()==0) {
> +   fprintf(stderr,"\aWARNING!!!\n\n");
> +   fprintf(stderr,"Using this program as root is highly unrecommended\n");
> +   fprintf(stderr,"because of security problems.\n");
> +   fprintf(stderr,"If you still want to do it, press Y now,\n");
> +   fprintf(stderr,"Otherwise press any key to exit this program.\n");
> +   if (((antirootkey=fgetc(stdin))!=89) && (antirootkey!=121)) exit(101);
> + }
> 
> 
> Zostawiać?
> 
Oczywiscie ze nie.
Pol biedy jakby to bylo samo wyswietlenie warninga,
ale fgetc(stdin) jest idiotyczne.

> Michal Margula, alchemyx w uznam.top.pl, ICQ UIN 12267440, +)
> 
Grzegorz Stanislawski
Open-Net SA / PKFL




Więcej informacji o liście dyskusyjnej pld-devel-pl