diff options
Diffstat (limited to 'mount.c')
-rw-r--r-- | mount.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -232,13 +232,9 @@ mount_one(char *blockDevice, char *directory, char *filesystemType, | |||
232 | { | 232 | { |
233 | int status = 0; | 233 | int status = 0; |
234 | 234 | ||
235 | #if defined BB_FEATURE_USE_PROCFS | ||
236 | char buf[255]; | 235 | char buf[255]; |
237 | if (strcmp(filesystemType, "auto") == 0) { | 236 | if (strcmp(filesystemType, "auto") == 0) { |
238 | FILE *f = fopen("/proc/filesystems", "r"); | 237 | FILE *f = xfopen("/proc/filesystems", "r"); |
239 | |||
240 | if (f == NULL) | ||
241 | return (FALSE); | ||
242 | 238 | ||
243 | while (fgets(buf, sizeof(buf), f) != NULL) { | 239 | while (fgets(buf, sizeof(buf), f) != NULL) { |
244 | filesystemType = buf; | 240 | filesystemType = buf; |
@@ -261,7 +257,6 @@ mount_one(char *blockDevice, char *directory, char *filesystemType, | |||
261 | } | 257 | } |
262 | fclose(f); | 258 | fclose(f); |
263 | } else | 259 | } else |
264 | #endif | ||
265 | #if defined BB_FEATURE_USE_DEVPS_PATCH | 260 | #if defined BB_FEATURE_USE_DEVPS_PATCH |
266 | if (strcmp(filesystemType, "auto") == 0) { | 261 | if (strcmp(filesystemType, "auto") == 0) { |
267 | int fd, i, numfilesystems; | 262 | int fd, i, numfilesystems; |