aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-05-28 12:11:37 -0400
committerMike Frysinger <vapier@gentoo.org>2011-05-28 12:11:37 -0400
commit11d8b70d74b339777c7849dc3688244e85587501 (patch)
tree25f6867a9fd6bf63e0c2a8b729f1e22bec8b2674 /src
parent227f83163908a1e2bfb783a7500263f5c204cb36 (diff)
rc-update: sort "show" output
X-Gentoo-Bug: 367305 X-Gentoo-Bug-URL: http://bugs.gentoo.org/367305 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'src')
-rw-r--r--src/rc/rc-update.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rc/rc-update.c b/src/rc/rc-update.c
index 5517c69a..40dfb508 100644
--- a/src/rc/rc-update.c
+++ b/src/rc/rc-update.c
@@ -164,6 +164,7 @@ show(RC_STRINGLIST *runlevels, bool verbose)
char buffer[PATH_MAX];
size_t l;
+ rc_stringlist_sort(&services);
TAILQ_FOREACH(service, services, entries) {
in = rc_stringlist_new();
inone = false;
@@ -299,6 +300,7 @@ rc_update(int argc, char **argv)
runlevels = rc_runlevel_list();
}
+ rc_stringlist_sort(&runlevels);
show (runlevels, verbose);
} else {
if (!service)