Fix externelstorage download issue 80/81880/1 accepted/tizen/common/20160804.174631 accepted/tizen/mobile/20160809.062808 accepted/tizen/tv/20160809.062845 accepted/tizen/wearable/20160809.062907 submit/tizen_common/20160804.050909 submit/tizen_common/20160809.021304 submit/tizen_mobile/20160804.050855 submit/tizen_mobile/20160808.015447 submit/tizen_mobile/20160809.021200 submit/tizen_tv/20160804.050848 submit/tizen_tv/20160808.010716 submit/tizen_tv/20160809.021058 submit/tizen_wearable/20160804.050902 submit/tizen_wearable/20160808.015516 submit/tizen_wearable/20160809.021229
authormin7.choi <min7.choi@samsung.com>
Fri, 29 Jul 2016 04:44:40 +0000 (13:44 +0900)
committermin7.choi <min7.choi@samsung.com>
Fri, 29 Jul 2016 04:44:40 +0000 (13:44 +0900)
Change-Id: Icea27c2633f04a8b574e11e59f6f634e23b4dd58
Signed-off-by: min7.choi <min7.choi@samsung.com>
packaging/download-provider.spec
provider/download-provider-plugin-download-agent.c

index 278e283..1c6433d 100755 (executable)
@@ -1,7 +1,7 @@
 %define _ux_define tizen2.3
 Name:       download-provider
 Summary:    Download the contents in background
-Version:    2.1.58
+Version:    2.1.59
 Release:    0
 Group:      Development/Libraries
 License:    Apache-2.0
index f65f86b..f9e1b80 100755 (executable)
@@ -216,10 +216,13 @@ static int __set_file_permission_to_client(dp_client_slots_fmt *slot, dp_request
                                if (lstat_info.st_mode == fstat_info.st_mode &&
                                        lstat_info.st_ino == fstat_info.st_ino &&
                                        lstat_info.st_dev == fstat_info.st_dev) {
-                                       if (fchown(fd, cred.uid, cred.gid) != 0) {
+
+                                   if(strncmp(saved_path, "/opt/media/", 11) != 0){
+                                      if(fchown(fd, cred.uid, cred.gid) != 0){
                                                TRACE_ERROR("[ERROR][%d] permission user:%d group:%d",
                                                        request->id, cred.uid, cred.gid);
                                                errorcode = DP_ERROR_PERMISSION_DENIED;
+                                      }
                                        }
                                } else {
                                        TRACE_ERROR("fstat & lstat info have not matched");