10 X's for mkstemp(), and don't redefine _PATH_TMP

This commit is contained in:
kris 2000-01-10 09:25:32 +00:00
parent fd8b701ac9
commit 4d100bef50
4 changed files with 6 additions and 8 deletions

View File

@ -113,7 +113,7 @@ struct disklabel * getvirginlabel __P((void));
char *dkname;
char *specname;
char tmpfil[] = _PATH_TMP;
char tmpfil[] = PATH_TMPFILE;
char namebuf[BBSIZE], *np = namebuf;
struct disklabel lab;

View File

@ -30,11 +30,10 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* @(#)pathnames.h 8.1 (Berkeley) 6/5/93
* $FreeBSD$
*/
#include <paths.h>
#define _PATH_BOOTDIR "/boot"
#undef _PATH_TMP
#define _PATH_TMP "/tmp/EdDk.aXXXXXX"
#define PATH_TMPFILE "/tmp/dlblXXXXXXXXXX"

View File

@ -113,7 +113,7 @@ struct disklabel * getvirginlabel __P((void));
char *dkname;
char *specname;
char tmpfil[] = _PATH_TMP;
char tmpfil[] = PATH_TMPFILE;
char namebuf[BBSIZE], *np = namebuf;
struct disklabel lab;

View File

@ -30,11 +30,10 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* @(#)pathnames.h 8.1 (Berkeley) 6/5/93
* $FreeBSD$
*/
#include <paths.h>
#define _PATH_BOOTDIR "/boot"
#undef _PATH_TMP
#define _PATH_TMP "/tmp/EdDk.aXXXXXX"
#define PATH_TMPFILE "/tmp/dlblXXXXXXXXXX"