aboutsummaryrefslogtreecommitdiff
path: root/win32/mntent.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/mntent.c')
-rw-r--r--win32/mntent.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/win32/mntent.c b/win32/mntent.c
index 2a07476e3..6d6ba319f 100644
--- a/win32/mntent.c
+++ b/win32/mntent.c
@@ -1,6 +1,6 @@
1/* 1/*
2 * A simple WIN32 implementation of mntent routines. It only handles 2 * A simple WIN32 implementation of mntent routines. It only handles
3 * fixed logical drives. 3 * logical drives.
4 */ 4 */
5#include "libbb.h" 5#include "libbb.h"
6 6
@@ -14,7 +14,7 @@ struct mntdata {
14 char mnt_opts[4]; 14 char mnt_opts[4];
15}; 15};
16 16
17FILE *setmntent(const char *file UNUSED_PARAM, const char *mode UNUSED_PARAM) 17FILE *mingw_setmntent(void)
18{ 18{
19 struct mntdata *data; 19 struct mntdata *data;
20 20
@@ -56,7 +56,8 @@ struct mntent *getmntent(FILE *stream)
56 56
57 drive_type = GetDriveType(data->mnt_dir); 57 drive_type = GetDriveType(data->mnt_dir);
58 if ( drive_type == DRIVE_FIXED || drive_type == DRIVE_CDROM || 58 if ( drive_type == DRIVE_FIXED || drive_type == DRIVE_CDROM ||
59 drive_type == DRIVE_REMOVABLE) { 59 drive_type == DRIVE_REMOVABLE ||
60 drive_type == DRIVE_REMOTE ) {
60 if ( !GetVolumeInformation(data->mnt_dir, NULL, 0, NULL, NULL, 61 if ( !GetVolumeInformation(data->mnt_dir, NULL, 0, NULL, NULL,
61 NULL, data->mnt_type, 100) ) { 62 NULL, data->mnt_type, 100) ) {
62 continue; 63 continue;