From 457268a31380ed3cf80573962ebe15f88b9e42ff Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Fri, 17 Sep 1999 12:45:16 +0000 Subject: 1999-09-17 Thomas Bushnell, BSG * fstab.c (fstab_read): Ignore filesystems with types of ignore, nfs, or swap. --- sutils/fstab.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sutils/fstab.c') 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); -- cgit v1.2.3