Userspace: init now default logins as user

This commit is contained in:
Bananymous 2023-06-12 00:46:07 +03:00
parent b2de706693
commit eb7ee13f43
1 changed files with 9 additions and 1 deletions

View File

@ -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);