Commit 9c9bd4d5 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Set O_EXCL

parent 5972fb95
......@@ -357,7 +357,7 @@ main( int argc, char **argv )
}
if ( copyfname != NULL ) {
if ( ( ld->ld_sb->sb_fd = open( copyfname, O_WRONLY | O_CREAT,
if ( ( ld->ld_sb->sb_fd = open( copyfname, O_WRONLY|O_CREAT|O_EXCL,
0600 )) == -1 ) {
perror( copyfname );
exit ( EXIT_FAILURE );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment