Fix misuse of mode_t
authorsangwan.kwon <sangwan.kwon@samsung.com>
Fri, 3 Nov 2017 06:55:57 +0000 (15:55 +0900)
committerJaemin Ryu <jm77.ryu@samsung.com>
Mon, 27 Nov 2017 00:53:35 +0000 (09:53 +0900)
Change-Id: I732eb1994b7326761de18e3dd6399611153c3029
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
src/dbus/introspection.cpp
test/filesystem.cpp

index 4bc1a9563e133c3fab11a8523dd9d31a9957587a..05cffa28210d366fdee96b341c4fba381b42e82b 100644 (file)
@@ -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();
index 1a044f8308e84a994d0311fdb11cab6269b8014a..8789f010d153aaadff4f98804ac6f4a479fc0267 100644 (file)
@@ -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);