am 7c5be65f: Merge "Rename \'mkuser\' command to \'mkuserconfig\'"

* commit '7c5be65f2819bf0328715bc405483788dd7a81f2':
  Rename 'mkuser' command to 'mkuserconfig'
This commit is contained in:
Robin Lee 2014-07-09 17:31:58 +00:00 committed by Android Git Automerger
commit 8098af6ea2
3 changed files with 5 additions and 5 deletions

View File

@ -269,7 +269,7 @@ int make_user_data(const char *pkgname, uid_t uid, userid_t userid, const char*
return 0;
}
int create_user(userid_t userid)
int make_user_config(userid_t userid)
{
if (ensure_config_user_dirs(userid) == -1) {
return -1;

View File

@ -109,9 +109,9 @@ static int do_mk_user_data(char **arg, char reply[REPLY_MAX])
/* pkgname, uid, userid, seinfo */
}
static int do_mk_user(char **arg, char reply[REPLY_MAX])
static int do_mk_user_config(char **arg, char reply[REPLY_MAX])
{
return create_user(atoi(arg[0])); /* userid */
return make_user_config(atoi(arg[0])); /* userid */
}
static int do_rm_user(char **arg, char reply[REPLY_MAX])
@ -168,7 +168,7 @@ struct cmdinfo cmds[] = {
{ "movefiles", 0, do_movefiles },
{ "linklib", 3, do_linklib },
{ "mkuserdata", 4, do_mk_user_data },
{ "mkuser", 1, do_mk_user },
{ "mkuserconfig", 1, do_mk_user_config },
{ "rmuser", 1, do_rm_user },
{ "idmap", 3, do_idmap },
{ "restorecondata", 3, do_restorecon_data },

View File

@ -204,7 +204,7 @@ int renamepkg(const char *oldpkgname, const char *newpkgname);
int fix_uid(const char *pkgname, uid_t uid, gid_t gid);
int delete_user_data(const char *pkgname, userid_t userid);
int make_user_data(const char *pkgname, uid_t uid, userid_t userid, const char* seinfo);
int create_user(userid_t userid);
int make_user_config(userid_t userid);
int delete_user(userid_t userid);
int delete_cache(const char *pkgname, userid_t userid);
int move_dex(const char *src, const char *dst, const char *instruction_set);