Discovered while trying to compile archivers/gtar-base: the following code 
causes NetBSD-current (built today, on aarch64) to crash:


#include <unistd.h>
#include <fcntl.h>

int main (void)
{
int fd, ret;
fd = open("/tmp", O_RDONLY);
if (fd < 0)
  return 3;
ret = fchownat(fd, "", (uid_t)(-1), (gid_t)(-1), 0);
close(fd);

return 0;
}


I didn't investigate any further.

Kind regards,
Adam

Reply via email to