From 0761902b7ece5e422c3ddb7f79c775259521052a Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 7 Jun 2013 18:09:15 +0200 Subject: [PATCH] fix issue (creating new sound-files) in 92161b57 --- libs/pbd/sndfile_manager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/pbd/sndfile_manager.cc b/libs/pbd/sndfile_manager.cc index 4977f21dfd..982f028ddd 100644 --- a/libs/pbd/sndfile_manager.cc +++ b/libs/pbd/sndfile_manager.cc @@ -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);