summaryrefslogtreecommitdiff
path: root/sutils/fstab.c
diff options
context:
space:
mode:
Diffstat (limited to 'sutils/fstab.c')
-rw-r--r--sutils/fstab.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sutils/fstab.c b/sutils/fstab.c
index f2f57c58..105e159c 100644
--- a/sutils/fstab.c
+++ b/sutils/fstab.c
@@ -584,6 +584,10 @@ fstab_read (struct fstab *fstab, const char *name)
if (! mntent)
err = errno;
+ else if (!strcmp (mntent->mnt_type, MNTTYPE_IGNORE)
+ || !strcmp (mntent->mnt_type, MNTTYPE_NFS)
+ || !strcmp (mntent->mnt_type, MNTTYPE_SWAP))
+ continue;
else if (fstab_find_device (fstab, mntent->mnt_fsname))
error (0, 0, "%s: Warning: duplicate entry for device %s (%s)",
name, mntent->mnt_fsname, mntent->mnt_dir);