From 25f8343269896a84128d6c6ee053025c8d8cf41f Mon Sep 17 00:00:00 2001 From: Bananymous Date: Mon, 12 Jun 2023 00:46:07 +0300 Subject: [PATCH] Userspace: init now default logins as user --- userspace/init/main.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/userspace/init/main.cpp b/userspace/init/main.cpp index a1283fb7f5..c39ee92bf9 100644 --- a/userspace/init/main.cpp +++ b/userspace/init/main.cpp @@ -93,6 +93,8 @@ int main() { initialize_stdio(); + bool first = true; + while (true) { auto users = parse_users(); @@ -100,7 +102,13 @@ int main() char name_buffer[128]; BAN::StringView name; - while (true) + if (first) + { + name = "user"sv; + first = false; + } + + while (name.empty()) { printf("username: "); fflush(stdout);