projects
/
platform
/
core
/
appfw
/
pkgmgr-tool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bc7bb1
)
Fix grant ownership when perfoming resource coping
57/291557/1
author
ilho kim
<ilho159.kim@samsung.com>
Tue, 18 Apr 2023 08:40:40 +0000
(17:40 +0900)
committer
ilho kim
<ilho159.kim@samsung.com>
Tue, 18 Apr 2023 08:40:40 +0000
(17:40 +0900)
When copying the directory, ownership was not granted
Change-Id: Ie77919296eaef5a92b3994efdb52be9ec9003189
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
src/res-copy/src/file_util.cc
patch
|
blob
|
history
diff --git
a/src/res-copy/src/file_util.cc
b/src/res-copy/src/file_util.cc
index
1a8eb2e
..
0d8d504
100644
(file)
--- a/
src/res-copy/src/file_util.cc
+++ b/
src/res-copy/src/file_util.cc
@@
-149,6
+149,10
@@
bool CopyDir(const boost::filesystem::path& src,
bf::rename(destination, target);
}
+
+ if (!SetDirOwnershipAndPermissions(
+ destination, kDirectoryMode650, kRootUID, kPrivPlatformGid))
+ return false;
}
} catch (const bf::filesystem_error& error) {
LOG(ERROR) << "Failed to copy directory: " << error.what();