Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
fchownat(2) makes the system crash
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
Home |
Main Index |
Thread Index |
Old Index