summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/virt-dhcp-address.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/virt-dhcp-address.c b/examples/virt-dhcp-address.c
index 3534f0bc..c6f25c6c 100644
--- a/examples/virt-dhcp-address.c
+++ b/examples/virt-dhcp-address.c
@@ -169,7 +169,9 @@ print_dhcp_address_linux (guestfs_h *g, char *root, const char *logfile)
char **lines, *p;
size_t len;
- lines = guestfs_egrep (g, "dhclient.*: bound to ", logfile);
+ lines = guestfs_grep_opts (g, "dhclient.*: bound to ", logfile,
+ GUESTFS_GREP_OPTS_EXTENDED, 1,
+ -1);
if (lines == NULL)
exit (EXIT_FAILURE);