users-prolog
[Top][All Lists]
Advanced

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

Fw: error using gplc


From: carlos calderon
Subject: Fw: error using gplc
Date: Fri, 15 Jun 2001 11:51:10 +0100

----- Original Message -----
From: "carlos calderon" <address@hidden>
To: <address@hidden>
Sent: Friday, June 15, 2001 11:29 AM
Subject: Re: error using gplc


>
> ----- Original Message -----
> From: "Wolfgang Müller" <address@hidden>
> To: "carlos calderon" <address@hidden>
> Sent: Friday, June 15, 2001 6:10 AM
> Subject: Re: error using gplc
>
>
> > Le Jeudi 14 Juin 2001 20:19, vous avez écrit :
> >
> > > > Hi all,
> > >
> > > Every time I compile a file
> > >
> > > gplc file.pl
> > >
> > > I get the following error:
> > >
> > > /usr/lib/gprolog-1.2.1/lib/libbips_pl.a(os_interf_c.o):In function
> > > 'Temporary_File_3': os_interf_c.o(.text+0x1323):the use of 'tempnam'
is
> > > dangerous, better use 'mkstemp'
> > > /usr/lib/gprolog-1.2.1/lib/libbips_pl.a(os_interf_c.o):In function
> > > 'Temporary_Name_2': os_interf_c.o(.text+0x12a6):the use of 'mktemp' is
> > > dangerous, better use 'mkstemp'
> > >
> > Hi, I am not developer here, but:
> >
> > 1) I think they're *warnings*, not errors, so if gplc does not generate
an
> > executable for you there must be another reason.
>
 Thanks Wolfgang....yes it generates executables
>
> > 2) I do not know where they use it, so I cannot say *how* dangerous this
> is.
> > But the problem is the following:
> >
> > mktemp & tempnam
> >
> > give you temporary file names. You have to open the file. So people
> > potentially can do something nasty during the time between you receive
the
> > new filename and the time you actually open the file. If you are alone
on
> > your machine the risk is quite low :-)
>
 yeap, it's my own machine.
> >
> > mkstemp makes a temporary *file* so there is no race condition.
> >
>
 Thanks for explanation ..but may someone knows how to fix it..

 Thanks
>
> ----------------------------------------
> > Content-Type: text/html; charset="iso-8859-1"; name="Pièces jointes : 1"
> > Content-Transfer-Encoding: quoted-printable
> > Content-Description:
> > ----------------------------------------
> >
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]