Subject: mktemp core dumps
To: None <netbsd-help@NetBSD.ORG>
From: Peter Simons <simons@petium.rhein.de>
List: netbsd-help
Date: 12/28/1996 16:09:00
I am using a standard NetBSD 1.2/i386 installation to compile the
following program:
| #include <unistd.h>
|
| int
| main(void)
| {
| mktemp("/tmp/temp.XXXX");
| return 0;
| }
But all I get is this:
| simons@petium:/tmp$ gcc test.c -o test -Wall
| simons@petium:/tmp$ ./test
| Bus error (core dumped)
Any idea what is happening? Am I fundamentally misunderstanding the
usage of this routine? Or is it a bug?