From 050ba4af9b8d80eae1120e7ad9c575db2c38527b Mon Sep 17 00:00:00 2001 From: Chengwei Yang Date: Thu, 1 Aug 2013 15:37:47 +0800 Subject: [PATCH] Fix database permission This looks like some kind of typo, however will cause app application failed to update desktop entry in database. For example, starter will update sat-ui entry in database once it's ready, while starter running as 'app' privilege, which is a member of group 'db_menu'. Change-Id: I3ff02609e5412b4004edd2fcb7007616983e8b7e Signed-off-by: Chengwei Yang --- initdb/src/initdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/initdb/src/initdb.c b/initdb/src/initdb.c index 0cade32..ea17385 100755 --- a/initdb/src/initdb.c +++ b/initdb/src/initdb.c @@ -182,7 +182,7 @@ static int initdb_change_perm(const char *db_file) return AIL_ERROR_FAIL; } - ret = chmod(files[i], S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); + ret = chmod(files[i], S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH); if (ret == -1) { strerror_r(errno, buf, sizeof(buf)); _E("FAIL : chmod %s 0664, because %s", db_file, buf); -- 2.7.4