summaryrefslogtreecommitdiffstats
path: root/src/inspect_fs_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/inspect_fs_unix.c')
-rw-r--r--src/inspect_fs_unix.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/inspect_fs_unix.c b/src/inspect_fs_unix.c
index 5695adc1..2caf4002 100644
--- a/src/inspect_fs_unix.c
+++ b/src/inspect_fs_unix.c
@@ -450,8 +450,7 @@ guestfs___check_linux_root (guestfs_h *g, struct inspect_fs *fs)
else if (guestfs_exists (g, "/etc/ttylinux-target") > 0) {
fs->distro = OS_DISTRO_TTYLINUX;
- fs->product_name = guestfs___first_line_of_file (g, "/etc/ttylinux-target");
- if (fs->product_name == NULL)
+ if (parse_release_file (g, fs, "/etc/ttylinux-target") == -1)
return -1;
if (guestfs___parse_major_minor (g, fs) == -1)