From ea341c79b19ca9f3ddcfdd31caea54b1c815a3b0 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Sun, 1 Nov 2015 15:05:12 +0000 Subject: win32: improve implementation of statfs The WIN32 calls should be passed the root directory of the filesystem. --- libbb/find_mount_point.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbb') diff --git a/libbb/find_mount_point.c b/libbb/find_mount_point.c index b9bc1dd76..de314a3c7 100644 --- a/libbb/find_mount_point.c +++ b/libbb/find_mount_point.c @@ -27,7 +27,7 @@ struct mntent* FAST_FUNC find_mount_point(const char *name, int subdir_too) #if ENABLE_PLATFORM_MINGW32 static char mnt_fsname[4]; static char mnt_dir[4]; - struct mntent my_mount_entry = { mnt_fsname, mnt_dir, "", "", 0, 0 }; + static struct mntent my_mount_entry = { mnt_fsname, mnt_dir, "", "", 0, 0 }; char *current, *path; DWORD len; #endif -- cgit v1.2.3-55-g6feb