mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-16 00:22:29 -05:00
set mode argument for open() where O_CREAT flag is/can be set.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28527 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3772a08729
commit
930a8a5050
8 changed files with 8 additions and 12 deletions
|
|
@ -1484,7 +1484,7 @@ void ProcessDehFile(const char *filename, const char *outfilename, int lumpnum)
|
|||
if (strcmp(outfilename, "-"))
|
||||
{
|
||||
fileout = open(outfilename, firstfile ? O_WRONLY | O_CREAT :
|
||||
O_WRONLY | O_APPEND);
|
||||
O_WRONLY | O_APPEND, 0666);
|
||||
if (fileout < 0)
|
||||
{
|
||||
printf( "Could not open -dehout file %s\n... using stdout.\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue