Welcome to little lamb

Code » anopa » commit 7f78c30

enable: Fix rare missing report of failed service..

author Olivier Brunel
2018-01-21 14:36:52 UTC
committer Olivier Brunel
2018-01-21 19:49:08 UTC
parent 91de49a62c9821dfd5505f317f3e51fa893f378b

enable: Fix rare missing report of failed service..

Failure to access() the servicedir when using --upgrade did not list
the service as failed, but it should.

src/anopa/aa-enable.c +2 -0

diff --git a/src/anopa/aa-enable.c b/src/anopa/aa-enable.c
index 67648ce..b743190 100644
--- a/src/anopa/aa-enable.c
+++ b/src/anopa/aa-enable.c
@@ -410,6 +410,8 @@ main (int argc, char * const argv[])
                     aa_bs (AA_ERR, ": " "unable to check for existing servicedir" ": ");
                     aa_bs (AA_ERR, strerror (e));
                     aa_end_err ();
+
+                    genalloc_append (size_t, &ga_failed, &offset);
                 }
                 else
                 {