[Pkg-libvirt-commits] [libguestfs] 78/156: inspect: ignore /etc/fstab with no entries (RHBZ#1113156).
Hilko Bengen
bengen at moszumanska.debian.org
Sat Aug 30 08:26:00 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch master
in repository libguestfs.
commit 5a609116526099061b84e085681a32fc3ac9b9b1
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.
(cherry picked from commit 3fc6983b1666a32ea6c1b44d88f140e3c84e7201)
---
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 17b0b5f..7221f24 100644
--- a/src/inspect-fs-unix.c
+++ b/src/inspect-fs-unix.c
@@ -917,11 +917,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