summaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorfredb <fredb>2002-07-24 18:37:34 +0000
committerfredb <fredb>2002-07-24 18:37:34 +0000
commit8dcd615d5548f8b41ca38d8c928c8eae32d64459 (patch)
treedf1b0d9bb03e2206cbcbdc3448a755eeba05d154 /comms
parent2fe8e5eaa4df24c381b033d52c2bde5519feaf1f (diff)
downloadpkgsrc-8dcd615d5548f8b41ca38d8c928c8eae32d64459.tar.gz
Mgetty has no business making a utmp entry while it's only waiting for
a lock. Closes PR pkg/12261.
Diffstat (limited to 'comms')
-rw-r--r--comms/mgetty+sendfax/distinfo3
-rw-r--r--comms/mgetty+sendfax/patches/patch-af34
2 files changed, 36 insertions, 1 deletions
diff --git a/comms/mgetty+sendfax/distinfo b/comms/mgetty+sendfax/distinfo
index 55d771950c2..4504f9a2f66 100644
--- a/comms/mgetty+sendfax/distinfo
+++ b/comms/mgetty+sendfax/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.6 2002/03/09 17:17:05 fredb Exp $
+$NetBSD: distinfo,v 1.7 2002/07/24 18:37:34 fredb Exp $
SHA1 (mgetty1.1.28-Jan10.tar.gz) = b0c33bf5f5137f17f8d1fbd529c5ba6f0afb9dbc
Size (mgetty1.1.28-Jan10.tar.gz) = 964610 bytes
@@ -7,6 +7,7 @@ SHA1 (patch-ab) = ca2ff2961b045b66a3aedf692ce83e8fc6ecdd09
SHA1 (patch-ac) = 1ff9866dd8a54fca4fa59d5144117fa3b46a9b4f
SHA1 (patch-ad) = 27fcebfe959a1d24657f504b89017fa3a58ae6c1
SHA1 (patch-ae) = f274db8059463f8b915c2d2faa86aa0e956e5a2c
+SHA1 (patch-af) = 604f7a17a0368106b35838c7a671ac74e65dc92e
SHA1 (patch-ag) = 943aa837a285663ff6cf5ab07c3f908f499c2074
SHA1 (patch-ah) = 7724a401625d25b00ba88782eeffc3cdc03387c6
SHA1 (patch-ai) = 98eba401e1b422e2f759eca00132a75e68518f4d
diff --git a/comms/mgetty+sendfax/patches/patch-af b/comms/mgetty+sendfax/patches/patch-af
new file mode 100644
index 00000000000..c75be04e729
--- /dev/null
+++ b/comms/mgetty+sendfax/patches/patch-af
@@ -0,0 +1,34 @@
+$NetBSD: patch-af,v 1.3 2002/07/24 18:37:35 fredb Exp $
+
+--- mgetty.c.orig Mon Dec 17 16:31:52 2001
++++ mgetty.c
+@@ -190,6 +190,14 @@
+ lprintf( L_MESG, "stealing lock file from pid=%d", pid );
+ if ( steal_lock( Device, pid ) == ERROR ) return St_dialout;
+
++ /* write a note to utmp/wtmp about dialout, including process args
++ * (don't do this on two-user-license systems!)
++ */
++#ifndef USER_LIMIT
++ pid = checklock( Device ); /* !! FIXME, ugly */
++ make_utmp_wtmp( Device, UT_USER, "dialout", get_ps_args(pid) );
++#endif
++
+ /* signal user */
+ printf( "...ok\r\n" );
+
+@@ -217,14 +225,6 @@
+ /* the line is locked, a parallel dialout is in process */
+
+ virtual_ring = FALSE; /* used to signal callback */
+-
+- /* write a note to utmp/wtmp about dialout, including process args
+- * (don't do this on two-user-license systems!)
+- */
+-#ifndef USER_LIMIT
+- pid = checklock( Device ); /* !! FIXME, ugly */
+- make_utmp_wtmp( Device, UT_USER, "dialout", get_ps_args(pid) );
+-#endif
+
+ /* close all file descriptors -> other processes can read port */
+ close(0);