[FreeNX-kNX] [PATCH 5/5] Fixes file permission

Otavio Salvador otavio at ossystems.com.br
Fri Nov 7 17:10:27 UTC 2008


From: Luis Gustavo S. Barreto <gustavo at ossystems.com.br>

Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
---
 nxcl/lib/notQt.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/nxcl/lib/notQt.cpp b/nxcl/lib/notQt.cpp
index df3c964..732285d 100644
--- a/nxcl/lib/notQt.cpp
+++ b/nxcl/lib/notQt.cpp
@@ -365,6 +365,7 @@ notQTemporaryFile::open (void)
     fn << "/tmp/notQt" << time(NULL);
     this->theFileName = fn.str();
     this->f.open (this->theFileName.c_str(), ios::in|ios::out|ios::trunc);
+    chmod(this->theFileName.c_str(), S_IREAD | S_IWRITE);
 }
 
     void
-- 
1.6.0.3.640.g6331a




More information about the FreeNX-kNX mailing list