Don't automount things as "usbdevfs" -- patch from
Ethan Benson <erbenson@alaska.net>
This commit is contained in:
parent
1350666498
commit
3b1525e444
2
mount.c
2
mount.c
@ -241,7 +241,7 @@ mount_one(char *blockDevice, char *directory, char *filesystemType,
|
|||||||
int status = 0;
|
int status = 0;
|
||||||
|
|
||||||
if (strcmp(filesystemType, "auto") == 0) {
|
if (strcmp(filesystemType, "auto") == 0) {
|
||||||
static const char *noauto_array[] = { "tmpfs", "shm", "proc", "ramfs", "devpts", "devfs", 0 };
|
static const char *noauto_array[] = { "tmpfs", "shm", "proc", "ramfs", "devpts", "devfs", "usbdevfs", 0 };
|
||||||
const char **noauto_fstype;
|
const char **noauto_fstype;
|
||||||
const int num_of_filesystems = sysfs(3, 0, 0);
|
const int num_of_filesystems = sysfs(3, 0, 0);
|
||||||
char buf[255];
|
char buf[255];
|
||||||
|
@ -241,7 +241,7 @@ mount_one(char *blockDevice, char *directory, char *filesystemType,
|
|||||||
int status = 0;
|
int status = 0;
|
||||||
|
|
||||||
if (strcmp(filesystemType, "auto") == 0) {
|
if (strcmp(filesystemType, "auto") == 0) {
|
||||||
static const char *noauto_array[] = { "tmpfs", "shm", "proc", "ramfs", "devpts", "devfs", 0 };
|
static const char *noauto_array[] = { "tmpfs", "shm", "proc", "ramfs", "devpts", "devfs", "usbdevfs", 0 };
|
||||||
const char **noauto_fstype;
|
const char **noauto_fstype;
|
||||||
const int num_of_filesystems = sysfs(3, 0, 0);
|
const int num_of_filesystems = sysfs(3, 0, 0);
|
||||||
char buf[255];
|
char buf[255];
|
||||||
|
Loading…
Reference in New Issue
Block a user