summaryrefslogtreecommitdiff
path: root/sutils/fstab.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-09-17 12:45:16 +0000
committerThomas Bushnell <thomas@gnu.org>1999-09-17 12:45:16 +0000
commit457268a31380ed3cf80573962ebe15f88b9e42ff (patch)
tree74525379746650b47b6cf3141f0c8004dc65fa8f /sutils/fstab.c
parente4c28917dd3ee9708ded9fe19b314e6ca4ab5eef (diff)
1999-09-17 Thomas Bushnell, BSG <tb@mit.edu>
* fstab.c (fstab_read): Ignore filesystems with types of ignore, nfs, or swap.
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);