Hi,

The -t option for ldattach doesn't seem to work when using an msts
time receiver.  The patch below fixes this.  I guess this part was
forgotten when msts support was added in r1.4.

Maurice


Index: ldattach.c
===================================================================
RCS file: /cvs/src/sbin/ldattach/ldattach.c,v
retrieving revision 1.14
diff -u -p -u -r1.14 ldattach.c
--- ldattach.c  31 Oct 2009 02:53:11 -0000      1.14
+++ ldattach.c  2 Aug 2014 19:03:04 -0000
@@ -272,6 +272,7 @@ main(int argc, char *argv[])
        /* line discpline specific setup */
        switch (ldisc) {
        case NMEADISC:
+       case MSTSDISC:
        case ENDRUNDISC:
                if (ioctl(fd, TIOCSTSTAMP, &tstamps) < 0) {
                        warnx("TIOCSTSTAMP");


Reply via email to