diff options
author | Bruce Evans <bde@FreeBSD.org> | 1998-01-20 15:12:24 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 1998-01-20 15:12:24 +0000 |
commit | 66a655bcf6a2e79f02833df85378270da72ff09f (patch) | |
tree | af7154c4cb322fc2bcf27cb204606dc68ced9711 /usr.sbin/amd | |
parent | 8830deae19d206169cf7d0f34517e61f54e56c22 (diff) | |
download | src-66a655bcf6a2e79f02833df85378270da72ff09f.tar.gz src-66a655bcf6a2e79f02833df85378270da72ff09f.zip |
Notes
Diffstat (limited to 'usr.sbin/amd')
-rw-r--r-- | usr.sbin/amd/config/mtab_bsd.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/amd/config/mtab_bsd.c b/usr.sbin/amd/config/mtab_bsd.c index 39b42284b74b..9d17b41ba9af 100644 --- a/usr.sbin/amd/config/mtab_bsd.c +++ b/usr.sbin/amd/config/mtab_bsd.c @@ -35,9 +35,9 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * @(#)mtab_bsd.c 8.1 (Berkeley) 6/6/93 + * @(#)mtab_bsd.c 8.2 (Berkeley) 5/10/95 * - * $Id$ + * $Id: mtab_bsd.c,v 1.3 1997/02/22 16:02:26 peter Exp $ * */ @@ -55,12 +55,16 @@ struct statfs *mp; new_mp->mnt_fsname = strdup(mp->f_mntfromname); new_mp->mnt_dir = strdup(mp->f_mntonname); +#if BSD >= 199506 + ty = mp->f_fstypename; +#else switch (mp->f_type) { case MOUNT_UFS: ty = MTAB_TYPE_UFS; break; case MOUNT_NFS: ty = MTAB_TYPE_NFS; break; case MOUNT_MFS: ty = MTAB_TYPE_MFS; break; default: ty = "unknown"; break; } +#endif new_mp->mnt_type = strdup(ty); new_mp->mnt_opts = strdup("unset"); new_mp->mnt_freq = 0; |