Welcome to little lamb

Code » anopa » commit c602de6

start: Fix error message using wrong service name

author Olivier Brunel
2015-07-21 19:46:45 UTC
committer Olivier Brunel
2015-07-21 19:46:45 UTC
parent 5fb1620643f14da1493c6a5c716e44e837d824cb

start: Fix error message using wrong service name

On ERR_DEPEND the name of the service failing was using instead of that
of the failing dependency.

src/libanopa/service_start.c +1 -1

diff --git a/src/libanopa/service_start.c b/src/libanopa/service_start.c
index a207777..9dfb726 100644
--- a/src/libanopa/service_start.c
+++ b/src/libanopa/service_start.c
@@ -100,7 +100,7 @@ _it_start_needs (direntry *d, void *data)
 
         if (!(it_data->mode & AA_MODE_IS_DRY))
         {
-            const char *name = aa_service_name (s);
+            const char *name = d->d_name;
             int l_n = strlen (name);
             int l_em = strlen (errmsg[-r]);
             char buf[l_n + 2 + l_em + 1];