From 43dd90bb59e7abaa2dc2dccc81017465c5489e91 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 22 Jul 2008 13:02:06 +0000 Subject: [PATCH] don't set executable permission of files --- src/file.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/file.cpp b/src/file.cpp index 936e13ce4..29420711e 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -201,8 +201,12 @@ namespace libtorrent #else // rely on default umask to filter x and w permissions // for group and others + int permissions = S_IRUSR | S_IWUSR + | S_IRGRP | S_IWGRP + | S_IROTH | S_IWOTH; + m_fd = ::open(path.native_file_string().c_str() - , map_open_mode(mode.m_mask), S_IRWXU | S_IRWXG | S_IRWXO); + , map_open_mode(mode.m_mask), permissions); if (m_fd == -1) {