Merge tizen_4.0 into tizen
[platform/core/security/ode.git] / server / upgrade-support.cpp
index 8fb3538..1cb33d4 100644 (file)
@@ -186,7 +186,7 @@ void writeToken(runtime::File &file, const BinaryData& token)
 {
        size_t tokenSize(token.size());
 
-       file.create(0640);
+       file.create(S_IRUSR | S_IWUSR | S_IRGRP);
 
        file.write(&tokenSize, sizeof(tokenSize));
        file.write(token.data(), token.size());