summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2012-10-22 15:19:16 -0700
committerKenny Root <kroot@google.com>2012-10-22 15:20:52 -0700
commit9157d3f3b70f5225e06b0a478f2d3c5ce3d923b2 (patch)
treec02e39a9b7d640187137671a1dcef234369f95c7 /cmds
parent2278898126c1cea4bd345bb96313d381b4ad3993 (diff)
downloadframeworks_base-9157d3f3b70f5225e06b0a478f2d3c5ce3d923b2.zip
frameworks_base-9157d3f3b70f5225e06b0a478f2d3c5ce3d923b2.tar.gz
frameworks_base-9157d3f3b70f5225e06b0a478f2d3c5ce3d923b2.tar.bz2
Clear data deletes too much
Bug: 7389445 Change-Id: Ic12d7a8e37747dc1a9b71ec5f881b5e440e0a75e
Diffstat (limited to 'cmds')
-rw-r--r--cmds/installd/commands.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds/installd/commands.c b/cmds/installd/commands.c
index 8e4d7ed..387f33d 100644
--- a/cmds/installd/commands.c
+++ b/cmds/installd/commands.c
@@ -185,8 +185,8 @@ int delete_user_data(const char *pkgname, uid_t persona)
if (create_pkg_path(pkgdir, pkgname, PKG_DIR_POSTFIX, persona))
return -1;
- /* delete contents AND directory, no exceptions */
- return delete_dir_contents(pkgdir, 1, NULL);
+ /* delete contents, excluding "lib", but not the directory itself */
+ return delete_dir_contents(pkgdir, 0, "lib");
}
int make_user_data(const char *pkgname, uid_t uid, uid_t persona)