diff options
author | pjd <pjd@FreeBSD.org> | 2012-01-04 07:04:43 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2012-01-04 07:04:43 +0000 |
commit | 8cedef5e19d800077d15c7570bf6cbda1b741c26 (patch) | |
tree | d23928d21905b8d7829ddd991fdb8638a15901b1 /usr.sbin/mptable | |
parent | 2886f1415cda856a3bebfd157865bae53bcd0acb (diff) | |
download | FreeBSD-src-8cedef5e19d800077d15c7570bf6cbda1b741c26.zip FreeBSD-src-8cedef5e19d800077d15c7570bf6cbda1b741c26.tar.gz |
Add an missing argument to open(2). If O_CREAT flag is specified,
file permission has to be specified as well.
Diffstat (limited to 'usr.sbin/mptable')
-rw-r--r-- | usr.sbin/mptable/mptable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/mptable/mptable.c b/usr.sbin/mptable/mptable.c index 92279bc..3c38ccf 100644 --- a/usr.sbin/mptable/mptable.c +++ b/usr.sbin/mptable/mptable.c @@ -828,7 +828,7 @@ MPConfigTableHeader( u_int32_t pap ) int ofd; u_char dumpbuf[ 4096 ]; - ofd = open( "/tmp/mpdump", O_CREAT | O_RDWR ); + ofd = open( "/tmp/mpdump", O_CREAT | O_RDWR, 0666 ); seekEntry( paddr ); readEntry( dumpbuf, 1024 ); write( ofd, dumpbuf, 1024 ); |