From eb7ee13f43155b09f527a5b1d31b6cfc0a2bf2ab 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 a1283fb7..c39ee92b 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);