pkgsrc-Bugs archive

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

Re: pkg/39717 (patch-ae in sysutils/gentoo uses mkdtemp)



The following reply was made to PR pkg/39717; it has been noted by GNATS.

From: Joerg Sonnenberger <joerg%britannica.bec.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/39717 (patch-ae in sysutils/gentoo uses mkdtemp)
Date: Mon, 26 Jan 2009 11:55:12 +0100

 On Mon, Jan 26, 2009 at 09:05:03AM +0000, J?rn Clausen wrote:
 >  again (does not exist on Solaris, and mkstemp(3C) mentions only 
 >  stdlib.h), and changing
 >  
 >      strcpy(tempnamebuf, _PATH_TMP "gentoo.XXXXXX");
 >  
 >  to
 >  
 >      strcpy(tempnamebuf, "gentoo.XXXXXX");
 
 const char *tmpdir = "/tmp";
 if (getenv("TMPDIR"))
        tmpdir = getenv("TMPDIR");
 snprintf(tempnamebuf, sizeof(tempnamebuf), "%s/%s");
 
 or something like that.
 
 Joerg
 


Home | Main Index | Thread Index | Old Index