aboutsummaryrefslogtreecommitdiff
path: root/coreutils/df.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2017-11-03 14:16:08 +0000
committerRon Yorston <rmy@pobox.com>2017-11-03 14:16:08 +0000
commitd6ce08aeb85b3698ddaa281016b70e16aeb9fb35 (patch)
tree02ad9bc0684859515fe891f3d6b0a1086e0db156 /coreutils/df.c
parentab450021a99ba66126cc6d668fb06ec3829a572b (diff)
parenta5060b8364faa7c677c8950f1315c451403b0660 (diff)
downloadbusybox-w32-d6ce08aeb85b3698ddaa281016b70e16aeb9fb35.tar.gz
busybox-w32-d6ce08aeb85b3698ddaa281016b70e16aeb9fb35.tar.bz2
busybox-w32-d6ce08aeb85b3698ddaa281016b70e16aeb9fb35.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'coreutils/df.c')
-rw-r--r--coreutils/df.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/df.c b/coreutils/df.c
index 121da970b..4076b5fec 100644
--- a/coreutils/df.c
+++ b/coreutils/df.c
@@ -77,7 +77,7 @@
77//usage: "/dev/sda3 17381728 17107080 274648 98% /\n" 77//usage: "/dev/sda3 17381728 17107080 274648 98% /\n"
78 78
79#include <mntent.h> 79#include <mntent.h>
80#include <sys/vfs.h> 80#include <sys/statvfs.h>
81#include "libbb.h" 81#include "libbb.h"
82#include "unicode.h" 82#include "unicode.h"
83 83
@@ -98,7 +98,7 @@ int df_main(int argc UNUSED_PARAM, char **argv)
98 unsigned opt; 98 unsigned opt;
99 FILE *mount_table; 99 FILE *mount_table;
100 struct mntent *mount_entry; 100 struct mntent *mount_entry;
101 struct statfs s; 101 struct statvfs s;
102 102
103 enum { 103 enum {
104 OPT_KILO = (1 << 0), 104 OPT_KILO = (1 << 0),
@@ -211,7 +211,7 @@ int df_main(int argc UNUSED_PARAM, char **argv)
211 mount_point = mount_entry->mnt_dir; 211 mount_point = mount_entry->mnt_dir;
212 fs_type = mount_entry->mnt_type; 212 fs_type = mount_entry->mnt_type;
213 213
214 if (statfs(mount_point, &s) != 0) { 214 if (statvfs(mount_point, &s) != 0) {
215 bb_simple_perror_msg(mount_point); 215 bb_simple_perror_msg(mount_point);
216 goto set_error; 216 goto set_error;
217 } 217 }