author | Olivier Brunel
<jjk@jjacky.com> 2015-02-21 13:30:57 UTC |
committer | Olivier Brunel
<jjk@jjacky.com> 2015-04-04 12:47:34 UTC |
parent | c3242c3490353012aa969d22398188ba4eb22c52 |
src/anopa/aa-enable.c | +3 | -1 |
src/anopa/aa-start.c | +2 | -0 |
diff --git a/src/anopa/aa-enable.c b/src/anopa/aa-enable.c index 98551f5..74a4b3f 100644 --- a/src/anopa/aa-enable.c +++ b/src/anopa/aa-enable.c @@ -116,7 +116,9 @@ enable_service (const char *name, int from_next) static int it_list (direntry *d, void *data) { - if (d->d_type != DT_DIR) + if (*d->d_name == '.') + return 0; + else if (d->d_type != DT_DIR) enable_service (d->d_name, 0); else { diff --git a/src/anopa/aa-start.c b/src/anopa/aa-start.c index 20802d1..d9a5899 100644 --- a/src/anopa/aa-start.c +++ b/src/anopa/aa-start.c @@ -167,6 +167,8 @@ add_service (const char *name) static int it_start (direntry *d, void *data) { + if (*d->d_name == '.') + return 0; tain_now_g (); add_service (d->d_name); return 0;