diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-09-03 16:49:25 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-09-03 16:49:25 +0000 |
commit | 3b1525e444b2fb51bfc3e2fa91bf7b8614e22f0c (patch) | |
tree | 1d4dbd8aada9108726b6a7659aed963315739b02 | |
parent | 1350666498752664a5e772ed99de3e541c04c477 (diff) | |
download | busybox-w32-3b1525e444b2fb51bfc3e2fa91bf7b8614e22f0c.tar.gz busybox-w32-3b1525e444b2fb51bfc3e2fa91bf7b8614e22f0c.tar.bz2 busybox-w32-3b1525e444b2fb51bfc3e2fa91bf7b8614e22f0c.zip |
Don't automount things as "usbdevfs" -- patch from
Ethan Benson <erbenson@alaska.net>
-rw-r--r-- | mount.c | 2 | ||||
-rw-r--r-- | util-linux/mount.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -241,7 +241,7 @@ mount_one(char *blockDevice, char *directory, char *filesystemType, | |||
241 | int status = 0; | 241 | int status = 0; |
242 | 242 | ||
243 | if (strcmp(filesystemType, "auto") == 0) { | 243 | if (strcmp(filesystemType, "auto") == 0) { |
244 | static const char *noauto_array[] = { "tmpfs", "shm", "proc", "ramfs", "devpts", "devfs", 0 }; | 244 | static const char *noauto_array[] = { "tmpfs", "shm", "proc", "ramfs", "devpts", "devfs", "usbdevfs", 0 }; |
245 | const char **noauto_fstype; | 245 | const char **noauto_fstype; |
246 | const int num_of_filesystems = sysfs(3, 0, 0); | 246 | const int num_of_filesystems = sysfs(3, 0, 0); |
247 | char buf[255]; | 247 | char buf[255]; |
diff --git a/util-linux/mount.c b/util-linux/mount.c index 6ffce2bf1..2fc84f2c0 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c | |||
@@ -241,7 +241,7 @@ mount_one(char *blockDevice, char *directory, char *filesystemType, | |||
241 | int status = 0; | 241 | int status = 0; |
242 | 242 | ||
243 | if (strcmp(filesystemType, "auto") == 0) { | 243 | if (strcmp(filesystemType, "auto") == 0) { |
244 | static const char *noauto_array[] = { "tmpfs", "shm", "proc", "ramfs", "devpts", "devfs", 0 }; | 244 | static const char *noauto_array[] = { "tmpfs", "shm", "proc", "ramfs", "devpts", "devfs", "usbdevfs", 0 }; |
245 | const char **noauto_fstype; | 245 | const char **noauto_fstype; |
246 | const int num_of_filesystems = sysfs(3, 0, 0); | 246 | const int num_of_filesystems = sysfs(3, 0, 0); |
247 | char buf[255]; | 247 | char buf[255]; |