diff options
author | Sangyoon Jang <s89.jang@samsung.com> | 2017-01-04 15:27:20 +0900 |
---|---|---|
committer | Sangyoon Jang <s89.jang@samsung.com> | 2017-01-04 15:34:44 +0900 |
commit | 4fa9e329803529328c8a40da87c615c9b24677cd (patch) | |
tree | 1243590bb40365e7976f08343fcbb303fd5ae5b7 | |
parent | 3dd6c6b1a9944e8ce90ec3779239280afc5d4843 (diff) | |
download | pkgmgr-server-4fa9e329803529328c8a40da87c615c9b24677cd.tar.gz pkgmgr-server-4fa9e329803529328c8a40da87c615c9b24677cd.tar.bz2 pkgmgr-server-4fa9e329803529328c8a40da87c615c9b24677cd.zip |
Adjust to change of pkg_cleardata interface
Submit together:
- https://review.tizen.org/gerrit/108352
Change-Id: Id20f7c3362a7d12c7f2f565b9533879a8f659174
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
-rw-r--r-- | src/pkgmgr-server.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/pkgmgr-server.c b/src/pkgmgr-server.c index 47002d1..f55c88d 100644 --- a/src/pkgmgr-server.c +++ b/src/pkgmgr-server.c @@ -1164,9 +1164,10 @@ static int __process_cleardata(struct backend_job *job) if ((int)job->target_uid < REGULAR_USER) return -1; - snprintf(args, sizeof(args), "%s -d %s", backend_cmd, job->pkgid); + snprintf(args, sizeof(args), "%s -d -n %s -u %d", + backend_cmd, job->pkgid, job->target_uid); argv = __generate_argv(args); - pid = __fork_and_exec_with_args(argv, job->target_uid); + pid = __fork_and_exec_with_args(argv, APPFW_UID); g_strfreev(argv); return pid; @@ -1182,9 +1183,10 @@ static int __process_clearcache(struct backend_job *job) if ((int)job->target_uid < REGULAR_USER) return -1; - snprintf(args, sizeof(args), "%s -c %s", backend_cmd, job->pkgid); + snprintf(args, sizeof(args), "%s -c -n %s -u %d", + backend_cmd, job->pkgid, job->target_uid); argv = __generate_argv(args); - pid = __fork_and_exec_with_args(argv, job->target_uid); + pid = __fork_and_exec_with_args(argv, APPFW_UID); g_strfreev(argv); return pid; |