Merge r273 from libarchive.googlecode.com: Use open() correctly.
This commit is contained in:
parent
feb593d215
commit
7bae205d49
@ -28,7 +28,7 @@ __FBSDID("$FreeBSD$");
|
||||
static int
|
||||
touch(const char *fn)
|
||||
{
|
||||
int fd = open(fn, O_RDWR | O_CREAT);
|
||||
int fd = open(fn, O_RDWR | O_CREAT, 0644);
|
||||
failure("Couldn't create file '%s', fd=%d, errno=%d (%s)\n",
|
||||
fn, fd, errno, strerror(errno));
|
||||
if (!assert(fd > 0))
|
||||
|
Loading…
x
Reference in New Issue
Block a user