Permalink
Browse files

Add an missing argument to open(2). If O_CREAT flag is specified,

file permission has to be specified as well.
  • Loading branch information...
1 parent f349465 commit 44cb5d116ac6c97075da69a5981176513e45ca49 pjd committed Jan 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 );

0 comments on commit 44cb5d1

Please sign in to comment.