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);