]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commitdiff
security: document getlogin/who as placeholder (Fase 5)
authorTulio A M Mendes <[email protected]>
Tue, 26 May 2026 05:30:53 +0000 (02:30 -0300)
committerTulio A M Mendes <[email protected]>
Wed, 3 Jun 2026 05:52:27 +0000 (02:52 -0300)
user/cmds/who/who.c
user/ulibc/src/unistd.c

index e06961190e4994a9279382f2b87e90230712a0fd..70182f2b223f38803e201aa4b31b177c69160ad2 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 /* AdrOS who utility — show logged-in users */
+/* L2: Placeholder - real who requires utmp/sessions/TTY infrastructure */
 #include <stdio.h>
 #include <unistd.h>
 
index 0cde624e4af9f45fef94b18ba19fa98512e34ec8..e618b2c06252361d5339f12a8cff6613330f6194 100644 (file)
@@ -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;