[Release] wrt-installer_0.1.85
[platform/framework/web/wrt-installer.git] / src / jobs / widget_install / directory_api.cpp
index 678ec1d..a43b24c 100644 (file)
@@ -71,6 +71,8 @@ bool DirectoryCopy(std::string source, std::string dest)
             outfile << infile.rdbuf();
             outfile.close();
             infile.close();
+
+            chown(destFile.c_str(), statInfo.st_uid, statInfo.st_gid);
         }
     } while (dEntryResult != NULL && return_code == 0);
     closedir(dir);