1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-11 14:10:34 +00:00

This is a funny one: df for a device that was not mounted used to fail

for root only.
This commit is contained in:
Guido van Rooij 1997-03-10 19:39:43 +00:00
parent d5867457a2
commit 9408216e17
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=23621

View File

@ -35,7 +35,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: df.c,v 1.13 1997/02/22 14:02:57 peter Exp $
*/
#ifndef lint
@ -200,7 +200,7 @@ main(argc, argv)
ufs_df(*argv, maxwidth);
(void)rmdir(mntpt);
continue;
} else if (statfs(mntpt, &statfsbuf)) {
} else if (statfs(mntpt, &statfsbuf) == 0) {
statfsbuf.f_mntonname[0] = '\0';
prtstat(&statfsbuf, maxwidth);
} else