From c597c2332b1bb425d60f5de5095bf8e3bad5e672 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 16 May 2019 20:18:17 +0200 Subject: [PATCH] Userland: Add /bin/whoami --- Userland/whoami.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Userland/whoami.cpp diff --git a/Userland/whoami.cpp b/Userland/whoami.cpp new file mode 100644 index 0000000000..985d91417f --- /dev/null +++ b/Userland/whoami.cpp @@ -0,0 +1,8 @@ +#include +#include + +int main(int, char**) +{ + puts(getlogin()); + return 0; +}