You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
803 B

  1. From 16d4899d52b3b88774ac6d9b3cc0f5626f4705da Mon Sep 17 00:00:00 2001
  2. From: Lee Duncan <lduncan@suse.com>
  3. Date: Tue, 19 Nov 2019 07:54:41 -0800
  4. Subject: [PATCH] Ignore iface.example in iface match checks
  5. Just a cleanup, as looking at the example file
  6. didn't hurt anything, but did waste our time.
  7. ---
  8. usr/iface.c | 3 +++
  9. 1 file changed, 3 insertions(+)
  10. diff --git a/usr/iface.c b/usr/iface.c
  11. index 323f1675..11f3d2ac 100644
  12. --- a/usr/iface.c
  13. +++ b/usr/iface.c
  14. @@ -905,6 +905,9 @@ int iface_for_each_iface(void *data, int skip_def, int *nr_found,
  15. !strcmp(iface_dent->d_name, ".."))
  16. continue;
  17. + if (!strcmp(iface_dent->d_name, "iface.example"))
  18. + continue;
  19. +
  20. log_debug(5, "iface_for_each_iface found %s",
  21. iface_dent->d_name);
  22. iface = iface_alloc(iface_dent->d_name, &err);