2010-04-22 Miguel de Icaza <miguel@novell.com>
authorMiguel de Icaza <miguel@gnome.org>
Thu, 22 Apr 2010 20:50:27 +0000 (20:50 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Thu, 22 Apr 2010 20:50:27 +0000 (20:50 -0000)
* SerialPort.cs: Try to detect serial devices in other Unix
systems.

svn path=/trunk/mcs/; revision=155961

mcs/class/System/System.IO.Ports/ChangeLog
mcs/class/System/System.IO.Ports/SerialPort.cs

index 3207cc3d0495b78733baa4d27f2c01fae4aa4909..c15fe2df74085fb2343faf0b4a14ee5107735cb7 100644 (file)
@@ -3,6 +3,8 @@
        * SerialPort.cs: Try to detect serial devices in other Unix
        systems. 
 
+       More tune ups for BSDs.
+
 2010-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
 
        * SerialPort.cs: DiscardNull should *not* report any error if the port
index 29e25a8db78b7f80b62e0ad97717fb49dc6788fb..b5ac97e046eea1c8bbc656844f3ae557a0271a4e 100644 (file)
@@ -542,7 +542,7 @@ namespace System.IO.Ports
                                                if (dev.StartsWith("/dev/ttyS") || dev.StartsWith("/dev/ttyUSB"))
                                                        serial_ports.Add (dev);
                                        } else {
-                                               if (dev.StartsWith ("/dev/tty"))
+                                               if (dev != "/dev/tty" && dev.StartsWith ("/dev/tty") && !dev.StartsWith ("/dev/ttyC"))
                                                        serial_ports.Add (dev);
                                        }
                                }