summaryrefslogtreecommitdiff
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
parente4c28917dd3ee9708ded9fe19b314e6ca4ab5eef (diff)
1999-09-17 Thomas Bushnell, BSG <tb@mit.edu>
* fstab.c (fstab_read): Ignore filesystems with types of ignore, nfs, or swap.
-rw-r--r--sutils/ChangeLog5
-rw-r--r--sutils/fstab.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/sutils/ChangeLog b/sutils/ChangeLog
index c706adb0..2f3ab59a 100644
--- a/sutils/ChangeLog
+++ b/sutils/ChangeLog
@@ -1,3 +1,8 @@
+1999-09-17 Thomas Bushnell, BSG <tb@mit.edu>
+
+ * fstab.c (fstab_read): Ignore filesystems with types of ignore,
+ nfs, or swap.
+
1999-09-14 Thomas Bushnell, BSG <tb@mit.edu>
* MAKEDEV.sh (mkdev): pty master and slave nodes should have mode
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);