diff options
Diffstat (limited to 'comms/modemd/patches/patch-ab')
-rw-r--r-- | comms/modemd/patches/patch-ab | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/comms/modemd/patches/patch-ab b/comms/modemd/patches/patch-ab new file mode 100644 index 00000000000..22f55a750e1 --- /dev/null +++ b/comms/modemd/patches/patch-ab @@ -0,0 +1,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. */ |