git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Version 1.10.10.
[libguestfs.git]
/
fish
/
inspect.c
diff --git
a/fish/inspect.c
b/fish/inspect.c
index
713501e
..
07af818
100644
(file)
--- a/
fish/inspect.c
+++ b/
fish/inspect.c
@@
-73,6
+73,12
@@
compare_keys (const void *p1, const void *p2)
void
inspect_mount (void)
{
void
inspect_mount (void)
{
+ if (live) {
+ fprintf (stderr, _("%s: don't use --live and -i options together\n"),
+ program_name);
+ exit (EXIT_FAILURE);
+ }
+
inspect_do_decrypt ();
char **roots = guestfs_inspect_os (g);
inspect_do_decrypt ();
char **roots = guestfs_inspect_os (g);
@@
-136,7
+142,7
@@
void
print_inspect_prompt (void)
{
char *name = guestfs_inspect_get_product_name (g, root);
print_inspect_prompt (void)
{
char *name = guestfs_inspect_get_product_name (g, root);
- if (STRNEQ (name, "unknown"))
+ if (
name &&
STRNEQ (name, "unknown"))
printf (_("Operating system: %s\n"), name);
free (name);
printf (_("Operating system: %s\n"), name);
free (name);