Subject: systrace -A breaks mkstemp()
To: None <netbsd-users@netbsd.org>
From: Paul Stoeber <x0001@x.de1.cc>
List: netbsd-users
Date: 01/15/2006 02:13:16
$ uname -a
NetBSD  3.0 NetBSD 3.0 (GENERIC_LAPTOP) #0: Mon Dec 19 01:08:52 UTC 2005  builds@works.netbsd.org:/home/builds/ab/netbsd-3-0-RELEASE/i386/200512182024Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/i386/compile/GENERIC_LAPTOP i386
$ cat x.c
#include <stdio.h>
#include <stdlib.h>
int main()
{
  char buf[] = "/tmp/x.XXXXXX";
  printf("= %d\n", mkstemp(buf));
  return 0;
}
$ gcc x.c; ./a.out
= 3
$ rm -rf ~/.systrace; systrace -A ./a.out
= -1
$ systrace -A vi
ex/vi: Error: Unable to create temporary file: No such file or directory
$ systrace -A lint x.c
lint: can't make temp: No such file or directory
$ systrace -A pax -wu x.c
pax: Unable to create temporary file: /tmp/pax00008045aa (No such file or directory)