summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-02-14 21:56:52 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2021-02-14 21:56:52 +0000
commit6e0007d32054d0074d93bfa71cfb1f593ebddbf7 (patch)
treed0ee544ac89639b2580b4528155ffc7d15d837dd
parent174d12ab273a2e124e80a04b429633071352f393 (diff)
downloads6-linux-init-6e0007d32054d0074d93bfa71cfb1f593ebddbf7.tar.xz
bugfix: utmps default should be none
-rw-r--r--doc/s6-linux-init-maker.html3
-rw-r--r--src/init/s6-linux-init-maker.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/doc/s6-linux-init-maker.html b/doc/s6-linux-init-maker.html
index b1b0649..f8ef940 100644
--- a/doc/s6-linux-init-maker.html
+++ b/doc/s6-linux-init-maker.html
@@ -321,7 +321,8 @@ available when the s6-linux-init package has been built with the
<tt>--enable-utmps</tt> configure option, that enables support for the
<a href="//skarnet.org/software/utmps/">utmps</a> package. The option
defines the user that the <tt>utmpd</tt> and <tt>wtmpd</tt> services
-will run as. Default is <strong><tt>utmp</tt></strong>. </li> <br />
+will run as, and activates these services. Default is <strong>no
+utmpd or wtmpd services</strong>. </li> <br />
<li> <tt>-C</tt>&nbsp;: create a set of scripts that is suitable
for running <em>in a container</em>. This modifies some behaviours:
diff --git a/src/init/s6-linux-init-maker.c b/src/init/s6-linux-init-maker.c
index 7c315a6..6d86ff9 100644
--- a/src/init/s6-linux-init-maker.c
+++ b/src/init/s6-linux-init-maker.c
@@ -59,7 +59,7 @@ static int inns = 0 ;
static int nologger = 0 ;
#ifdef S6_LINUX_INIT_UTMPD_PATH
-static char const *utmp_user = "utmp" ;
+static char const *utmp_user = "" ;
#endif
typedef int writetobuf_func_t (buffer *, char const *) ;