From ca20d074030bf4cdc3413a8ab8cddbfeb8d61e7f Mon Sep 17 00:00:00 2001 From: Jan Olszak Date: Thu, 17 Jan 2013 15:10:26 +0100 Subject: [PATCH] Bug fix in adding permissions. [Issue] Bad function arguments. [Bug] N/A [Cause] N/A [Solution] N/A [Verification] Build. Change-Id: I2dc34ba858340316da5abd000431f9ac0d001d9c --- src/privilege-control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/privilege-control.c b/src/privilege-control.c index 91c436e..410b6c2 100644 --- a/src/privilege-control.c +++ b/src/privilege-control.c @@ -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; -- 2.7.4