diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-11-06 21:06:49 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-11-06 21:06:49 +0000 |
commit | 4239c5aec5d378fcbd95b201d9985c2a13ed7381 (patch) | |
tree | fb1191c581a16c835b52dbd01808de600e9a959e /bin/df | |
parent | 176d012e13cfab7b4a3c6018daf79279b5f65f14 (diff) |
complete ufs -> ffs change (From John Kohl; PR #1403)
Diffstat (limited to 'bin/df')
-rw-r--r-- | bin/df/df.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/df/df.c b/bin/df/df.c index ec571d2f4f2..a07523400a1 100644 --- a/bin/df/df.c +++ b/bin/df/df.c @@ -1,4 +1,4 @@ -/* $NetBSD: df.c,v 1.21 1995/08/11 00:38:15 jtc Exp $ */ +/* $NetBSD: df.c,v 1.21.2.1 1995/11/01 00:06:11 jtc Exp $ */ /* * Copyright (c) 1980, 1990, 1993, 1994 @@ -48,7 +48,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)df.c 8.7 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$NetBSD: df.c,v 1.21 1995/08/11 00:38:15 jtc Exp $"; +static char rcsid[] = "$NetBSD: df.c,v 1.21.2.1 1995/11/01 00:06:11 jtc Exp $"; #endif #endif /* not lint */ @@ -144,7 +144,7 @@ main(argc, argv) warn("%s", mntpt); continue; } - if (mount(MOUNT_UFS, mntpt, MNT_RDONLY, + if (mount(MOUNT_FFS, mntpt, MNT_RDONLY, &mdev) != 0) { (void)rmdir(mntpt); if (!ufs_df(*argv, &mntbuf[mntsize])) @@ -393,7 +393,7 @@ ufs_df(file, sfsp) mntpt = ""; memmove(&sfsp->f_mntonname[0], mntpt, MNAMELEN); memmove(&sfsp->f_mntfromname[0], file, MNAMELEN); - strncpy(sfsp->f_fstypename, MOUNT_UFS, MFSNAMELEN); + strncpy(sfsp->f_fstypename, MOUNT_FFS, MFSNAMELEN); (void)close(rfd); return (0); } |