summaryrefslogtreecommitdiffstats
path: root/examples/virt-dhcp-address.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/virt-dhcp-address.c')
-rw-r--r--examples/virt-dhcp-address.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/virt-dhcp-address.c b/examples/virt-dhcp-address.c
index c4e3647a..df06ebed 100644
--- a/examples/virt-dhcp-address.c
+++ b/examples/virt-dhcp-address.c
@@ -206,10 +206,8 @@ print_dhcp_address_windows (guestfs_h *g, char *root_fs)
/* Locate the SYSTEM hive case-sensitive path. */
system_path =
guestfs_case_sensitive_path (g, "/windows/system32/config/system");
- if (!system_path) {
- fprintf (stderr, "virt-dhcp-address: HKLM\\System not found in this guest.");
+ if (!system_path)
exit (EXIT_FAILURE);
- }
/* Open the hive to parse it. Note that before libguestfs 1.19.35
* you had to download the file and parse it using hivex(3). Since