summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-06-10 18:37:52 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-06-10 18:37:52 +0000
commit80774990f5bba0c76e7bbcff40ec17199cbe0bc9 (patch)
tree83bbcae946de987bef468912c444d68a592a2fb9 /src
parentabc9749d1a7a441a0a602166927c0fe50fd84fb3 (diff)
downloads6-rc-80774990f5bba0c76e7bbcff40ec17199cbe0bc9.tar.xz
s6-rc-init bugfix
Diffstat (limited to 'src')
-rw-r--r--src/s6-rc/s6-rc-init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/s6-rc/s6-rc-init.c b/src/s6-rc/s6-rc-init.c
index 75f80ef..3ea1a23 100644
--- a/src/s6-rc/s6-rc-init.c
+++ b/src/s6-rc/s6-rc-init.c
@@ -81,7 +81,7 @@ int main (int argc, char const *const *argv)
byte_copy(lfn, llen, live) ;
byte_copy(lfn + llen, 6, "/lock") ;
- fdlock = open_write(lfn) ;
+ fdlock = open_trunc(lfn) ;
if (fdlock < 0)
{
cleanup(live) ;