diff options
| author | jhurst <jhurst@cinecert.com> | 2016-03-02 18:57:41 +0000 |
|---|---|---|
| committer | jhurst <> | 2016-03-02 18:57:41 +0000 |
| commit | 1bc2108d63e525a45c66d5de6236dbb5037cdb92 (patch) | |
| tree | f5b83030d065d0ece0fc9af84e7443fa4dd85bf7 /src/KM_fileio.cpp | |
| parent | 72b713cf2bad317c51f737ad8f3a2cf214f6da9d (diff) | |
Changed default UNIX file permissions to "666"
Changed default UNIX file permissions to "777"
Added missing initializer for caltime::offset
Fixed UL values for Aux Data files (per ST 429-14)
Added support for default TTML fonts (ST2052_TextParser)
Diffstat (limited to 'src/KM_fileio.cpp')
| -rw-r--r-- | src/KM_fileio.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/KM_fileio.cpp b/src/KM_fileio.cpp index ed8aa67..2767931 100644 --- a/src/KM_fileio.cpp +++ b/src/KM_fileio.cpp @@ -1,5 +1,5 @@ /* -Copyright (c) 2004-2014, John Hurst +Copyright (c) 2004-2016, John Hurst All rights reserved. Redistribution and use in source and binary forms, with or without @@ -1052,7 +1052,7 @@ Kumu::Result_t Kumu::FileWriter::OpenWrite(const std::string& filename) { m_Filename = filename; - m_Handle = open(filename.c_str(), O_RDWR|O_CREAT|O_TRUNC, 0664); + m_Handle = open(filename.c_str(), O_RDWR|O_CREAT|O_TRUNC, 0666); if ( m_Handle == -1L ) { @@ -1069,7 +1069,7 @@ Kumu::Result_t Kumu::FileWriter::OpenModify(const std::string& filename) { m_Filename = filename; - m_Handle = open(filename.c_str(), O_RDWR|O_CREAT, 0664); + m_Handle = open(filename.c_str(), O_RDWR|O_CREAT, 0666); if ( m_Handle == -1L ) { @@ -1478,6 +1478,7 @@ Kumu::DirScanner::GetNext(char* filename) return RESULT_OK; } +//------------------------------------------------------------------------------------------ // Kumu::DirScannerEx::DirScannerEx() : m_Handle(0) {} @@ -1614,7 +1615,7 @@ Kumu::CreateDirectoriesInPath(const std::string& Path) #ifdef KM_WIN32 if ( _mkdir(tmp_path.c_str()) != 0 ) #else // KM_WIN32 - if ( mkdir(tmp_path.c_str(), 0775) != 0 ) + if ( mkdir(tmp_path.c_str(), 0777) != 0 ) #endif // KM_WIN32 { DefaultLogSink().Error("CreateDirectoriesInPath mkdir %s: %s\n", |
