diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-09-25 16:42:59 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-09-25 16:42:59 +0000 |
commit | 6fc541a9b8bce4f106ebd8ea5893272a2b8f99fa (patch) | |
tree | 6345a5d78a8edf7c6ab698399696469ed9c7e64b /src/rc-update.c | |
parent | 284286004e024dd240cc08d84ebd8b6748d311c8 (diff) |
Retain behavior where `rc-update del foo` deletes foo from all runlevels.
Diffstat (limited to 'src/rc-update.c')
-rw-r--r-- | src/rc-update.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/rc-update.c b/src/rc-update.c index f5d8855f..a24f982c 100644 --- a/src/rc-update.c +++ b/src/rc-update.c @@ -215,11 +215,8 @@ int rc_update (int argc, char **argv) eerror ("%s: service `%s' does not exist", applet, service); else { retval = EXIT_SUCCESS; - if (! runlevels) { - runlevel = rc_get_runlevel (); - rc_strlist_add (&runlevels, runlevel); - free (runlevel); - } + if (! runlevels) + runlevels = rc_get_runlevels (); STRLIST_FOREACH (runlevels, runlevel, i) { if (action & DOADD) { if (! add (runlevel, service)) |