summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/cons/cons.c2
-rw-r--r--usr.bin/fetch/fetch.c9
2 files changed, 5 insertions, 6 deletions
diff --git a/sys/dev/cons/cons.c b/sys/dev/cons/cons.c
index 7407ec1..88cbcbe 100644
--- a/sys/dev/cons/cons.c
+++ b/sys/dev/cons/cons.c
@@ -375,7 +375,6 @@ dev_read(dev_t dev, struct sio_txn *sio, int flags)
}
cons_attach();
- spinlock_acquire(&g_root_scr.lock);
for (;;) {
/* Buffer too small */
if (n == 0) {
@@ -392,7 +391,6 @@ dev_read(dev_t dev, struct sio_txn *sio, int flags)
break;
}
}
- spinlock_release(&g_root_scr.lock);
return sio->len;
}
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;
}