From 518de7b8c8f7384fbdaf1acb8e7c1b2da1513ba8 Mon Sep 17 00:00:00 2001 From: drbob Date: Sun, 4 Jul 2010 10:59:04 +0000 Subject: [PATCH] 'open' Complained it needed 3rd argment (don't know why???) git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3250 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/rsserver/rsinit.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libretroshare/src/rsserver/rsinit.cc b/libretroshare/src/rsserver/rsinit.cc index 6a737b3dc..3c07424e2 100644 --- a/libretroshare/src/rsserver/rsinit.cc +++ b/libretroshare/src/rsserver/rsinit.cc @@ -919,7 +919,8 @@ int RsInit::LockConfigDirectory(const std::string& accountDir) close(RsInitConfig::lockHandle); // open the file in write mode, create it if necessary, truncate it (it should be empty) - RsInitConfig::lockHandle = open(lockFile.c_str(), O_WRONLY | O_CREAT | O_TRUNC); + RsInitConfig::lockHandle = open(lockFile.c_str(), O_WRONLY | O_CREAT | O_TRUNC, + S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); if(RsInitConfig::lockHandle == -1) {