Add an missing argument to open(2). If O_CREAT flag is specified,
file permission has to be specified as well.
This commit is contained in:
parent
1331bbc33f
commit
24bc5224c6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=229466
@ -828,7 +828,7 @@ MPConfigTableHeader( u_int32_t pap )
|
|||||||
int ofd;
|
int ofd;
|
||||||
u_char dumpbuf[ 4096 ];
|
u_char dumpbuf[ 4096 ];
|
||||||
|
|
||||||
ofd = open( "/tmp/mpdump", O_CREAT | O_RDWR );
|
ofd = open( "/tmp/mpdump", O_CREAT | O_RDWR, 0666 );
|
||||||
seekEntry( paddr );
|
seekEntry( paddr );
|
||||||
readEntry( dumpbuf, 1024 );
|
readEntry( dumpbuf, 1024 );
|
||||||
write( ofd, dumpbuf, 1024 );
|
write( ofd, dumpbuf, 1024 );
|
||||||
|
Loading…
Reference in New Issue
Block a user