Hmmm - co z paranoid patches? ;]

Marek Obuchowicz elephant w pld.org.pl
Pią, 21 Sty 2000, 22:21:56 CET


On Fri, 21 Jan 2000, Grzegorz Stanislawski wrote:

> 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.
jesli juz to fgetc(stderr)

Pozdrowienia,
  Marek

-- 
    __       Marek "Suonik" Obuchowicz, elephant w pld.org.pl
   /'_)___   Member of GNU generation, PLD project and "H"
  ( \ ____|\ http://www.projcom.com.pl/ http://www.pld.org.pl/
    //  ||   Home Page: http://suonik.art.pl/ (pgp-key is there)



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