We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7443753 + 9157d3f commit e03c024Copy full SHA for e03c024
1 file changed
cmds/installd/commands.c
@@ -185,8 +185,8 @@ int delete_user_data(const char *pkgname, uid_t persona)
185
if (create_pkg_path(pkgdir, pkgname, PKG_DIR_POSTFIX, persona))
186
return -1;
187
188
- /* delete contents AND directory, no exceptions */
189
- return delete_dir_contents(pkgdir, 1, NULL);
+ /* delete contents, excluding "lib", but not the directory itself */
+ return delete_dir_contents(pkgdir, 0, "lib");
190
}
191
192
int make_user_data(const char *pkgname, uid_t uid, uid_t persona)
0 commit comments