forked from Bananymous/banan-os
Userspace: init now default logins as user
This commit is contained in:
parent
b2de706693
commit
eb7ee13f43
|
@ -93,6 +93,8 @@ int main()
|
||||||
{
|
{
|
||||||
initialize_stdio();
|
initialize_stdio();
|
||||||
|
|
||||||
|
bool first = true;
|
||||||
|
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
auto users = parse_users();
|
auto users = parse_users();
|
||||||
|
@ -100,7 +102,13 @@ int main()
|
||||||
char name_buffer[128];
|
char name_buffer[128];
|
||||||
BAN::StringView name;
|
BAN::StringView name;
|
||||||
|
|
||||||
while (true)
|
if (first)
|
||||||
|
{
|
||||||
|
name = "user"sv;
|
||||||
|
first = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
while (name.empty())
|
||||||
{
|
{
|
||||||
printf("username: ");
|
printf("username: ");
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
Loading…
Reference in New Issue