projects
/
platform
/
framework
/
web
/
download-provider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
587af05
)
Fix invalid path issue
13/184613/1
accepted/tizen/unified/20180723.101935
submit/tizen/20180720.003318
author
Seonah Moon
<seonah1.moon@samsung.com>
Thu, 19 Jul 2018 07:17:16 +0000
(16:17 +0900)
committer
Seonah Moon
<seonah1.moon@samsung.com>
Thu, 19 Jul 2018 07:17:20 +0000
(16:17 +0900)
Change-Id: I7aac5194565fefada16c919b48866a59fc0cdc94
provider/download-provider-security.c
patch
|
blob
|
history
diff --git
a/provider/download-provider-security.c
b/provider/download-provider-security.c
index
15ff4a9
..
187dee7
100644
(file)
--- a/
provider/download-provider-security.c
+++ b/
provider/download-provider-security.c
@@
-218,7
+218,7
@@
int dp_is_valid_dir(dp_credential cred, const char *dirpath)
return DP_ERROR_INVALID_DESTINATION;
TRACE_INFO("pkg_id: %s", pkg_id);
- if (strncmp(resolved_path + strlen(apps_storage)
+ 2
,
+ if (strncmp(resolved_path + strlen(apps_storage),
pkg_id, strlen(pkg_id)) != 0) {
TRACE_ERROR("Permission denied");
free(pkg_id);