Bug fix in adding permissions.
authorJan Olszak <j.olszak@samsung.com>
Thu, 17 Jan 2013 14:10:26 +0000 (15:10 +0100)
committerGerrit Code Review <gerrit2@kim11>
Fri, 25 Jan 2013 10:38:33 +0000 (19:38 +0900)
[Issue] Bad function arguments.
[Bug] N/A
[Cause] N/A
[Solution] N/A
[Verification] Build.

Change-Id: I2dc34ba858340316da5abd000431f9ac0d001d9c

src/privilege-control.c

index 91c436e..410b6c2 100644 (file)
@@ -739,7 +739,7 @@ API int app_add_permissions(const char* app_id, const char** perm_list)
                goto out;
        }
 
-       fd = open(path, O_CREAT, O_RDWR);
+       fd = open(path, O_CREAT|O_RDWR, 0644);
        if (fd == -1) {
                ret = PC_ERR_FILE_OPERATION;
                goto out;