Replacing recursive opendir with a utility function
authorJanusz Majnert <j.majnert@samsung.com>
Tue, 23 Oct 2012 12:32:29 +0000 (14:32 +0200)
committerTaejeong Lee <taejeong.lee@samsung.com>
Fri, 2 Nov 2012 07:10:06 +0000 (16:10 +0900)
commit838b4515b0b769d9016b4d75a2cfa57cc04a531f
treeed54e4fb86375b88ce819436cabe1f31c986ab4e
parent78f11c1f44034926ac24a9a88c7ebf3b607e27a6
Replacing recursive opendir with a utility function

[Issue#] N/A
[Feature] Replacing recursive opendir with safer utility function
[Cause] Recursive opendir may reach limit of open dirs for process
[Solution] Replace with a utility function
[Verification] Uninstall widget, verify that installation directory was removed

Installer removes the widget installation directory, which can have multiple
levels of directories. Instead of recursively calling opendir, installer will
now call WrtUtilRemove function that uses safe fts_* functions to traverse the
directory tree.

Change-Id: I3ff7e02b32c76da37785f6d6b793e19bca308ae1
src/jobs/widget_uninstall/task_remove_files.cpp
src/jobs/widget_uninstall/task_remove_files.h
src/jobs/widget_uninstall/uninstaller_context.h