[Pkg-libvirt-commits] [libguestfs] 08/14: inspect: ignore /etc/fstab with no entries (RHBZ#1113156).
Hilko Bengen
bengen at moszumanska.debian.org
Sat Aug 30 08:29:26 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag upstream/1.27.21
in repository libguestfs.
commit 3fc6983b1666a32ea6c1b44d88f140e3c84e7201
Author: Pino Toscano <ptoscano at redhat.com>
Date: Mon Jul 7 11:40:19 2014 +0200
inspect: ignore /etc/fstab with no entries (RHBZ#1113156).
Just like no /etc/fstab is not an error, having one with no entries
shouldn't be an issue either.
With systemd, this could be a valid setup, with mount points set its own
way.
---
src/inspect-fs-unix.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/src/inspect-fs-unix.c b/src/inspect-fs-unix.c
index 739a431..89236ab 100644
--- a/src/inspect-fs-unix.c
+++ b/src/inspect-fs-unix.c
@@ -960,11 +960,6 @@ check_fstab (guestfs_h *g, struct inspect_fs *fs)
if (entries == NULL)
return -1;
- if (entries[0] == NULL) {
- error (g, _("could not parse /etc/fstab or empty file"));
- return -1;
- }
-
for (entry = entries; *entry != NULL; entry++) {
CLEANUP_FREE char *spec = NULL;
CLEANUP_FREE char *mp = NULL;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git
More information about the Pkg-libvirt-commits
mailing list