comparison src/main.rs @ 26:afec42bdd5ab

...
author AnaTofuZ <anatofuz@gmail.com>
date Fri, 20 Nov 2020 14:00:52 +0900
parents da27437a94b0
children 1c3b6b6ee0b1
comparison
equal deleted inserted replaced
25:da27437a94b0 26:afec42bdd5ab
120 command::start(&user_name, arg.name); 120 command::start(&user_name, arg.name);
121 } 121 }
122 122
123 SubCommand::Define(arg) => { 123 SubCommand::Define(arg) => {
124 user::set_root_id(); 124 user::set_root_id();
125 let user = user::User{ 125 let user = user::User {
126 Uid: uid, 126 uid,
127 Gid: gid, 127 gid,
128 Name: user_name.to_string() 128 name: user_name,
129 }; 129 };
130 command::define(&user, arg.name); 130 command::define(&user, arg.name);
131 } 131 }
132 132
133 SubCommand::Shutdown(arg) => { 133 SubCommand::Shutdown(arg) => {