summaryrefslogtreecommitdiff
path: root/comms/modemd/patches/patch-ab
blob: 22f55a750e1a39308cb140b0dcb550e67377a28d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- common/ttio.c.orig	Sat Feb 22 00:06:09 1997
+++ common/ttio.c	Tue Mar  3 17:19:06 1998
@@ -73,6 +73,16 @@
     {
       if (chown (nbuf, pw -> pw_uid, pw -> pw_gid) < 0)
 	warn ("Can't set owner on %s: %m", nbuf);
+#ifdef __NetBSD__
+      if (chmod (nbuf, 0600) < 0)
+        warn ("Can't set mode on %s: %m", nbuf);
+      revoke(nbuf);
+      if (ttyaction(nbuf, "modemd", "root"))
+        warn ("Can't ttyaction %s: %m", nbuf);
+
+      /* delay open so DTR stays down long enough to be detected */
+      usleep(100);
+#endif
     }
 
   /* Open the terminal device. */