summaryrefslogtreecommitdiff
path: root/system/utmps/wtmpd.run
diff options
context:
space:
mode:
Diffstat (limited to 'system/utmps/wtmpd.run')
-rw-r--r--system/utmps/wtmpd.run2
1 files changed, 2 insertions, 0 deletions
diff --git a/system/utmps/wtmpd.run b/system/utmps/wtmpd.run
index ab5a40641..fa78806c9 100644
--- a/system/utmps/wtmpd.run
+++ b/system/utmps/wtmpd.run
@@ -1,6 +1,8 @@
#!/bin/execlineb -P
fdmove -c 2 1
+if { mkdir -p -m 0755 /run/utmps }
+if { chown utmp:utmp /run/utmps }
s6-setuidgid utmp
cd /run/utmps
fdmove 1 3