mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-15 22:14:24 +00:00
refix permissions that last rev reverted
This commit is contained in:
parent
85939e93ba
commit
952b8dcea3
@ -165,15 +165,18 @@ namespace libtorrent
|
|||||||
std::wstring wpath(safe_convert(path.native_file_string()));
|
std::wstring wpath(safe_convert(path.native_file_string()));
|
||||||
m_fd = ::_wopen(
|
m_fd = ::_wopen(
|
||||||
wpath.c_str()
|
wpath.c_str()
|
||||||
, map_open_mode(mode));
|
, map_open_mode(mode)
|
||||||
|
, S_IREAD | S_IWRITE);
|
||||||
#elif defined _WIN32
|
#elif defined _WIN32
|
||||||
m_fd = ::_open(
|
m_fd = ::_open(
|
||||||
utf8_native(path.native_file_string()).c_str()
|
utf8_native(path.native_file_string()).c_str()
|
||||||
, map_open_mode(mode));
|
, map_open_mode(mode)
|
||||||
|
, S_IREAD | S_IWRITE);
|
||||||
#else
|
#else
|
||||||
m_fd = ::open(
|
m_fd = ::open(
|
||||||
utf8_native(path.native_file_string()).c_str()
|
utf8_native(path.native_file_string()).c_str()
|
||||||
, map_open_mode(mode));
|
, map_open_mode(mode)
|
||||||
|
, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
|
||||||
#endif
|
#endif
|
||||||
if (m_fd == -1)
|
if (m_fd == -1)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user