Skip to content

Commit

Permalink
Add an missing argument to open(2). If O_CREAT flag is specified,
Browse files Browse the repository at this point in the history
file permission has to be specified as well.
  • Loading branch information
pjd authored and pjd committed Jan 4, 2012
1 parent f349465 commit 44cb5d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr.sbin/mptable/mptable.c
Expand Up @@ -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 );
Expand Down

0 comments on commit 44cb5d1

Please sign in to comment.