cfengine-3.6.2-ifconfig.patch 486 B

123456789101112
  1. --- cfengine-3.6.2.orig/libenv/unix_iface.c 2014-09-25 07:53:31.000000000 -0400
  2. +++ cfengine-3.6.2/libenv/unix_iface.c 2014-11-26 23:55:20.151351070 -0500
  3. @@ -625,7 +625,7 @@
  4. return;
  5. }
  6. #else
  7. - if ((pp = cf_popen("/sbin/ifconfig -a", "r", true)) == NULL)
  8. + if ((pp = cf_popen("/sbin/ifconfig -a", "r", true)) == NULL || (pp = cf_popen("/bin/ifconfig -a", "r", true)) == NULL)
  9. {
  10. Log(LOG_LEVEL_VERBOSE, "Could not find interface info");
  11. return;