diff options
Diffstat (limited to 'sutils')
-rw-r--r-- | sutils/ChangeLog | 5 | ||||
-rw-r--r-- | sutils/fstab.c | 4 |
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); |