Don't automount things as "usbdevfs" -- patch from
authorEric Andersen <andersen@codepoet.org>
Mon, 3 Sep 2001 16:49:25 +0000 (16:49 -0000)
committerEric Andersen <andersen@codepoet.org>
Mon, 3 Sep 2001 16:49:25 +0000 (16:49 -0000)
Ethan Benson <erbenson@alaska.net>

mount.c
util-linux/mount.c

diff --git a/mount.c b/mount.c
index 6ffce2bf16f38a66f6885253e90d9114e2a4783b..2fc84f2c0f0481c52004f6cbe92ab746b407f849 100644 (file)
--- a/mount.c
+++ b/mount.c
@@ -241,7 +241,7 @@ mount_one(char *blockDevice, char *directory, char *filesystemType,
        int status = 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 int num_of_filesystems = sysfs(3, 0, 0);
                char buf[255];
index 6ffce2bf16f38a66f6885253e90d9114e2a4783b..2fc84f2c0f0481c52004f6cbe92ab746b407f849 100644 (file)
@@ -241,7 +241,7 @@ mount_one(char *blockDevice, char *directory, char *filesystemType,
        int status = 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 int num_of_filesystems = sysfs(3, 0, 0);
                char buf[255];