From 952b8dcea335eb5ae49f6c915a89688e70f51ab7 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Thu, 17 Jul 2008 00:54:06 +0000 Subject: [PATCH] refix permissions that last rev reverted --- libtorrent/src/file.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libtorrent/src/file.cpp b/libtorrent/src/file.cpp index 050ec11c9..451d892be 100755 --- a/libtorrent/src/file.cpp +++ b/libtorrent/src/file.cpp @@ -165,15 +165,18 @@ namespace libtorrent std::wstring wpath(safe_convert(path.native_file_string())); m_fd = ::_wopen( wpath.c_str() - , map_open_mode(mode)); + , map_open_mode(mode) + , S_IREAD | S_IWRITE); #elif defined _WIN32 m_fd = ::_open( utf8_native(path.native_file_string()).c_str() - , map_open_mode(mode)); + , map_open_mode(mode) + , S_IREAD | S_IWRITE); #else m_fd = ::open( 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 if (m_fd == -1) {