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: =?ISO-8859-1?Q?J=F6rn_Clausen?= <joern%uni-bielefeld.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: pkg-manager%NetBSD.org@localhost, pkgsrc-bugs%NetBSD.org@localhost,
gnats-admin%NetBSD.org@localhost,
dholland%NetBSD.org@localhost
Subject: Re: pkg/39717 (patch-ae in sysutils/gentoo uses mkdtemp)
Date: Mon, 26 Jan 2009 10:02:43 +0100
After removing
#include <paths.h>
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");
the package did compile. Does paths.h define _PATH_TMP and this provides
an appropriate directory for temporary files? The better function in
Solaris for this task is tmpfile, but it returns a file handle, not a
descriptor. I know no other easy fix than to hardcode "/tmp":
strcpy(tempnamebuf, "/tmp/gentoo.XXXXXX");
--
Jörn Clausen
joern.clausen%uni-bielefeld.de@localhost
Hochschulrechenzentrum http://www.uni-bielefeld.de/hrz/
Universität Bielefeld
Home |
Main Index |
Thread Index |
Old Index