summaryrefslogtreecommitdiffstats
path: root/bin/df/df.c
diff options
context:
space:
mode:
authorguido <guido@FreeBSD.org>1997-03-10 19:39:43 +0000
committerguido <guido@FreeBSD.org>1997-03-10 19:39:43 +0000
commit2f74bc969ec57b5daef4e64405e39eaa8ed21b0e (patch)
tree0467ab9db3104e723cfc20c28255b3217db39741 /bin/df/df.c
parent29bc8223a6015b0fdee9ca7c1ab50120f5fa89d9 (diff)
downloadFreeBSD-src-2f74bc969ec57b5daef4e64405e39eaa8ed21b0e.zip
FreeBSD-src-2f74bc969ec57b5daef4e64405e39eaa8ed21b0e.tar.gz
This is a funny one: df for a device that was not mounted used to fail
for root only.
Diffstat (limited to 'bin/df/df.c')
-rw-r--r--bin/df/df.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/df/df.c b/bin/df/df.c
index e4328c3..103a19b 100644
--- a/bin/df/df.c
+++ b/bin/df/df.c
@@ -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
OpenPOWER on IntegriCloud