From: Tulio A M Mendes Date: Tue, 26 May 2026 05:30:53 +0000 (-0300) Subject: security: document getlogin/who as placeholder (Fase 5) X-Git-Url: https://projects.tadryanom.me/?a=commitdiff_plain;h=60ae76557054ee068673ff1dcd71dc6e46c400f9;p=AdrOS.git security: document getlogin/who as placeholder (Fase 5) --- 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;