summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-06-03 22:09:59 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2021-06-03 22:09:59 +0000
commit0e83f5fcfd5896e007ee3d74b6eec00f0480d738 (patch)
tree2b9a932c024c24deffb74f2bd52748de3cb02e1c
parentf922fbd60277387623cf78d999b04b15746bcb3a (diff)
downloads6-rc-0e83f5fcfd5896e007ee3d74b6eec00f0480d738.tar.xz
bugfix: s6-rc-compile didn't properly read flags
-rw-r--r--AUTHORS1
-rw-r--r--src/s6-rc/s6-rc-compile.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/AUTHORS b/AUTHORS
index 02a3e22..19d7d48 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -5,6 +5,7 @@ Contributors:
Eric Le Bihan <eric.le.bihan.dev@free.fr>
Brett Neumeier <bneumeier@gmail.com>
Lionel Van Bemten <lionel.van_bemten@nokia.com>
+ Christian Hohnstaedt <christian@hohnstaedt.de>
Thanks to:
Avery Payne <avery.p.payne@gmail.com>
diff --git a/src/s6-rc/s6-rc-compile.c b/src/s6-rc/s6-rc-compile.c
index 7aa37ea..c233f1a 100644
--- a/src/s6-rc/s6-rc-compile.c
+++ b/src/s6-rc/s6-rc-compile.c
@@ -368,7 +368,7 @@ static uint32_t read_flags (int dfd, char const *srcdir, char const *name)
if (errno != ENOENT)
strerr_diefu6sys(111, "read ", srcdir, "/", name, "/", files[i]) ;
}
- else flags |= i ;
+ else flags |= 1 << i ;
}
return flags ;
}