svn commit: r229466 - head/usr.sbin/mptable
Pawel Jakub Dawidek
pjd at FreeBSD.org
Wed Jan 4 07:04:44 UTC 2012
Author: pjd
Date: Wed Jan 4 07:04:43 2012
New Revision: 229466
URL: http://svn.freebsd.org/changeset/base/229466
Log:
Add an missing argument to open(2). If O_CREAT flag is specified,
file permission has to be specified as well.
Modified:
head/usr.sbin/mptable/mptable.c
Modified: head/usr.sbin/mptable/mptable.c
==============================================================================
--- head/usr.sbin/mptable/mptable.c Wed Jan 4 07:01:23 2012 (r229465)
+++ head/usr.sbin/mptable/mptable.c Wed Jan 4 07:04:43 2012 (r229466)
@@ -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 );
More information about the svn-src-all
mailing list