diff options
Diffstat (limited to 'meta-application-manager/recipes-application-framework/pkgmgr-info/pkgmgr-info/0002-pkgmgr-info-journal-perser-db.patch')
-rw-r--r-- | meta-application-manager/recipes-application-framework/pkgmgr-info/pkgmgr-info/0002-pkgmgr-info-journal-perser-db.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/meta-application-manager/recipes-application-framework/pkgmgr-info/pkgmgr-info/0002-pkgmgr-info-journal-perser-db.patch b/meta-application-manager/recipes-application-framework/pkgmgr-info/pkgmgr-info/0002-pkgmgr-info-journal-perser-db.patch new file mode 100644 index 0000000..87fb4a5 --- /dev/null +++ b/meta-application-manager/recipes-application-framework/pkgmgr-info/pkgmgr-info/0002-pkgmgr-info-journal-perser-db.patch @@ -0,0 +1,26 @@ +--- a/parser/pkgmgr_parser_db.c ++++ b/parser/pkgmgr_parser_db.c +@@ -2198,15 +2198,21 @@ + ret = chown(files[i], uid, userinfo->pw_gid); + SET_SMACK_LABEL(files[i],uid) + if (ret == -1) { ++ if (files[i] == journal_file && errno == ENOENT) ++ continue; + strerror_r(errno, buf, sizeof(buf)); +- _LOGD("FAIL : chown %s %d.%d, because %s", db_file, uid, userinfo->pw_gid, buf); ++ //_LOGD("FAIL : chown %s %d.%d, because %s", db_file, uid, userinfo->pw_gid, buf); ++ _LOGD("FAIL : chown %s %d.%d, because %s", files[i], uid, userinfo->pw_gid, buf); + return -1; + } + + ret = chmod(files[i], S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH); + if (ret == -1) { ++ if (files[i] == journal_file && errno == ENOENT) ++ continue; + strerror_r(errno, buf, sizeof(buf)); +- _LOGD("FAIL : chmod %s 0664, because %s", db_file, buf); ++ //_LOGD("FAIL : chmod %s 0664, because %s", db_file, buf); ++ _LOGD("FAIL : chmod %s 0664, because %s", files[i], buf); + return -1; + } + } |