From 60ae76557054ee068673ff1dcd71dc6e46c400f9 Mon Sep 17 00:00:00 2001 From: Tulio A M Mendes Date: Tue, 26 May 2026 02:30:53 -0300 Subject: [PATCH] security: document getlogin/who as placeholder (Fase 5) --- user/cmds/who/who.c | 1 + user/ulibc/src/unistd.c | 1 + 2 files changed, 2 insertions(+) diff --git a/user/cmds/who/who.c b/user/cmds/who/who.c index e0696119..70182f2b 100644 --- a/user/cmds/who/who.c +++ b/user/cmds/who/who.c @@ -8,6 +8,7 @@ */ /* AdrOS who utility — show logged-in users */ +/* L2: Placeholder - real who requires utmp/sessions/TTY infrastructure */ #include #include diff --git a/user/ulibc/src/unistd.c b/user/ulibc/src/unistd.c index 0cde624e..e618b2c0 100644 --- a/user/ulibc/src/unistd.c +++ b/user/ulibc/src/unistd.c @@ -306,6 +306,7 @@ int execle(const char* path, const char* arg, ...) { return execve(path, (char* const*)args, envp); } +/* L2: Placeholder - real login requires utmp/sessions/TTY infrastructure */ static char _login_buf[32] = "root"; char* getlogin(void) { return _login_buf; -- 2.43.0