From: sangwan.kwon Date: Fri, 3 Nov 2017 06:55:57 +0000 (+0900) Subject: Fix misuse of mode_t X-Git-Tag: submit/tizen_4.0/20171129.062733~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=38a2dede6612f6bdad169b95a46a567fcb762cc1;p=platform%2Fcore%2Fsecurity%2Fklay.git Fix misuse of mode_t Change-Id: I732eb1994b7326761de18e3dd6399611153c3029 Signed-off-by: sangwan.kwon --- diff --git a/src/dbus/introspection.cpp b/src/dbus/introspection.cpp index 4bc1a95..05cffa2 100644 --- a/src/dbus/introspection.cpp +++ b/src/dbus/introspection.cpp @@ -117,7 +117,7 @@ std::string Introspection::createXmlDataFromFile(const std::string &path) { runtime::File manifest(path); if (!manifest.exists()) { - manifest.create(644); + manifest.create(0644); manifest.lock(); manifest.write(MANIFEST_TEMPLATE.c_str(), MANIFEST_TEMPLATE.length()); manifest.unlock(); diff --git a/test/filesystem.cpp b/test/filesystem.cpp index 1a044f8..8789f01 100644 --- a/test/filesystem.cpp +++ b/test/filesystem.cpp @@ -47,7 +47,7 @@ TESTCASE(FileIO) char testbuf[100] = "Test Data"; runtime::File tmp("/tmp/test-file"); try { - tmp.create(755); + tmp.create(0755); tmp.lock(); tmp.write(testbuf, ::strlen(testbuf)); tmp.lseek(10, SEEK_SET);