summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/s6-rc/s6-rc-db.c3
-rw-r--r--src/s6-rc/s6-rc.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/s6-rc/s6-rc-db.c b/src/s6-rc/s6-rc-db.c
index e6b5e8c..8cfe5b9 100644
--- a/src/s6-rc/s6-rc-db.c
+++ b/src/s6-rc/s6-rc-db.c
@@ -50,7 +50,8 @@ static void print_bundle_contents (char const *name)
strerr_dief2x(4, "invalid database in ", compiled) ;
if (!str_diff(name, db->string + db->services[x].name))
strerr_dief5x(1, "in database ", compiled, ": identifier ", name, " represents an atomic service") ;
- if (buffer_puts(buffer_1, db->string + db->services[x].name) < 0)
+ if (buffer_puts(buffer_1, db->string + db->services[x].name) < 0
+ || buffer_put(buffer_1, "\n", 1) < 0)
strerr_diefu1sys(111, "write to stdout") ;
}
else
diff --git a/src/s6-rc/s6-rc.c b/src/s6-rc/s6-rc.c
index eaaf036..4cb68b6 100644
--- a/src/s6-rc/s6-rc.c
+++ b/src/s6-rc/s6-rc.c
@@ -516,6 +516,7 @@ int main (int argc, char const *const *argv)
if (what == 1)
{
+ if (!up) invert_selection() ;
print_services() ;
return 0 ;
}