mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-09 15:15:41 +01:00
fix issue (creating new sound-files) in 92161b57
This commit is contained in:
parent
bdf91de8b7
commit
0761902b7e
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ SndFileDescriptor::open ()
|
|||
{
|
||||
/* we must have a lock on the FileManager's mutex */
|
||||
|
||||
int fd = ::open(_path.c_str(), O_LARGEFILE | (_writeable ? (O_RDWR) : O_RDONLY));
|
||||
int fd = ::open(_path.c_str(), O_LARGEFILE | (_writeable ? (O_RDWR|O_CREAT) : O_RDONLY));
|
||||
if (fd == -1) return false;
|
||||
fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue