From: Eric Andersen Date: Mon, 3 Sep 2001 19:45:47 +0000 (-0000) Subject: Teacvh 'mount -t auto' to ignore usbdevfs X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6a18de72c4b0b23dcf1e3cd1ea5a7f312374b64f;p=oweals%2Fbusybox.git Teacvh 'mount -t auto' to ignore usbdevfs --- diff --git a/busybox/mount.c b/busybox/mount.c index 6ffce2bf1..2fc84f2c0 100644 --- a/busybox/mount.c +++ b/busybox/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]; diff --git a/busybox/util-linux/mount.c b/busybox/util-linux/mount.c index 6ffce2bf1..2fc84f2c0 100644 --- a/busybox/util-linux/mount.c +++ b/busybox/util-linux/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];