From 6a18de72c4b0b23dcf1e3cd1ea5a7f312374b64f Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Mon, 3 Sep 2001 19:45:47 +0000 Subject: [PATCH] Teacvh 'mount -t auto' to ignore usbdevfs --- busybox/mount.c | 2 +- busybox/util-linux/mount.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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]; -- 2.25.1