Fix permission error in data folder
authorDuyoung Jang <duyoung.jang@samsung.com>
Fri, 4 Jan 2013 08:48:45 +0000 (17:48 +0900)
committerDuyoung Jang <duyoung.jang@samsung.com>
Fri, 4 Jan 2013 08:48:45 +0000 (17:48 +0900)
Change-Id: If5167ec2d7a6002d52dbe2a50a9026a2c06878e3
Signed-off-by: Duyoung Jang <duyoung.jang@samsung.com>
inc/InstallerDefs.h
src/Util/InstallerUtil.cpp

index f8fb4c9..dea52df 100755 (executable)
@@ -21,7 +21,7 @@
 #ifndef _INSTALLER_DEFS_H_
 #define _INSTALLER_DEFS_H_
 
-#define OSP_INSTALLER_VERSION "osp-installer version = [2013/01/03]_[3]"
+#define OSP_INSTALLER_VERSION "osp-installer version = [2013/01/04]_RC[1]"
 
 #define DIR_BIN                                L"/bin"
 #define DIR_INFO                       L"/info"
index 99ba375..6957a18 100755 (executable)
@@ -330,7 +330,11 @@ InstallerUtil::ChangeDirectoryPermission(const String& filePath, int mode, bool
                }
                else
                {
-                       ChangeDirectoryPermission(entryDir, mode);
+                       ChangeDirectoryPermission(entryDir, mode, isOwnerChanged);
+                       if (isOwnerChanged == true)
+                       {
+                               InstallerUtil::ChangeOwner(entryDir);
+                       }
                        InstallerUtil::ChangeMode(entryDir, mode | PERM_EXECUTE);
                }
        }