Change backup logic in mount update 21/286621/3
authorilho kim <ilho159.kim@samsung.com>
Tue, 10 Jan 2023 12:18:07 +0000 (21:18 +0900)
committerilho kim <ilho159.kim@samsung.com>
Wed, 11 Jan 2023 02:14:36 +0000 (11:14 +0900)
commit93edec9e8074683ffc510ab13a2d7eb65ab31fb2
treeabb40e9a15dc8ecd9967d7705f6ed00d9500d63b
parent4bbb5fc5fd8e926b21e0af06195853c4f99f9afe
Change backup logic in mount update

If the file to be backed up is a hierarchical structure, the move
operation is failed and the copy operation is executed
As a result, the ownership and permission and smack label disappears
in this case, Move the top directory to preserve it

Change-Id: Ife987fd4bd617a623df6dd553e797a8fb57d5530
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
src/hybrid/hybrid_installer.cc
src/wgt/step/filesystem/step_wgt_prepare_package_directory.cc
src/wgt/step/filesystem/step_wgt_update_package_directory.cc