Merge r273 from libarchive.googlecode.com: Use open() correctly.

This commit is contained in:
Tim Kientzle 2009-03-08 05:10:51 +00:00
parent feb593d215
commit 7bae205d49

View File

@ -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))