summaryrefslogtreecommitdiff
path: root/usr.bin/fetch
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/fetch')
-rw-r--r--usr.bin/fetch/fetch.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/fetch/fetch.c b/usr.bin/fetch/fetch.c
index 42c2825..175cd0e 100644
--- a/usr.bin/fetch/fetch.c
+++ b/usr.bin/fetch/fetch.c
@@ -32,18 +32,19 @@
#include <string.h>
#include <stdio.h>
+static const char *user = "unknown";
+
#define ASCII_ART \
" ____ \n" \
" | \\__\\ \n" \
- " | /\\ \\ user: root\n" \
+ " | /\\ \\ user: %s\n" \
" |/ \\ \\ OS: Hyra/amd64 v"_OSVER"\n" \
" \\ R. \\ \\ arch: "_OSARCH"\n" \
- " \\ I. \\ \\"
-
+ " \\ I. \\ \\\n"
int
main(void)
{
- puts(ASCII_ART);
+ printf(ASCII_ART, getlogin());
return 0;
}