home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / unix_c / telecom / dialout.tar < prev    next >
Tape Archive  |  1990-04-03  |  24.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: Tape Archive (archive/tar).

You can browse this item here: dialout.tar

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Tape Archive (archive/tar) magic Supported
100% file tar archive default
99% file tar archive (V7), file dialout/, mode 755 , uid 1524 , gid 13 , size 0 , seconds 4601524070 default
98% file data default
100% lsar Tar default
100% gt2 TAR Archiv gefunden (Auflistung ist deaktiviert) default
100% disktype Pre-POSIX tar archive default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 64 69 61 6c 6f 75 74 2f | 00 00 00 00 00 00 00 00 |dialout/|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 20 20 37 | 35 35 20 00 20 20 31 35 |.... 7|55 . 15|
|00000070| 32 34 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |24 . |13 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 34 36 30 31 35 32 34 | 0 | 4601524|
|00000090| 30 37 30 20 20 20 35 34 | 37 37 00 20 00 00 00 00 |070 54|77. ....|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 64 69 61 6c 6f 75 74 2f | 53 68 61 72 46 69 6c 65 |dialout/|SharFile|
|00000210| 2e 48 65 61 64 65 72 73 | 00 00 00 00 00 00 00 00 |.Headers|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 31 35 |.... 6|44 . 15|
|00000270| 32 34 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |24 . |13 . |
|00000280| 20 20 20 20 34 34 32 20 | 20 34 36 30 31 35 32 34 | 442 | 4601524|
|00000290| 30 37 30 20 20 31 30 35 | 33 36 00 20 00 00 00 00 |070 105|36. ....|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 3d 3d 3d 20 64 69 61 6c | 6f 75 74 2e 73 68 61 72 |=== dial|out.shar|
|00000410| 20 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d | =======|========|
|00000420| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0a 46 72 6f 6d 20 |========|==.From |
|00000430| 73 70 61 72 6b 79 66 73 | 21 61 6d 65 73 21 74 68 |sparkyfs|!ames!th|
|00000440| 69 6e 6b 21 7a 61 70 68 | 6f 64 2e 6d 70 73 2e 6f |ink!zaph|od.mps.o|
|00000450| 68 69 6f 2d 73 74 61 74 | 65 2e 65 64 75 21 75 61 |hio-stat|e.edu!ua|
|00000460| 6b 61 72 69 2e 70 72 69 | 6d 61 74 65 2e 77 69 73 |kari.pri|mate.wis|
|00000470| 63 2e 65 64 75 21 61 70 | 6c 63 65 6e 21 75 75 6e |c.edu!ap|lcen!uun|
|00000480| 65 74 21 61 6c 6c 62 65 | 72 79 20 4d 6f 6e 20 4d |et!allbe|ry Mon M|
|00000490| 61 72 20 31 32 20 30 38 | 3a 35 33 3a 35 38 20 50 |ar 12 08|:53:58 P|
|000004a0| 53 54 20 31 39 39 30 0a | 0a 50 6f 73 74 69 6e 67 |ST 1990.|.Posting|
|000004b0| 2d 6e 75 6d 62 65 72 3a | 20 56 6f 6c 75 6d 65 20 |-number:| Volume |
|000004c0| 31 31 2c 20 49 73 73 75 | 65 20 32 35 0a 53 75 62 |11, Issu|e 25.Sub|
|000004d0| 6d 69 74 74 65 64 2d 62 | 79 3a 20 6e 65 6c 73 6f |mitted-b|y: nelso|
|000004e0| 6e 40 75 6e 63 65 63 73 | 2e 65 64 75 40 75 6e 63 |n@uncecs|.edu@unc|
|000004f0| 77 2e 75 75 63 70 20 28 | 4a 69 6d 20 4e 65 6c 73 |w.uucp (|Jim Nels|
|00000500| 6f 6e 29 0a 41 72 63 68 | 69 76 65 2d 6e 61 6d 65 |on).Arch|ive-name|
|00000510| 3a 20 64 69 61 6c 6f 75 | 74 2f 70 61 72 74 30 31 |: dialou|t/part01|
|00000520| 0a 0a 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 64 69 61 6c 6f 75 74 2f | 52 45 41 44 4d 45 00 00 |dialout/|README..|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 31 35 |.... 6|44 . 15|
|00000670| 32 34 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |24 . |13 . |
|00000680| 20 20 20 31 35 31 31 20 | 20 34 36 30 31 35 32 34 | 1511 | 4601524|
|00000690| 30 36 34 20 20 20 36 34 | 34 35 00 20 00 00 00 00 |064 64|45. ....|
|000006a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 41 20 70 72 6f 67 72 61 | 6d 20 74 6f 20 6b 69 6c |A progra|m to kil|
|00000810| 6c 20 74 68 65 20 5b 67 | 65 74 74 79 7c 75 75 67 |l the [g|etty|uug|
|00000820| 65 74 74 79 5d 20 6f 6e | 20 61 20 74 65 72 6d 69 |etty] on| a termi|
|00000830| 6e 61 6c 20 6c 69 6e 65 | 2c 0a 61 6e 64 20 62 72 |nal line|,.and br|
|00000840| 69 6e 67 20 75 70 20 61 | 20 22 6b 65 72 6d 69 74 |ing up a| "kermit|
|00000850| 22 20 6f 6e 20 74 68 61 | 74 20 6c 69 6e 65 2e 20 |" on tha|t line. |
|00000860| 20 49 66 20 74 68 65 20 | 6b 65 72 6d 69 74 20 69 | If the |kermit i|
|00000870| 73 0a 73 68 75 74 20 64 | 6f 77 6e 20 67 61 72 61 |s.shut d|own gara|
|00000880| 63 65 66 75 6c 6c 79 2c | 20 74 68 65 20 5b 67 65 |cefully,| the [ge|
|00000890| 74 74 79 7c 75 75 67 65 | 74 74 79 5d 20 69 73 20 |tty|uuge|tty] is |
|000008a0| 72 65 73 74 61 72 74 65 | 64 2e 0a 41 74 74 65 6d |restarte|d..Attem|
|000008b0| 70 74 73 20 74 6f 20 67 | 72 61 63 65 66 75 6c 6c |pts to g|racefull|
|000008c0| 79 20 69 6e 74 65 72 66 | 61 63 65 20 77 69 74 68 |y interf|ace with|
|000008d0| 20 75 75 63 70 20 61 6e | 64 20 6b 65 72 6d 69 74 | uucp an|d kermit|
|000008e0| 0a 76 69 61 20 74 68 65 | 20 22 73 74 61 6e 64 61 |.via the| "standa|
|000008f0| 72 64 22 20 6c 6f 63 6b | 66 69 6c 65 73 20 28 79 |rd" lock|files (y|
|00000900| 6f 75 72 20 6d 69 6c 65 | 61 67 65 20 69 6e 20 74 |our mile|age in t|
|00000910| 68 69 73 20 72 65 67 61 | 72 64 0a 6d 61 79 20 76 |his rega|rd.may v|
|00000920| 61 72 79 29 2e 20 20 57 | 6f 72 6b 73 20 28 68 61 |ary). W|orks (ha|
|00000930| 73 20 77 6f 72 6b 65 64 | 29 20 77 69 74 68 20 42 |s worked|) with B|
|00000940| 53 44 20 34 2e 32 20 61 | 6e 64 20 53 79 73 56 52 |SD 4.2 a|nd SysVR|
|00000950| 33 2e 0a 59 6f 75 72 20 | 6c 75 63 6b 20 77 69 74 |3..Your |luck wit|
|00000960| 68 20 68 61 76 69 6e 67 | 20 61 20 75 75 67 65 74 |h having| a uuget|
|00000970| 74 79 20 62 65 68 61 76 | 65 20 72 61 74 69 6f 6e |ty behav|e ration|
|00000980| 61 6c 6c 79 20 77 69 74 | 68 0a 6b 65 72 6d 69 74 |ally wit|h.kermit|
|00000990| 20 61 6e 64 2f 6f 72 20 | 75 75 63 70 20 69 73 20 | and/or |uucp is |
|000009a0| 70 72 6f 62 6c 65 6d 61 | 74 69 63 61 6c 2e 0a 54 |problema|tical..T|
|000009b0| 6f 20 69 6e 73 74 61 6c | 6c 3a 20 65 64 69 74 20 |o instal|l: edit |
|000009c0| 61 76 61 74 65 78 2e 68 | 20 61 6e 64 20 63 6f 75 |avatex.h| and cou|
|000009d0| 72 69 65 72 2e 68 20 74 | 6f 20 72 65 66 6c 65 63 |rier.h t|o reflec|
|000009e0| 74 20 79 6f 75 72 0a 22 | 74 74 79 22 20 6c 69 6e |t your."|tty" lin|
|000009f0| 65 73 2e 20 20 54 68 65 | 6e 20 65 64 69 74 20 4d |es. The|n edit M|
|00000a00| 61 6b 65 66 69 6c 65 20 | 74 6f 20 72 65 66 6c 65 |akefile |to refle|
|00000a10| 63 74 20 79 6f 75 72 20 | 73 79 73 74 65 6d 2e 0a |ct your |system..|
|00000a20| 54 68 65 6e 20 22 6d 61 | 6b 65 22 2e 20 20 54 68 |Then "ma|ke". Th|
|00000a30| 65 6e 20 28 79 6f 75 27 | 6c 6c 20 68 61 76 65 20 |en (you'|ll have |
|00000a40| 74 6f 20 67 6f 20 72 6f | 6f 74 20 68 65 72 65 29 |to go ro|ot here)|
|00000a50| 20 22 6d 61 6b 65 20 69 | 6e 73 74 61 6c 6c 22 2e | "make i|nstall".|
|00000a60| 0a 59 6f 75 20 6d 75 73 | 74 20 62 65 20 72 6f 6f |.You mus|t be roo|
|00000a70| 74 20 74 6f 20 69 6e 73 | 74 61 6c 6c 20 74 68 69 |t to ins|tall thi|
|00000a80| 73 20 70 72 6f 67 72 61 | 6d 2c 20 61 6e 64 20 69 |s progra|m, and i|
|00000a90| 74 20 6d 75 73 74 20 72 | 75 6e 0a 73 75 69 64 20 |t must r|un.suid |
|00000aa0| 72 6f 6f 74 20 28 6c 6f | 63 6b 66 69 6c 65 20 73 |root (lo|ckfile s|
|00000ab0| 74 75 66 66 2c 20 65 74 | 63 2e 29 2e 20 20 45 78 |tuff, et|c.). Ex|
|00000ac0| 61 6d 69 6e 65 20 74 68 | 65 20 73 6f 75 72 63 65 |amine th|e source|
|00000ad0| 20 63 61 72 65 66 75 6c | 6c 79 0a 69 66 20 79 6f | careful|ly.if yo|
|00000ae0| 75 20 61 72 65 20 77 61 | 72 79 20 6f 66 20 73 75 |u are wa|ry of su|
|00000af0| 69 64 20 72 6f 6f 74 20 | 70 72 6f 67 72 61 6d 73 |id root |programs|
|00000b00| 2e 0a 50 75 62 6c 69 63 | 20 64 6f 6d 61 69 6e 2e |..Public| domain.|
|00000b10| 0a 2d 2d 20 6a 69 6d 20 | 6e 65 6c 73 6f 6e 2c 20 |.-- jim |nelson, |
|00000b20| 75 6e 63 2d 77 69 6c 6d | 69 6e 67 74 6f 6e 2c 20 |unc-wilm|ington, |
|00000b30| 6e 65 6c 73 6f 6e 40 65 | 63 73 76 61 78 2e 75 6e |nelson@e|csvax.un|
|00000b40| 63 65 63 73 2e 65 64 75 | 0a 00 00 00 00 00 00 00 |cecs.edu|........|
|00000b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c00| 64 69 61 6c 6f 75 74 2f | 64 69 61 6c 6f 75 74 2e |dialout/|dialout.|
|00000c10| 31 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |1.......|........|
|00000c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 31 35 |.... 6|44 . 15|
|00000c70| 32 34 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |24 . |13 . |
|00000c80| 20 20 20 20 36 32 30 20 | 20 34 36 30 31 35 32 34 | 620 | 4601524|
|00000c90| 30 36 35 20 20 20 37 32 | 37 31 00 20 00 00 00 00 |065 72|71. ....|
|00000ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e00| 2e 54 48 20 44 49 41 4c | 4f 55 54 20 31 20 4c 6f |.TH DIAL|OUT 1 Lo|
|00000e10| 63 61 6c 0a 2e 55 43 20 | 34 0a 2e 53 48 20 4e 41 |cal..UC |4..SH NA|
|00000e20| 4d 45 0a 64 69 61 6c 6f | 75 74 20 5c 2d 20 6b 69 |ME.dialo|ut \- ki|
|00000e30| 6c 6c 20 67 65 74 74 79 | 20 61 6e 64 20 62 72 69 |ll getty| and bri|
|00000e40| 6e 67 20 75 70 20 6b 65 | 72 6d 69 74 20 6f 6e 20 |ng up ke|rmit on |
|00000e50| 6d 6f 64 65 6d 0a 2e 53 | 48 20 53 59 4e 4f 50 53 |modem..S|H SYNOPS|
|00000e60| 49 53 0a 2e 42 20 64 69 | 61 6c 6f 75 74 0a 2e 53 |IS..B di|alout..S|
|00000e70| 48 20 44 45 53 43 52 49 | 50 54 49 4f 4e 0a 53 68 |H DESCRI|PTION.Sh|
|00000e80| 75 74 73 20 64 6f 77 6e | 20 74 68 65 20 67 65 74 |uts down| the get|
|00000e90| 74 79 20 61 6e 64 20 62 | 72 69 6e 67 73 20 75 70 |ty and b|rings up|
|00000ea0| 20 4b 65 72 6d 69 74 20 | 6f 6e 20 74 68 65 20 31 | Kermit |on the 1|
|00000eb0| 32 30 30 20 62 61 75 64 | 0a 63 6f 75 72 69 65 72 |200 baud|.courier|
|00000ec0| 20 6d 6f 64 65 6d 20 6c | 69 6e 65 20 28 2f 64 65 | modem l|ine (/de|
|00000ed0| 76 2f 74 74 79 64 38 29 | 2e 0a 2e 53 48 20 4e 4f |v/ttyd8)|...SH NO|
|00000ee0| 54 45 53 0a 54 68 65 20 | 75 73 65 72 20 73 68 6f |TES.The |user sho|
|00000ef0| 75 6c 64 20 62 65 20 66 | 61 6d 69 6c 69 61 72 20 |uld be f|amiliar |
|00000f00| 77 69 74 68 20 74 68 65 | 20 41 54 20 63 6f 6d 6d |with the| AT comm|
|00000f10| 61 6e 64 20 73 65 74 20 | 66 6f 72 20 74 68 65 0a |and set |for the.|
|00000f20| 70 61 72 74 69 63 75 6c | 61 72 20 6d 6f 64 65 6d |particul|ar modem|
|00000f30| 20 69 6e 20 75 73 65 20 | 28 43 6f 75 72 69 65 72 | in use |(Courier|
|00000f40| 20 31 32 30 30 2c 20 69 | 6e 20 74 68 69 73 20 63 | 1200, i|n this c|
|00000f50| 61 73 65 29 2e 0a 2e 53 | 48 20 41 55 54 48 4f 52 |ase)...S|H AUTHOR|
|00000f60| 0a 4a 2e 20 4e 65 6c 73 | 6f 6e 2c 20 55 4e 43 57 |.J. Nels|on, UNCW|
|00000f70| 2c 20 42 53 44 20 32 31 | 20 41 70 72 20 38 39 2c |, BSD 21| Apr 89,|
|00000f80| 20 53 79 73 56 20 31 31 | 20 4d 61 72 20 39 30 0a | SysV 11| Mar 90.|
|00000f90| 20 61 6e 64 2f 6f 72 20 | 75 75 63 70 20 69 73 20 | and/or |uucp is |
|00000fa0| 70 72 6f 62 6c 65 6d 61 | 74 69 63 61 6c 2e 0a 54 |problema|tical..T|
|00000fb0| 6f 20 69 6e 73 74 61 6c | 6c 3a 20 65 64 69 74 20 |o instal|l: edit |
|00000fc0| 61 76 61 74 65 78 2e 68 | 20 61 6e 64 20 63 6f 75 |avatex.h| and cou|
|00000fd0| 72 69 65 72 2e 68 20 74 | 6f 20 72 65 66 6c 65 63 |rier.h t|o reflec|
|00000fe0| 74 20 79 6f 75 72 0a 22 | 74 74 79 22 20 6c 69 6e |t your."|tty" lin|
|00000ff0| 65 73 2e 20 20 54 68 65 | 6e 20 65 64 69 74 20 4d |es. The|n edit M|
|00001000| 64 69 61 6c 6f 75 74 2f | 4d 61 6b 65 66 69 6c 65 |dialout/|Makefile|
|00001010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001060| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 31 35 |.... 6|44 . 15|
|00001070| 32 34 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |24 . |13 . |
|00001080| 20 20 20 32 33 31 36 20 | 20 34 36 30 31 35 32 34 | 2316 | 4601524|
|00001090| 30 36 35 20 20 20 37 32 | 33 32 00 20 00 00 00 00 |065 72|32. ....|
|000010a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001200| 43 46 4c 41 47 53 3d 0a | 53 59 53 3d 53 59 53 56 |CFLAGS=.|SYS=SYSV|
|00001210| 23 42 53 44 0a 0a 23 2f | 2a 77 68 65 72 65 20 74 |#BSD..#/|*where t|
|00001220| 6f 20 69 6e 73 74 61 6c | 6c 20 74 68 69 73 20 74 |o instal|l this t|
|00001230| 68 69 6e 67 2a 2f 0a 57 | 48 45 52 45 3d 2f 75 73 |hing*/.W|HERE=/us|
|00001240| 72 2f 6c 6f 63 61 6c 2f | 62 69 6e 0a 0a 61 6c 6c |r/local/|bin..all|
|00001250| 3a 20 64 69 72 73 20 64 | 69 61 6c 32 34 30 30 20 |: dirs d|ial2400 |
|00001260| 64 69 61 6c 6f 75 74 0a | 0a 64 69 61 6c 6f 75 74 |dialout.|.dialout|
|00001270| 3a 20 64 69 61 6c 6f 75 | 74 2e 6f 0a 09 63 70 20 |: dialou|t.o..cp |
|00001280| 63 6f 75 72 69 65 72 2e | 68 20 63 6f 75 72 69 65 |courier.|h courie|
|00001290| 72 2f 64 69 61 6c 6f 75 | 74 2e 68 0a 09 63 63 20 |r/dialou|t.h..cc |
|000012a0| 2d 73 20 2d 6f 20 64 69 | 61 6c 6f 75 74 20 64 69 |-s -o di|alout di|
|000012b0| 61 6c 6f 75 74 2e 6f 0a | 0a 64 69 61 6c 32 34 30 |alout.o.|.dial240|
|000012c0| 30 3a 20 64 69 61 6c 32 | 34 30 30 2e 6f 0a 09 63 |0: dial2|400.o..c|
|000012d0| 70 20 61 76 61 74 65 78 | 2e 68 20 61 76 61 74 65 |p avatex|.h avate|
|000012e0| 78 2f 64 69 61 6c 6f 75 | 74 2e 68 0a 09 63 63 20 |x/dialou|t.h..cc |
|000012f0| 2d 73 20 2d 6f 20 64 69 | 61 6c 32 34 30 30 20 64 |-s -o di|al2400 d|
|00001300| 69 61 6c 32 34 30 30 2e | 6f 0a 0a 64 69 61 6c 6f |ial2400.|o..dialo|
|00001310| 75 74 2e 6f 3a 20 64 69 | 61 6c 6f 75 74 2e 63 20 |ut.o: di|alout.c |
|00001320| 63 6f 75 72 69 65 72 2e | 68 0a 09 63 70 20 63 6f |courier.|h..cp co|
|00001330| 75 72 69 65 72 2e 68 20 | 63 6f 75 72 69 65 72 2f |urier.h |courier/|
|00001340| 64 69 61 6c 6f 75 74 2e | 68 0a 09 63 63 20 2d 44 |dialout.|h..cc -D|
|00001350| 24 28 53 59 53 29 20 2d | 63 20 2d 49 63 6f 75 72 |$(SYS) -|c -Icour|
|00001360| 69 65 72 20 64 69 61 6c | 6f 75 74 2e 63 0a 0a 64 |ier dial|out.c..d|
|00001370| 69 61 6c 32 34 30 30 2e | 6f 3a 20 64 69 61 6c 6f |ial2400.|o: dialo|
|00001380| 75 74 2e 63 20 61 76 61 | 74 65 78 2e 68 0a 09 72 |ut.c ava|tex.h..r|
|00001390| 6d 20 2d 66 20 64 69 61 | 6c 32 34 30 30 2e 63 0a |m -f dia|l2400.c.|
|000013a0| 09 63 70 20 61 76 61 74 | 65 78 2e 68 20 61 76 61 |.cp avat|ex.h ava|
|000013b0| 74 65 78 2f 64 69 61 6c | 6f 75 74 2e 68 0a 09 6c |tex/dial|out.h..l|
|000013c0| 6e 20 64 69 61 6c 6f 75 | 74 2e 63 20 64 69 61 6c |n dialou|t.c dial|
|000013d0| 32 34 30 30 2e 63 0a 09 | 63 63 20 2d 44 24 28 53 |2400.c..|cc -D$(S|
|000013e0| 59 53 29 20 2d 63 20 2d | 49 61 76 61 74 65 78 20 |YS) -c -|Iavatex |
|000013f0| 64 69 61 6c 32 34 30 30 | 2e 63 0a 0a 69 6e 73 74 |dial2400|.c..inst|
|00001400| 61 6c 6c 3a 20 64 69 61 | 6c 6f 75 74 20 64 69 61 |all: dia|lout dia|
|00001410| 6c 32 34 30 30 0a 09 6d | 76 20 64 69 61 6c 6f 75 |l2400..m|v dialou|
|00001420| 74 20 24 28 57 48 45 52 | 45 29 2f 64 69 61 6c 6f |t $(WHER|E)/dialo|
|00001430| 75 74 0a 09 63 68 6f 77 | 6e 20 72 6f 6f 74 20 24 |ut..chow|n root $|
|00001440| 28 57 48 45 52 45 29 2f | 64 69 61 6c 6f 75 74 0a |(WHERE)/|dialout.|
|00001450| 09 63 68 6d 6f 64 20 75 | 2b 73 20 24 28 57 48 45 |.chmod u|+s $(WHE|
|00001460| 52 45 29 2f 64 69 61 6c | 6f 75 74 0a 09 6d 76 20 |RE)/dial|out..mv |
|00001470| 64 69 61 6c 32 34 30 30 | 20 24 28 57 48 45 52 45 |dial2400| $(WHERE|
|00001480| 29 2f 64 69 61 6c 32 34 | 30 30 0a 09 63 68 6f 77 |)/dial24|00..chow|
|00001490| 6e 20 72 6f 6f 74 20 24 | 28 57 48 45 52 45 29 2f |n root $|(WHERE)/|
|000014a0| 64 69 61 6c 32 34 30 30 | 0a 09 63 68 6d 6f 64 20 |dial2400|..chmod |
|000014b0| 75 2b 73 20 24 28 57 48 | 45 52 45 29 2f 64 69 61 |u+s $(WH|ERE)/dia|
|000014c0| 6c 32 34 30 30 0a 09 63 | 70 20 61 76 61 74 65 78 |l2400..c|p avatex|
|000014d0| 2e 64 61 74 61 20 24 28 | 57 48 45 52 45 29 2f 61 |.data $(|WHERE)/a|
|000014e0| 76 61 74 65 78 2e 64 61 | 74 61 0a 09 63 70 20 63 |vatex.da|ta..cp c|
|000014f0| 6f 75 72 69 65 72 2e 64 | 61 74 61 20 24 28 57 48 |ourier.d|ata $(WH|
|00001500| 45 52 45 29 2f 63 6f 75 | 72 69 65 72 2e 64 61 74 |ERE)/cou|rier.dat|
|00001510| 61 0a 0a 63 6c 65 61 6e | 3a 0a 09 72 6d 20 2d 66 |a..clean|:..rm -f|
|00001520| 20 64 69 61 6c 6f 75 74 | 20 64 69 61 6c 32 34 30 | dialout| dial240|
|00001530| 30 2a 20 2a 2e 69 20 2a | 2e 6f 0a 0a 64 69 72 73 |0* *.i *|.o..dirs|
|00001540| 3a 20 61 76 61 74 65 78 | 20 63 6f 75 72 69 65 72 |: avatex| courier|
|00001550| 20 61 76 61 74 65 78 2e | 68 20 63 6f 75 72 69 65 | avatex.|h courie|
|00001560| 72 2e 68 20 61 76 61 74 | 65 78 2e 64 61 74 61 20 |r.h avat|ex.data |
|00001570| 63 6f 75 72 69 65 72 2e | 64 61 74 61 0a 0a 61 76 |courier.|data..av|
|00001580| 61 74 65 78 3a 0a 09 73 | 68 20 2d 63 20 22 69 66 |atex:..s|h -c "if|
|00001590| 20 74 65 73 74 20 2d 64 | 20 61 76 61 74 65 78 3b | test -d| avatex;|
|000015a0| 20 74 68 65 6e 20 3a 20 | 3b 65 6c 73 65 20 6d 6b | then : |;else mk|
|000015b0| 64 69 72 20 61 76 61 74 | 65 78 3b 66 69 22 0a 0a |dir avat|ex;fi"..|
|000015c0| 63 6f 75 72 69 65 72 3a | 0a 09 73 68 20 2d 63 20 |courier:|..sh -c |
|000015d0| 22 69 66 20 74 65 73 74 | 20 2d 64 20 63 6f 75 72 |"if test| -d cour|
|000015e0| 69 65 72 3b 20 74 68 65 | 6e 20 3a 20 3b 65 6c 73 |ier; the|n : ;els|
|000015f0| 65 20 6d 6b 64 69 72 20 | 63 6f 75 72 69 65 72 3b |e mkdir |courier;|
|00001600| 66 69 22 0a 0a 6b 69 74 | 3a 0a 09 63 70 20 61 76 |fi"..kit|:..cp av|
|00001610| 61 74 65 78 2f 64 69 61 | 6c 6f 75 74 2e 68 20 2e |atex/dia|lout.h .|
|00001620| 2f 61 76 61 74 65 78 2e | 68 0a 09 63 70 20 24 28 |/avatex.|h..cp $(|
|00001630| 57 48 45 52 45 29 2f 61 | 76 61 74 65 78 2e 64 61 |WHERE)/a|vatex.da|
|00001640| 74 61 20 2e 2f 61 76 61 | 74 65 78 2e 64 61 74 61 |ta ./ava|tex.data|
|00001650| 0a 09 63 70 20 63 6f 75 | 72 69 65 72 2f 64 69 61 |..cp cou|rier/dia|
|00001660| 6c 6f 75 74 2e 68 20 2e | 2f 63 6f 75 72 69 65 72 |lout.h .|/courier|
|00001670| 2e 68 0a 09 63 70 20 24 | 28 57 48 45 52 45 29 2f |.h..cp $|(WHERE)/|
|00001680| 63 6f 75 72 69 65 72 2e | 64 61 74 61 20 2e 2f 63 |courier.|data ./c|
|00001690| 6f 75 72 69 65 72 2e 64 | 61 74 61 0a 09 73 68 61 |ourier.d|ata..sha|
|000016a0| 72 20 52 45 41 44 4d 45 | 20 2a 31 20 4d 61 6b 65 |r README| *1 Make|
|000016b0| 66 69 6c 65 20 64 69 61 | 6c 6f 75 74 2e 63 20 2a |file dia|lout.c *|
|000016c0| 2e 68 20 2a 2e 64 61 74 | 61 3e 6b 69 74 0a 00 00 |.h *.dat|a>kit...|
|000016d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000017f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001800| 64 69 61 6c 6f 75 74 2f | 64 69 61 6c 6f 75 74 2e |dialout/|dialout.|
|00001810| 63 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |c.......|........|
|00001820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001860| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 31 35 |.... 6|44 . 15|
|00001870| 32 34 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |24 . |13 . |
|00001880| 20 20 31 31 35 31 30 20 | 20 34 36 30 31 35 32 34 | 11510 | 4601524|
|00001890| 30 36 36 20 20 20 37 34 | 31 34 00 20 00 00 00 00 |066 74|14. ....|
|000018a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a00| 2f 2a 20 70 72 6f 67 72 | 61 6d 20 74 6f 20 6b 69 |/* progr|am to ki|
|00001a10| 6c 6c 20 67 65 74 74 79 | 20 26 20 62 72 69 6e 67 |ll getty| & bring|
|00001a20| 20 75 70 20 6b 65 72 6d | 69 74 20 6f 6e 20 61 20 | up kerm|it on a |
|00001a30| 74 74 79 20 6c 69 6e 65 | 2a 2f 0a 2f 2a 20 70 72 |tty line|*/./* pr|
|00001a40| 6f 62 61 62 6c 79 20 64 | 79 6e 69 78 20 73 70 65 |obably d|ynix spe|
|00001a50| 63 69 66 69 63 20 2e 2e | 2e 20 64 6f 6e 27 74 20 |cific ..|. don't |
|00001a60| 6b 6e 6f 77 2c 20 64 6f | 6e 27 74 20 63 61 72 65 |know, do|n't care|
|00001a70| 20 2a 2f 0a 2f 2a 20 6a | 2e 20 6e 65 6c 73 6f 6e | */./* j|. nelson|
|00001a80| 2c 20 28 6e 65 6c 73 6f | 6e 40 75 6e 63 77 2e 75 |, (nelso|n@uncw.u|
|00001a90| 75 63 70 29 20 28 6e 65 | 6c 73 6f 6e 40 65 63 73 |ucp) (ne|lson@ecs|
|00001aa0| 76 61 78 2e 75 6e 63 65 | 63 73 2e 65 64 75 29 20 |vax.unce|cs.edu) |
|00001ab0| 2a 2f 0a 2f 2a 20 6c 61 | 74 65 73 74 20 72 65 76 |*/./* la|test rev|
|00001ac0| 69 73 69 6f 6e 20 0a 53 | 61 74 20 4d 61 72 20 31 |ision .S|at Mar 1|
|00001ad0| 30 20 31 35 3a 33 32 3a | 30 38 20 45 53 54 20 31 |0 15:32:|08 EST 1|
|00001ae0| 39 39 30 0a 2a 2f 0a 23 | 69 6e 63 6c 75 64 65 20 |990.*/.#|include |
|00001af0| 3c 73 74 64 69 6f 2e 68 | 3e 0a 23 69 6e 63 6c 75 |<stdio.h|>.#inclu|
|00001b00| 64 65 20 3c 66 63 6e 74 | 6c 2e 68 3e 0a 23 69 6e |de <fcnt|l.h>.#in|
|00001b10| 63 6c 75 64 65 20 3c 70 | 77 64 2e 68 3e 0a 23 69 |clude <p|wd.h>.#i|
|00001b20| 6e 63 6c 75 64 65 20 3c | 73 79 73 2f 74 79 70 65 |nclude <|sys/type|
|00001b30| 73 2e 68 3e 0a 23 69 6e | 63 6c 75 64 65 20 3c 73 |s.h>.#in|clude <s|
|00001b40| 79 73 2f 73 74 61 74 2e | 68 3e 0a 0a 23 69 6e 63 |ys/stat.|h>..#inc|
|00001b50| 6c 75 64 65 20 22 64 69 | 61 6c 6f 75 74 2e 68 22 |lude "di|alout.h"|
|00001b60| 0a 2f 2a 20 74 68 65 20 | 64 69 61 6c 6f 75 74 2e |./* the |dialout.|
|00001b70| 68 20 66 69 6c 65 73 20 | 73 68 6f 75 6c 64 20 62 |h files |should b|
|00001b80| 65 20 69 6e 20 73 70 65 | 63 69 66 69 63 20 73 75 |e in spe|cific su|
|00001b90| 62 64 69 72 65 63 74 6f | 72 69 65 73 2c 20 65 2e |bdirecto|ries, e.|
|00001ba0| 67 2e 2a 2f 0a 2f 2a 61 | 76 61 74 65 78 2c 20 63 |g.*/./*a|vatex, c|
|00001bb0| 6f 75 72 69 65 72 2c 20 | 65 74 63 2e 20 2a 2f 0a |ourier, |etc. */.|
|00001bc0| 6d 61 69 6e 28 61 72 67 | 63 2c 61 72 67 76 29 63 |main(arg|c,argv)c|
|00001bd0| 68 61 72 20 2a 61 72 67 | 76 5b 5d 3b 0a 7b 0a 09 |har *arg|v[];.{..|
|00001be0| 69 6e 74 20 69 2c 66 64 | 3b 20 0a 09 09 75 6e 73 |int i,fd|; ...uns|
|00001bf0| 69 67 6e 65 64 20 6c 6f | 6e 67 20 74 3b 0a 09 46 |igned lo|ng t;..F|
|00001c00| 49 4c 45 20 2a 66 70 3b | 0a 09 63 68 61 72 20 62 |ILE *fp;|..char b|
|00001c10| 75 66 5b 31 32 30 5d 2c | 20 6e 61 6d 65 5b 31 32 |uf[120],| name[12|
|00001c20| 5d 2c 20 2a 73 74 72 6e | 63 70 79 28 29 3b 0a 09 |], *strn|cpy();..|
|00001c30| 73 74 72 75 63 74 20 70 | 61 73 73 77 64 20 2a 70 |struct p|asswd *p|
|00001c40| 2c 20 2a 67 65 74 70 77 | 75 69 64 28 29 3b 0a 09 |, *getpw|uid();..|
|00001c50| 63 68 61 72 20 2a 71 2c | 20 2a 67 65 74 6c 6f 67 |char *q,| *getlog|
|00001c60| 69 6e 28 29 3b 0a 0a 09 | 28 76 6f 69 64 29 61 72 |in();...|(void)ar|
|00001c70| 67 63 3b 0a 09 28 76 6f | 69 64 29 61 72 67 76 3b |gc;..(vo|id)argv;|
|00001c80| 20 2f 2a 73 74 72 69 63 | 74 6c 79 20 66 6f 72 20 | /*stric|tly for |
|00001c90| 6c 69 6e 74 2a 2f 0a 09 | 71 3d 67 65 74 6c 6f 67 |lint*/..|q=getlog|
|00001ca0| 69 6e 28 29 3b 0a 09 69 | 66 28 21 61 75 74 68 6f |in();..i|f(!autho|
|00001cb0| 72 69 7a 65 64 28 71 29 | 29 7b 0a 09 09 66 70 72 |rized(q)|){...fpr|
|00001cc0| 69 6e 74 66 28 73 74 64 | 65 72 72 2c 22 25 73 20 |intf(std|err,"%s |
|00001cd0| 6e 6f 74 20 61 75 74 68 | 6f 72 69 7a 65 64 20 74 |not auth|orized t|
|00001ce0| 6f 20 64 69 61 6c 6f 75 | 74 5c 6e 22 2c 71 29 3b |o dialou|t\n",q);|
|00001cf0| 0a 09 09 65 78 69 74 28 | 31 29 3b 0a 09 09 7d 0a |...exit(|1);...}.|
|00001d00| 09 7b 0a 09 09 66 70 3d | 66 6f 70 65 6e 28 22 2f |.{...fp=|fopen("/|
|00001d10| 74 6d 70 2f 64 69 61 6c | 6f 75 74 6c 6f 67 22 2c |tmp/dial|outlog",|
|00001d20| 22 61 22 29 3b 0a 09 09 | 69 66 28 21 66 70 29 65 |"a");...|if(!fp)e|
|00001d30| 78 69 74 28 32 29 3b 0a | 09 09 74 3d 74 69 6d 65 |xit(2);.|..t=time|
|00001d40| 28 30 29 3b 0a 09 09 66 | 70 72 69 6e 74 66 28 66 |(0);...f|printf(f|
|00001d50| 70 2c 22 20 2b 20 25 73 | 20 25 73 22 2c 71 2c 63 |p," + %s| %s",q,c|
|00001d60| 74 69 6d 65 28 26 74 29 | 29 3b 0a 09 09 66 63 6c |time(&t)|);...fcl|
|00001d70| 6f 73 65 28 66 70 29 3b | 0a 0a 09 7d 0a 09 69 66 |ose(fp);|...}..if|
|00001d80| 28 67 65 74 65 75 69 64 | 28 29 21 3d 30 29 7b 0a |(geteuid|()!=0){.|
|00001d90| 09 09 66 70 72 69 6e 74 | 66 28 73 74 64 65 72 72 |..fprint|f(stderr|
|00001da0| 2c 22 6f 6f 70 73 2c 20 | 74 68 69 73 20 70 72 6f |,"oops, |this pro|
|00001db0| 67 20 73 68 6f 75 6c 64 | 20 62 65 20 73 65 74 75 |g should| be setu|
|00001dc0| 69 64 20 72 6f 6f 74 5c | 6e 22 29 3b 0a 09 09 65 |id root\|n");...e|
|00001dd0| 72 72 6f 72 28 31 29 3b | 0a 09 7d 0a 09 66 69 64 |rror(1);|..}..fid|
|00001de0| 64 6c 65 28 29 3b 0a 09 | 70 20 3d 20 67 65 74 70 |dle();..|p = getp|
|00001df0| 77 75 69 64 28 67 65 74 | 75 69 64 28 29 29 3b 0a |wuid(get|uid());.|
|00001e00| 09 28 76 6f 69 64 29 73 | 74 72 6e 63 70 79 28 6e |.(void)s|trncpy(n|
|00001e10| 61 6d 65 2c 70 2d 3e 70 | 77 5f 6e 61 6d 65 2c 31 |ame,p->p|w_name,1|
|00001e20| 31 29 3b 0a 09 66 6f 72 | 28 69 3d 30 3b 69 3c 31 |1);..for|(i=0;i<1|
|00001e30| 32 3b 69 2b 2b 29 69 66 | 28 6e 61 6d 65 5b 69 5d |2;i++)if|(name[i]|
|00001e40| 3c 27 20 27 20 7c 7c 20 | 6e 61 6d 65 5b 69 5d 3e |<' ' || |name[i]>|
|00001e50| 30 31 37 36 29 6e 61 6d | 65 5b 69 5d 3d 30 3b 0a |0176)nam|e[i]=0;.|
|00001e60| 09 66 70 72 69 6e 74 66 | 28 73 74 64 65 72 72 2c |.fprintf|(stderr,|
|00001e70| 22 25 73 5c 6e 22 2c 6e | 61 6d 65 29 3b 0a 09 69 |"%s\n",n|ame);..i|
|00001e80| 66 28 73 74 61 74 28 4c | 43 4b 46 49 4c 45 2c 28 |f(stat(L|CKFILE,(|
|00001e90| 73 74 72 75 63 74 20 73 | 74 61 74 20 2a 29 30 29 |struct s|tat *)0)|
|00001ea0| 3e 3d 30 29 0a 09 7b 0a | 09 09 66 64 3d 6f 70 65 |>=0)..{.|..fd=ope|
|00001eb0| 6e 28 4c 43 4b 46 49 4c | 45 2c 30 29 3b 0a 09 09 |n(LCKFIL|E,0);...|
|00001ec0| 69 66 28 66 64 3e 3d 30 | 29 7b 0a 09 09 09 66 70 |if(fd>=0|){....fp|
|00001ed0| 72 69 6e 74 66 28 73 74 | 64 65 72 72 2c 22 6f 6f |rintf(st|derr,"oo|
|00001ee0| 70 73 5c 6e 22 29 3b 0a | 09 09 09 66 70 72 69 6e |ps\n");.|...fprin|
|00001ef0| 74 66 28 73 74 64 65 72 | 72 2c 22 25 73 20 62 75 |tf(stder|r,"%s bu|
|00001f00| 73 79 5c 6e 22 2c 4c 43 | 4b 46 49 4c 45 29 3b 0a |sy\n",LC|KFILE);.|
|00001f10| 09 09 09 69 3d 72 65 61 | 64 28 66 64 2c 62 75 66 |...i=rea|d(fd,buf|
|00001f20| 2c 31 31 29 3b 0a 09 09 | 09 69 66 28 69 3e 30 29 |,11);...|.if(i>0)|
|00001f30| 66 70 72 69 6e 74 66 28 | 73 74 64 65 72 72 2c 22 |fprintf(|stderr,"|
|00001f40| 62 79 20 25 73 20 2e 2e | 2e 20 74 72 79 20 6c 61 |by %s ..|. try la|
|00001f50| 74 65 72 5c 6e 22 2c 62 | 75 66 29 3b 0a 09 09 09 |ter\n",b|uf);....|
|00001f60| 65 72 72 6f 72 28 32 29 | 3b 0a 09 09 7d 0a 09 7d |error(2)|;...}..}|
|00001f70| 0a 09 65 6c 73 65 20 7b | 0a 09 09 66 70 72 69 6e |..else {|...fprin|
|00001f80| 74 66 28 73 74 64 65 72 | 72 2c 22 6f 6b 20 6e 6f |tf(stder|r,"ok no|
|00001f90| 20 6c 6f 63 6b 5c 6e 22 | 29 3b 0a 09 7d 0a 09 28 | lock\n"|);..}..(|
|00001fa0| 76 6f 69 64 29 73 79 73 | 74 65 6d 28 53 45 44 31 |void)sys|tem(SED1|
|00001fb0| 29 3b 0a 2f 2a 09 28 76 | 6f 69 64 29 73 79 73 74 |);./*.(v|oid)syst|
|00001fc0| 65 6d 28 22 09 64 69 66 | 66 20 2f 65 74 63 2f 74 |em(".dif|f /etc/t|
|00001fd0| 74 79 73 20 2f 74 6d 70 | 2f 64 69 61 6c 6f 75 74 |tys /tmp|/dialout|
|00001fe0| 2e 74 6d 70 22 29 3b 2a | 2f 0a 09 28 76 6f 69 64 |.tmp");*|/..(void|
|00001ff0| 29 73 79 73 74 65 6d 28 | 44 49 46 46 31 29 3b 0a |)system(|DIFF1);.|
|00002000| 2f 2a 09 28 76 6f 69 64 | 29 73 79 73 74 65 6d 28 |/*.(void|)system(|
|00002010| 22 09 63 70 20 2f 65 74 | 63 2f 74 74 79 73 20 2f |".cp /et|c/ttys /|
|00002020| 65 74 63 2f 74 74 79 73 | 2e 62 61 6b 2e 74 73 74 |etc/ttys|.bak.tst|
|00002030| 22 29 3b 2a 2f 0a 09 28 | 76 6f 69 64 29 73 79 73 |");*/..(|void)sys|
|00002040| 74 65 6d 28 43 50 31 29 | 3b 0a 2f 2a 09 28 76 6f |tem(CP1)|;./*.(vo|
|00002050| 69 64 29 73 79 73 74 65 | 6d 28 22 09 63 70 20 2f |id)syste|m(".cp /|
|00002060| 74 6d 70 2f 64 69 61 6c | 6f 75 74 2e 74 6d 70 20 |tmp/dial|out.tmp |
|00002070| 2f 65 74 63 2f 74 74 79 | 73 22 29 3b 2a 2f 0a 09 |/etc/tty|s");*/..|
|00002080| 28 76 6f 69 64 29 73 79 | 73 74 65 6d 28 43 50 32 |(void)sy|stem(CP2|
|00002090| 29 3b 0a 09 69 3d 6b 69 | 6c 6c 28 31 2c 31 29 3b |);..i=ki|ll(1,1);|
|000020a0| 20 2f 2a 6b 69 6c 6c 28 | 70 69 64 2c 73 69 67 6e | /*kill(|pid,sign|
|000020b0| 61 6c 29 2a 2f 0a 09 69 | 66 28 69 3c 30 29 7b 0a |al)*/..i|f(i<0){.|
|000020c0| 09 09 66 70 72 69 6e 74 | 66 28 73 74 64 65 72 72 |..fprint|f(stderr|
|000020d0| 2c 22 63 6f 75 6c 64 20 | 6e 6f 74 20 6b 69 6c 6c |,"could |not kill|
|000020e0| 28 31 2c 31 29 5c 6e 22 | 29 3b 0a 09 09 65 72 72 |(1,1)\n"|);...err|
|000020f0| 6f 72 28 33 29 3b 0a 09 | 7d 0a 09 28 76 6f 69 64 |or(3);..|}..(void|
|00002100| 29 73 79 73 74 65 6d 28 | 22 09 72 6d 20 2d 66 20 |)system(|".rm -f |
|00002110| 2f 74 6d 70 2f 64 69 61 | 6c 6f 75 74 2e 74 6d 70 |/tmp/dia|lout.tmp|
|00002120| 22 20 29 3b 0a 09 66 64 | 3d 6f 70 65 6e 28 44 45 |" );..fd|=open(DE|
|00002130| 56 49 43 45 2c 31 29 3b | 0a 09 69 66 28 66 64 3c |VICE,1);|..if(fd<|
|00002140| 30 29 7b 0a 09 09 65 72 | 72 6f 72 28 34 29 3b 0a |0){...er|ror(4);.|
|00002150| 09 7d 0a 09 69 3d 77 72 | 69 74 65 28 66 64 2c 53 |.}..i=wr|ite(fd,S|
|00002160| 31 2c 53 31 4c 29 3b 0a | 09 69 66 28 69 3c 30 29 |1,S1L);.|.if(i<0)|
|00002170| 65 72 72 6f 72 28 35 29 | 3b 0a 09 73 6c 65 65 70 |error(5)|;..sleep|
|00002180| 28 31 29 3b 0a 09 28 76 | 6f 69 64 29 73 79 73 74 |(1);..(v|oid)syst|
|00002190| 65 6d 28 43 41 54 29 3b | 0a 0a 09 66 69 64 64 6c |em(CAT);|...fiddl|
|000021a0| 65 28 29 3b 0a 2f 2a 09 | 69 3d 66 63 68 6f 77 6e |e();./*.|i=fchown|
|000021b0| 28 66 64 2c 67 65 74 75 | 69 64 28 29 2c 67 65 74 |(fd,getu|id(),get|
|000021c0| 67 69 64 28 29 29 3b 2a | 2f 0a 2f 2a 20 61 70 70 |gid());*|/./* app|
|000021d0| 61 72 65 6e 74 6c 79 20 | 53 79 73 56 20 64 6f 65 |arently |SysV doe|
|000021e0| 73 20 6e 6f 74 20 68 61 | 76 65 20 66 63 68 6f 77 |s not ha|ve fchow|
|000021f0| 6e 28 29 20 6e 6f 72 20 | 66 63 68 6d 6f 64 28 29 |n() nor |fchmod()|
|00002200| 20 3a 2d 28 20 20 2a 2f | 0a 09 69 3d 63 68 6f 77 | :-( */|..i=chow|
|00002210| 6e 28 44 45 56 49 43 45 | 2c 67 65 74 75 69 64 28 |n(DEVICE|,getuid(|
|00002220| 29 2c 67 65 74 67 69 64 | 28 29 29 3b 0a 09 69 66 |),getgid|());..if|
|00002230| 28 69 3c 30 29 65 72 72 | 6f 72 28 36 29 3b 0a 2f |(i<0)err|or(6);./|
|00002240| 2a 09 69 3d 66 63 68 6d | 6f 64 28 66 64 2c 30 36 |*.i=fchm|od(fd,06|
|00002250| 36 36 29 3b 2a 2f 0a 09 | 69 3d 63 68 6d 6f 64 28 |66);*/..|i=chmod(|
|00002260| 44 45 56 49 43 45 2c 30 | 36 36 36 29 3b 0a 09 69 |DEVICE,0|666);..i|
|00002270| 66 28 69 3c 30 29 65 72 | 72 6f 72 28 37 29 3b 0a |f(i<0)er|ror(7);.|
|00002280| 09 69 3d 63 6c 6f 73 65 | 28 66 64 29 3b 0a 09 69 |.i=close|(fd);..i|
|00002290| 66 28 69 3c 30 29 65 72 | 72 6f 72 28 38 29 3b 0a |f(i<0)er|ror(8);.|
|000022a0| 0a 09 69 66 28 66 6f 72 | 6b 28 29 3d 3d 30 29 0a |..if(for|k()==0).|
|000022b0| 09 7b 0a 09 09 2f 2a 63 | 68 69 6c 64 2a 2f 0a 09 |.{.../*c|hild*/..|
|000022c0| 09 69 3d 73 65 74 75 69 | 64 28 67 65 74 75 69 64 |.i=setui|d(getuid|
|000022d0| 28 29 29 3b 2f 2a 72 65 | 6c 69 6e 71 75 69 73 68 |());/*re|linquish|
|000022e0| 20 72 6f 6f 74 20 70 72 | 69 76 69 6c 65 67 65 73 | root pr|ivileges|
|000022f0| 20 69 6e 20 63 68 69 6c | 64 2a 2f 0a 09 09 69 66 | in chil|d*/...if|
|00002300| 28 69 3c 30 20 7c 7c 20 | 67 65 74 65 75 69 64 28 |(i<0 || |geteuid(|
|00002310| 29 3d 3d 30 29 65 72 72 | 6f 72 28 39 29 3b 0a 09 |)==0)err|or(9);..|
|00002320| 09 66 70 72 69 6e 74 66 | 28 73 74 64 65 72 72 2c |.fprintf|(stderr,|
|00002330| 22 50 4c 45 41 53 45 20 | 65 78 69 74 20 66 72 6f |"PLEASE |exit fro|
|00002340| 6d 20 6b 65 72 6d 69 74 | 20 6e 6f 72 6d 61 6c 6c |m kermit| normall|
|00002350| 79 20 73 6f 20 74 68 61 | 74 5c 6e 22 29 3b 0a 09 |y so tha|t\n");..|
|00002360| 09 66 70 72 69 6e 74 66 | 28 73 74 64 65 72 72 2c |.fprintf|(stderr,|
|00002370| 22 74 68 65 20 6d 6f 64 | 65 6d 20 6c 69 6e 65 20 |"the mod|em line |
|00002380| 63 61 6e 20 62 65 20 72 | 65 73 65 74 20 70 72 6f |can be r|eset pro|
|00002390| 70 65 72 6c 79 2e 5c 6e | 22 29 3b 0a 09 09 66 70 |perly.\n|");...fp|
|000023a0| 72 69 6e 74 66 28 73 74 | 64 65 72 72 2c 0a 09 09 |rintf(st|derr,...|
|000023b0| 22 54 68 65 20 70 72 6f | 70 65 72 20 77 61 79 20 |"The pro|per way |
|000023c0| 69 73 20 63 74 72 6c 2d | 5c 5c 2c 20 74 68 65 6e |is ctrl-|\\, then|
|000023d0| 20 5c 22 63 5c 22 2c 20 | 74 68 65 6e 20 5c 22 65 | \"c\", |then \"e|
|000023e0| 78 5c 22 5c 6e 22 29 3b | 0a 0a 09 09 28 76 6f 69 |x\"\n");|....(voi|
|000023f0| 64 29 65 78 65 63 6c 28 | 4b 45 52 4d 49 54 2c 22 |d)execl(|KERMIT,"|
|00002400| 6b 65 72 6d 69 74 22 2c | 22 2d 6c 22 2c 44 45 56 |kermit",|"-l",DEV|
|00002410| 49 43 45 2c 0a 09 09 22 | 2d 62 22 2c 53 50 45 45 |ICE,..."|-b",SPEE|
|00002420| 44 2c 28 63 68 61 72 20 | 2a 29 4e 55 4c 4c 29 3b |D,(char |*)NULL);|
|00002430| 0a 09 09 66 70 72 69 6e | 74 66 28 73 74 64 65 72 |...fprin|tf(stder|
|00002440| 72 2c 22 65 78 65 63 20 | 66 61 69 6c 65 64 5c 6e |r,"exec |failed\n|
|00002450| 22 29 3b 2f 2a 73 68 6f | 75 6c 64 20 6e 65 76 65 |");/*sho|uld neve|
|00002460| 72 20 68 61 70 70 65 6e | 2a 2f 0a 09 09 65 72 72 |r happen|*/...err|
|00002470| 6f 72 28 31 30 29 3b 2f | 2a 73 68 6f 75 6c 64 20 |or(10);/|*should |
|00002480| 6e 65 76 65 72 20 68 61 | 70 70 65 6e 2a 2f 0a 09 |never ha|ppen*/..|
|00002490| 7d 0a 09 65 6c 73 65 0a | 09 7b 0a 09 09 2f 2a 70 |}..else.|.{.../*p|
|000024a0| 61 72 65 6e 74 2a 2f 0a | 09 09 2f 2a 20 28 70 61 |arent*/.|../* (pa|
|000024b0| 72 65 6e 74 20 69 73 20 | 73 74 69 6c 6c 20 72 6f |rent is |still ro|
|000024c0| 6f 74 29 20 2a 2f 0a 09 | 09 28 76 6f 69 64 29 77 |ot) */..|.(void)w|
|000024d0| 61 69 74 28 30 29 3b 0a | 09 09 66 64 3d 6f 70 65 |ait(0);.|..fd=ope|
|000024e0| 6e 28 44 45 56 49 43 45 | 2c 31 29 3b 0a 09 09 69 |n(DEVICE|,1);...i|
|000024f0| 66 28 66 64 3c 30 29 7b | 0a 09 09 09 65 72 72 6f |f(fd<0){|....erro|
|00002500| 72 28 31 31 29 3b 0a 09 | 09 7d 0a 09 09 69 3d 77 |r(11);..|.}...i=w|
|00002510| 72 69 74 65 28 66 64 2c | 53 32 2c 53 32 4c 29 3b |rite(fd,|S2,S2L);|
|00002520| 0a 09 09 69 66 28 69 3c | 30 29 65 72 72 6f 72 28 |...if(i<|0)error(|
|00002530| 31 32 29 3b 0a 09 09 66 | 70 72 69 6e 74 66 28 73 |12);...f|printf(s|
|00002540| 74 64 65 72 72 2c 22 77 | 61 69 74 2e 2e 2e 5c 6e |tderr,"w|ait...\n|
|00002550| 22 29 3b 0a 09 09 73 6c | 65 65 70 28 32 29 3b 0a |");...sl|eep(2);.|
|00002560| 2f 2a 09 69 3d 66 63 68 | 6f 77 6e 28 66 64 2c 30 |/*.i=fch|own(fd,0|
|00002570| 2c 30 29 3b 2a 2f 0a 09 | 69 3d 63 68 6f 77 6e 28 |,0);*/..|i=chown(|
|00002580| 44 45 56 49 43 45 2c 30 | 2c 30 29 3b 0a 09 69 66 |DEVICE,0|,0);..if|
|00002590| 28 69 3c 30 29 65 72 72 | 6f 72 28 36 29 3b 0a 2f |(i<0)err|or(6);./|
|000025a0| 2a 09 69 3d 66 63 68 6d | 6f 64 28 66 64 2c 30 36 |*.i=fchm|od(fd,06|
|000025b0| 36 36 29 3b 2a 2f 0a 09 | 69 3d 63 68 6d 6f 64 28 |66);*/..|i=chmod(|
|000025c0| 44 45 56 49 43 45 2c 30 | 36 36 36 29 3b 0a 09 69 |DEVICE,0|666);..i|
|000025d0| 66 28 69 3c 30 29 65 72 | 72 6f 72 28 37 29 3b 0a |f(i<0)er|ror(7);.|
|000025e0| 09 09 69 3d 63 6c 6f 73 | 65 28 66 64 29 3b 0a 09 |..i=clos|e(fd);..|
|000025f0| 09 69 66 28 69 3c 30 29 | 65 72 72 6f 72 28 31 33 |.if(i<0)|error(13|
|00002600| 29 3b 0a 09 09 28 76 6f | 69 64 29 75 6e 6c 69 6e |);...(vo|id)unlin|
|00002610| 6b 28 4c 43 4b 46 49 4c | 45 29 3b 20 2f 2a 69 67 |k(LCKFIL|E); /*ig|
|00002620| 6e 6f 72 65 20 65 72 72 | 6f 72 2c 20 62 65 63 61 |nore err|or, beca|
|00002630| 75 73 65 20 6b 65 72 6d | 69 74 20 64 69 64 69 74 |use kerm|it didit|
|00002640| 2a 2f 0a 09 09 28 76 6f | 69 64 29 73 79 73 74 65 |*/...(vo|id)syste|
|00002650| 6d 28 53 45 44 32 29 3b | 0a 0a 2f 2a 09 09 28 76 |m(SED2);|../*..(v|
|00002660| 6f 69 64 29 73 79 73 74 | 65 6d 28 22 09 64 69 66 |oid)syst|em(".dif|
|00002670| 66 20 2f 65 74 63 2f 74 | 74 79 73 20 2f 74 6d 70 |f /etc/t|tys /tmp|
|00002680| 2f 64 69 61 6c 6f 75 74 | 2e 74 6d 70 22 29 3b 2a |/dialout|.tmp");*|
|00002690| 2f 0a 09 09 28 76 6f 69 | 64 29 73 79 73 74 65 6d |/...(voi|d)system|
|000026a0| 28 44 49 46 46 32 29 3b | 0a 2f 2a 09 09 28 76 6f |(DIFF2);|./*..(vo|
|000026b0| 69 64 29 73 79 73 74 65 | 6d 28 22 09 63 70 20 2f |id)syste|m(".cp /|
|000026c0| 74 6d 70 2f 64 69 61 6c | 6f 75 74 2e 74 6d 70 20 |tmp/dial|out.tmp |
|000026d0| 2f 65 74 63 2f 74 74 79 | 73 22 29 3b 2a 2f 0a 09 |/etc/tty|s");*/..|
|000026e0| 09 28 76 6f 69 64 29 73 | 79 73 74 65 6d 28 43 50 |.(void)s|ystem(CP|
|000026f0| 33 29 3b 0a 09 09 69 3d | 6b 69 6c 6c 28 31 2c 31 |3);...i=|kill(1,1|
|00002700| 29 3b 20 2f 2a 6b 69 6c | 6c 28 70 69 64 2c 73 69 |); /*kil|l(pid,si|
|00002710| 67 6e 61 6c 29 2a 2f 0a | 09 09 69 66 28 69 3d 3d |gnal)*/.|..if(i==|
|00002720| 20 2d 31 29 7b 0a 09 09 | 09 66 70 72 69 6e 74 66 | -1){...|.fprintf|
|00002730| 28 73 74 64 65 72 72 2c | 22 63 6f 75 6c 64 20 6e |(stderr,|"could n|
|00002740| 6f 74 20 6b 69 6c 6c 28 | 31 2c 31 29 5c 6e 22 29 |ot kill(|1,1)\n")|
|00002750| 3b 0a 09 09 09 69 66 28 | 67 65 74 75 69 64 28 29 |;....if(|getuid()|
|00002760| 21 3d 30 20 26 26 20 67 | 65 74 75 69 64 28 29 21 |!=0 && g|etuid()!|
|00002770| 3d 31 30 30 29 65 72 72 | 6f 72 28 31 34 29 3b 0a |=100)err|or(14);.|
|00002780| 09 09 7d 0a 09 09 28 76 | 6f 69 64 29 73 79 73 74 |..}...(v|oid)syst|
|00002790| 65 6d 28 22 09 72 6d 20 | 2d 66 20 2f 74 6d 70 2f |em(".rm |-f /tmp/|
|000027a0| 64 69 61 6c 6f 75 74 2e | 74 6d 70 22 20 29 3b 0a |dialout.|tmp" );.|
|000027b0| 0a 09 0a 09 09 66 70 3d | 66 6f 70 65 6e 28 22 2f |.....fp=|fopen("/|
|000027c0| 74 6d 70 2f 64 69 61 6c | 6f 75 74 6c 6f 67 22 2c |tmp/dial|outlog",|
|000027d0| 22 61 22 29 3b 0a 09 09 | 69 66 28 21 66 70 29 65 |"a");...|if(!fp)e|
|000027e0| 78 69 74 28 32 29 3b 0a | 09 09 74 3d 74 69 6d 65 |xit(2);.|..t=time|
|000027f0| 28 30 29 3b 0a 09 09 66 | 70 72 69 6e 74 66 28 66 |(0);...f|printf(f|
|00002800| 70 2c 22 20 2d 20 25 73 | 20 25 73 22 2c 71 2c 63 |p," - %s| %s",q,c|
|00002810| 74 69 6d 65 28 26 74 29 | 29 3b 0a 09 09 66 63 6c |time(&t)|);...fcl|
|00002820| 6f 73 65 28 66 70 29 3b | 0a 0a 09 0a 09 7d 0a 7d |ose(fp);|.....}.}|
|00002830| 0a 66 69 64 64 6c 65 28 | 29 0a 7b 0a 09 73 74 72 |.fiddle(|).{..str|
|00002840| 75 63 74 20 70 61 73 73 | 77 64 20 2a 70 3b 0a 09 |uct pass|wd *p;..|
|00002850| 73 74 72 75 63 74 20 73 | 74 61 74 20 7a 6f 72 6b |struct s|tat zork|
|00002860| 3b 0a 09 69 6e 74 20 69 | 2c 63 3b 0a 09 69 3d 73 |;..int i|,c;..i=s|
|00002870| 74 61 74 28 44 45 56 49 | 43 45 2c 26 7a 6f 72 6b |tat(DEVI|CE,&zork|
|00002880| 29 3b 0a 09 69 66 28 69 | 3c 30 29 65 72 72 6f 72 |);..if(i|<0)error|
|00002890| 28 31 35 29 3b 0a 09 69 | 66 28 7a 6f 72 6b 2e 73 |(15);..i|f(zork.s|
|000028a0| 74 5f 75 69 64 20 21 3d | 20 30 29 7b 0a 09 09 70 |t_uid !=| 0){...p|
|000028b0| 3d 67 65 74 70 77 75 69 | 64 28 7a 6f 72 6b 2e 73 |=getpwui|d(zork.s|
|000028c0| 74 5f 75 69 64 29 3b 0a | 09 09 66 70 72 69 6e 74 |t_uid);.|..fprint|
|000028d0| 66 28 73 74 64 65 72 72 | 2c 0a 09 09 22 74 68 65 |f(stderr|,..."the|
|000028e0| 20 6d 6f 64 65 6d 20 73 | 65 65 6d 73 20 74 6f 20 | modem s|eems to |
|000028f0| 62 65 20 6f 77 6e 65 64 | 20 62 79 20 25 73 5c 6e |be owned| by %s\n|
|00002900| 22 2c 2f 2a 7a 6f 72 6b | 2e 73 74 5f 75 69 64 2a |",/*zork|.st_uid*|
|00002910| 2f 70 2d 3e 70 77 5f 6e | 61 6d 65 29 3b 0a 09 09 |/p->pw_n|ame);...|
|00002920| 66 70 72 69 6e 74 66 28 | 73 74 64 65 72 72 2c 22 |fprintf(|stderr,"|
|00002930| 64 6f 20 79 6f 75 20 77 | 69 73 68 20 74 6f 20 62 |do you w|ish to b|
|00002940| 61 72 67 65 20 72 69 67 | 68 74 20 6f 6e 20 74 68 |arge rig|ht on th|
|00002950| 72 6f 75 67 68 3f 22 29 | 3b 0a 09 09 63 3d 67 65 |rough?")|;...c=ge|
|00002960| 74 63 68 61 72 28 29 3b | 20 77 68 69 6c 65 28 67 |tchar();| while(g|
|00002970| 65 74 63 68 61 72 28 29 | 21 3d 27 5c 6e 27 29 3b |etchar()|!='\n');|
|00002980| 0a 09 09 69 66 28 63 21 | 3d 27 79 27 29 65 72 72 |...if(c!|='y')err|
|00002990| 6f 72 28 31 36 29 3b 0a | 09 7d 0a 09 69 66 28 28 |or(16);.|.}..if((|
|000029a0| 7a 6f 72 6b 2e 73 74 5f | 6d 6f 64 65 20 26 20 30 |zork.st_|mode & 0|
|000029b0| 37 37 37 29 20 21 3d 20 | 30 36 32 32 29 7b 0a 09 |777) != |0622){..|
|000029c0| 09 66 70 72 69 6e 74 66 | 28 73 74 64 65 72 72 2c |.fprintf|(stderr,|
|000029d0| 22 25 73 20 68 61 73 20 | 77 72 6f 6e 67 20 6d 6f |"%s has |wrong mo|
|000029e0| 64 65 5c 6e 22 2c 44 45 | 56 49 43 45 29 3b 0a 09 |de\n",DE|VICE);..|
|000029f0| 09 66 70 72 69 6e 74 66 | 28 73 74 64 65 72 72 2c |.fprintf|(stderr,|
|00002a00| 22 64 6f 20 79 6f 75 20 | 77 69 73 68 20 74 6f 20 |"do you |wish to |
|00002a10| 62 61 72 67 65 20 72 69 | 67 68 74 20 6f 6e 20 74 |barge ri|ght on t|
|00002a20| 68 72 6f 75 67 68 3f 22 | 29 3b 0a 09 09 63 3d 67 |hrough?"|);...c=g|
|00002a30| 65 74 63 68 61 72 28 29 | 3b 20 77 68 69 6c 65 28 |etchar()|; while(|
|00002a40| 67 65 74 63 68 61 72 28 | 29 21 3d 27 5c 6e 27 29 |getchar(|)!='\n')|
|00002a50| 3b 0a 09 09 69 66 28 63 | 21 3d 27 79 27 29 65 72 |;...if(c|!='y')er|
|00002a60| 72 6f 72 28 31 37 29 3b | 0a 09 7d 0a 7d 0a 65 72 |ror(17);|..}.}.er|
|00002a70| 72 6f 72 28 69 29 0a 7b | 0a 09 46 49 4c 45 20 2a |ror(i).{|..FILE *|
|00002a80| 66 70 3b 0a 09 63 68 61 | 72 20 2a 71 3b 0a 09 75 |fp;..cha|r *q;..u|
|00002a90| 6e 73 69 67 6e 65 64 20 | 6c 6f 6e 67 20 74 3b 0a |nsigned |long t;.|
|00002aa0| 09 66 70 72 69 6e 74 66 | 28 73 74 64 65 72 72 2c |.fprintf|(stderr,|
|00002ab0| 22 65 72 72 6f 72 20 25 | 64 5c 6e 22 2c 69 29 3b |"error %|d\n",i);|
|00002ac0| 0a 09 28 76 6f 69 64 29 | 66 66 6c 75 73 68 28 73 |..(void)|fflush(s|
|00002ad0| 74 64 65 72 72 29 3b 0a | 09 09 66 70 3d 66 6f 70 |tderr);.|..fp=fop|
|00002ae0| 65 6e 28 22 2f 74 6d 70 | 2f 64 69 61 6c 6f 75 74 |en("/tmp|/dialout|
|00002af0| 6c 6f 67 22 2c 22 61 22 | 29 3b 0a 09 09 69 66 28 |log","a"|);...if(|
|00002b00| 21 66 70 29 65 78 69 74 | 28 32 29 3b 0a 09 09 74 |!fp)exit|(2);...t|
|00002b10| 3d 74 69 6d 65 28 30 29 | 3b 0a 09 09 71 3d 67 65 |=time(0)|;...q=ge|
|00002b20| 74 6c 6f 67 69 6e 28 29 | 3b 0a 09 09 66 70 72 69 |tlogin()|;...fpri|
|00002b30| 6e 74 66 28 66 70 2c 22 | 20 2d 20 65 72 72 6f 72 |ntf(fp,"| - error|
|00002b40| 20 25 64 20 25 73 20 25 | 73 22 2c 69 2c 71 2c 63 | %d %s %|s",i,q,c|
|00002b50| 74 69 6d 65 28 26 74 29 | 29 3b 0a 09 09 66 63 6c |time(&t)|);...fcl|
|00002b60| 6f 73 65 28 66 70 29 3b | 0a 09 65 78 69 74 28 69 |ose(fp);|..exit(i|
|00002b70| 29 3b 0a 7d 0a 6b 69 6e | 64 65 78 28 73 2c 74 29 |);.}.kin|dex(s,t)|
|00002b80| 20 0a 63 68 61 72 20 73 | 5b 5d 2c 74 5b 5d 3b 0a | .char s|[],t[];.|
|00002b90| 7b 0a 09 69 6e 74 20 63 | 2c 69 2c 6a 2c 6b 3b 0a |{..int c|,i,j,k;.|
|00002ba0| 09 63 3d 73 5b 30 5d 3b | 0a 09 69 66 28 63 3d 3d |.c=s[0];|..if(c==|
|00002bb0| 30 29 7b 72 65 74 75 72 | 6e 20 2d 31 3b 0a 09 09 |0){retur|n -1;...|
|00002bc0| 7d 0a 09 63 3d 74 5b 30 | 5d 3b 0a 09 69 66 28 63 |}..c=t[0|];..if(c|
|00002bd0| 3d 3d 30 29 7b 72 65 74 | 75 72 6e 20 2d 31 3b 0a |==0){ret|urn -1;.|
|00002be0| 09 09 7d 0a 09 66 6f 72 | 28 69 3d 30 3b 73 5b 69 |..}..for|(i=0;s[i|
|00002bf0| 5d 20 21 3d 27 5c 30 27 | 3b 20 69 2b 2b 29 7b 0a |] !='\0'|; i++){.|
|00002c00| 09 09 66 6f 72 28 6a 3d | 69 2c 6b 3d 30 3b 74 5b |..for(j=|i,k=0;t[|
|00002c10| 6b 5d 20 21 3d 27 5c 30 | 27 20 26 26 20 73 5b 6a |k] !='\0|' && s[j|
|00002c20| 5d 3d 3d 74 5b 6b 5d 3b | 6a 2b 2b 2c 6b 2b 2b 29 |]==t[k];|j++,k++)|
|00002c30| 0a 09 09 09 09 3b 0a 09 | 09 69 66 28 74 5b 6b 5d |.....;..|.if(t[k]|
|00002c40| 3d 3d 27 5c 30 27 29 72 | 65 74 75 72 6e 20 28 69 |=='\0')r|eturn (i|
|00002c50| 29 3b 0a 09 7d 0a 09 09 | 72 65 74 75 72 6e 28 2d |);..}...|return(-|
|00002c60| 31 29 3b 0a 7d 20 0a 61 | 75 74 68 6f 72 69 7a 65 |1);.} .a|uthorize|
|00002c70| 64 28 6e 61 6d 65 29 0a | 63 68 61 72 20 2a 6e 61 |d(name).|char *na|
|00002c80| 6d 65 3b 0a 7b 0a 09 46 | 49 4c 45 20 2a 66 70 3b |me;.{..F|ILE *fp;|
|00002c90| 0a 09 69 6e 74 20 6b 3b | 0a 09 63 68 61 72 20 62 |..int k;|..char b|
|00002ca0| 75 66 5b 39 39 5d 3b 0a | 09 66 70 3d 66 6f 70 65 |uf[99];.|.fp=fope|
|00002cb0| 6e 28 41 55 54 48 46 49 | 4c 45 2c 22 72 22 29 3b |n(AUTHFI|LE,"r");|
|00002cc0| 0a 09 69 66 28 21 66 70 | 29 72 65 74 75 72 6e 20 |..if(!fp|)return |
|00002cd0| 30 3b 0a 09 77 68 69 6c | 65 28 20 66 67 65 74 73 |0;..whil|e( fgets|
|00002ce0| 28 62 75 66 2c 39 38 2c | 66 70 29 3d 3d 62 75 66 |(buf,98,|fp)==buf|
|00002cf0| 29 7b 0a 09 69 66 28 6b | 69 6e 64 65 78 28 62 75 |){..if(k|index(bu|
|00002d00| 66 2c 6e 61 6d 65 29 3d | 3d 30 29 7b 0a 09 09 66 |f,name)=|=0){...f|
|00002d10| 63 6c 6f 73 65 28 66 70 | 29 3b 0a 09 09 72 65 74 |close(fp|);...ret|
|00002d20| 75 72 6e 20 31 3b 0a 09 | 7d 0a 09 7d 0a 09 66 63 |urn 1;..|}..}..fc|
|00002d30| 6c 6f 73 65 28 66 70 29 | 3b 0a 09 72 65 74 75 72 |lose(fp)|;..retur|
|00002d40| 6e 20 30 3b 0a 0a 7d 0a | 00 00 00 00 00 00 00 00 |n 0;..}.|........|
|00002d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e00| 64 69 61 6c 6f 75 74 2f | 61 76 61 74 65 78 2e 68 |dialout/|avatex.h|
|00002e10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002e60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 31 35 |.... 6|44 . 15|
|00002e70| 32 34 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |24 . |13 . |
|00002e80| 20 20 20 32 32 36 30 20 | 20 34 36 30 31 35 32 34 | 2260 | 4601524|
|00002e90| 30 36 37 20 20 20 37 32 | 33 33 00 20 00 00 00 00 |067 72|33. ....|
|00002ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003000| 23 64 65 66 69 6e 65 20 | 4c 43 4b 46 49 4c 45 20 |#define |LCKFILE |
|00003010| 22 2f 75 73 72 2f 73 70 | 6f 6f 6c 2f 75 75 63 70 |"/usr/sp|ool/uucp|
|00003020| 2f 4c 43 4b 2f 4c 43 4b | 2e 2e 74 74 79 68 30 22 |/LCK/LCK|..ttyh0"|
|00003030| 0a 23 64 65 66 69 6e 65 | 20 4b 45 52 4d 49 54 20 |.#define| KERMIT |
|00003040| 22 2f 75 73 72 2f 75 6e | 63 77 2f 6b 65 72 6d 69 |"/usr/un|cw/kermi|
|00003050| 74 22 20 2f 2a 77 68 65 | 72 65 20 79 6f 75 20 6b |t" /*whe|re you k|
|00003060| 65 65 70 20 79 6f 75 72 | 20 6b 65 72 6d 69 74 2a |eep your| kermit*|
|00003070| 2f 0a 23 69 66 64 65 66 | 20 42 53 44 0a 23 64 65 |/.#ifdef| BSD.#de|
|00003080| 66 69 6e 65 20 44 45 56 | 49 43 45 20 22 2f 64 65 |fine DEV|ICE "/de|
|00003090| 76 2f 74 74 79 68 30 22 | 0a 23 65 6c 73 65 0a 23 |v/ttyh0"|.#else.#|
|000030a0| 64 65 66 69 6e 65 20 44 | 45 56 49 43 45 20 22 2f |define D|EVICE "/|
|000030b0| 64 65 76 2f 63 6f 6e 74 | 74 79 22 0a 23 65 6e 64 |dev/cont|ty".#end|
|000030c0| 69 66 0a 23 64 65 66 69 | 6e 65 20 53 50 45 45 44 |if.#defi|ne SPEED|
|000030d0| 20 22 32 34 30 30 22 0a | 23 64 65 66 69 6e 65 20 | "2400".|#define |
|000030e0| 53 31 20 22 61 74 65 31 | 71 30 78 34 76 31 5c 30 |S1 "ate1|q0x4v1\0|
|000030f0| 31 35 22 0a 23 64 65 66 | 69 6e 65 20 53 32 20 22 |15".#def|ine S2 "|
|00003100| 61 74 7a 5c 30 31 35 22 | 0a 23 64 65 66 69 6e 65 |atz\015"|.#define|
|00003110| 20 53 31 4c 20 73 74 72 | 6c 65 6e 28 53 31 29 0a | S1L str|len(S1).|
|00003120| 23 64 65 66 69 6e 65 20 | 53 32 4c 20 73 74 72 6c |#define |S2L strl|
|00003130| 65 6e 28 53 32 29 0a 23 | 69 66 64 65 66 20 42 53 |en(S2).#|ifdef BS|
|00003140| 44 0a 23 64 65 66 69 6e | 65 20 53 45 44 31 20 22 |D.#defin|e SED1 "|
|00003150| 73 65 64 20 27 2f 74 74 | 79 68 30 2f 73 2f 5e 31 |sed '/tt|yh0/s/^1|
|00003160| 2f 30 2f 27 20 2f 65 74 | 63 2f 74 74 79 73 20 3e |/0/' /et|c/ttys >|
|00003170| 2f 74 6d 70 2f 64 69 61 | 6c 6f 75 74 2e 74 6d 70 |/tmp/dia|lout.tmp|
|00003180| 22 0a 23 64 65 66 69 6e | 65 20 53 45 44 32 20 22 |".#defin|e SED2 "|
|00003190| 73 65 64 20 27 2f 74 74 | 79 68 30 2f 73 2f 5e 30 |sed '/tt|yh0/s/^0|
|000031a0| 2f 31 2f 27 20 2f 65 74 | 63 2f 74 74 79 73 20 3e |/1/' /et|c/ttys >|
|000031b0| 2f 74 6d 70 2f 64 69 61 | 6c 6f 75 74 2e 74 6d 70 |/tmp/dia|lout.tmp|
|000031c0| 22 0a 23 65 6c 73 65 0a | 2f 2a 53 79 73 56 2a 2f |".#else.|/*SysV*/|
|000031d0| 0a 23 64 65 66 69 6e 65 | 20 53 45 44 31 20 22 73 |.#define| SED1 "s|
|000031e0| 65 64 20 27 2f 5e 63 74 | 3a 2f 73 2f 72 65 73 70 |ed '/^ct|:/s/resp|
|000031f0| 61 77 6e 2f 6f 66 66 2f | 27 20 2f 65 74 63 2f 69 |awn/off/|' /etc/i|
|00003200| 6e 69 74 74 61 62 3e 2f | 74 6d 70 2f 64 69 61 6c |nittab>/|tmp/dial|
|00003210| 6f 75 74 2e 74 6d 70 22 | 0a 23 64 65 66 69 6e 65 |out.tmp"|.#define|
|00003220| 20 53 45 44 32 20 22 73 | 65 64 20 27 2f 5e 63 74 | SED2 "s|ed '/^ct|
|00003230| 3a 2f 73 2f 6f 66 66 2f | 72 65 73 70 61 77 6e 2f |:/s/off/|respawn/|
|00003240| 27 20 2f 65 74 63 2f 69 | 6e 69 74 74 61 62 3e 2f |' /etc/i|nittab>/|
|00003250| 74 6d 70 2f 64 69 61 6c | 6f 75 74 2e 74 6d 70 22 |tmp/dial|out.tmp"|
|00003260| 0a 23 65 6e 64 69 66 0a | 23 64 65 66 69 6e 65 20 |.#endif.|#define |
|00003270| 43 41 54 20 22 63 61 74 | 20 2f 75 73 72 2f 6c 69 |CAT "cat| /usr/li|
|00003280| 62 2f 75 75 63 70 2f 61 | 76 61 74 65 78 2e 64 61 |b/uucp/a|vatex.da|
|00003290| 74 61 22 0a 23 64 65 66 | 69 6e 65 20 41 55 54 48 |ta".#def|ine AUTH|
|000032a0| 46 49 4c 45 20 22 2f 65 | 74 63 2f 64 69 61 6c 6f |FILE "/e|tc/dialo|
|000032b0| 75 74 2e 61 75 74 68 22 | 0a 23 69 66 64 65 66 20 |ut.auth"|.#ifdef |
|000032c0| 42 53 44 0a 23 64 65 66 | 69 6e 65 20 44 49 46 46 |BSD.#def|ine DIFF|
|000032d0| 31 09 22 64 69 66 66 20 | 2f 65 74 63 2f 74 74 79 |1."diff |/etc/tty|
|000032e0| 73 20 2f 74 6d 70 2f 64 | 69 61 6c 6f 75 74 2e 74 |s /tmp/d|ialout.t|
|000032f0| 6d 70 22 0a 23 64 65 66 | 69 6e 65 20 43 50 31 09 |mp".#def|ine CP1.|
|00003300| 09 22 63 70 20 2f 65 74 | 63 2f 74 74 79 73 20 2f |."cp /et|c/ttys /|
|00003310| 65 74 63 2f 74 74 79 73 | 2e 62 61 6b 2e 74 73 74 |etc/ttys|.bak.tst|
|00003320| 22 0a 23 64 65 66 69 6e | 65 20 43 50 32 09 09 22 |".#defin|e CP2.."|
|00003330| 63 70 20 2f 74 6d 70 2f | 64 69 61 6c 6f 75 74 2e |cp /tmp/|dialout.|
|00003340| 74 6d 70 20 2f 65 74 63 | 2f 74 74 79 73 22 0a 23 |tmp /etc|/ttys".#|
|00003350| 64 65 66 69 6e 65 20 44 | 49 46 46 32 09 22 64 69 |define D|IFF2."di|
|00003360| 66 66 20 2f 65 74 63 2f | 74 74 79 73 20 2f 74 6d |ff /etc/|ttys /tm|
|00003370| 70 2f 64 69 61 6c 6f 75 | 74 2e 74 6d 70 22 0a 23 |p/dialou|t.tmp".#|
|00003380| 64 65 66 69 6e 65 20 43 | 50 33 09 09 22 63 70 20 |define C|P3.."cp |
|00003390| 2f 74 6d 70 2f 64 69 61 | 6c 6f 75 74 2e 74 6d 70 |/tmp/dia|lout.tmp|
|000033a0| 20 2f 65 74 63 2f 74 74 | 79 73 22 0a 23 65 6c 73 | /etc/tt|ys".#els|
|000033b0| 65 0a 23 64 65 66 69 6e | 65 20 44 49 46 46 31 09 |e.#defin|e DIFF1.|
|000033c0| 22 64 69 66 66 20 2f 65 | 74 63 2f 69 6e 69 74 74 |"diff /e|tc/initt|
|000033d0| 61 62 20 2f 74 6d 70 2f | 64 69 61 6c 6f 75 74 2e |ab /tmp/|dialout.|
|000033e0| 74 6d 70 22 0a 23 64 65 | 66 69 6e 65 20 43 50 31 |tmp".#de|fine CP1|
|000033f0| 09 09 22 63 70 20 2f 65 | 74 63 2f 69 6e 69 74 74 |.."cp /e|tc/initt|
|00003400| 61 62 20 2f 65 74 63 2f | 74 74 79 73 2e 62 61 6b |ab /etc/|ttys.bak|
|00003410| 2e 74 73 74 22 0a 23 64 | 65 66 69 6e 65 20 43 50 |.tst".#d|efine CP|
|00003420| 32 09 09 22 63 70 20 2f | 74 6d 70 2f 64 69 61 6c |2.."cp /|tmp/dial|
|00003430| 6f 75 74 2e 74 6d 70 20 | 2f 65 74 63 2f 69 6e 69 |out.tmp |/etc/ini|
|00003440| 74 74 61 62 22 0a 23 64 | 65 66 69 6e 65 20 44 49 |ttab".#d|efine DI|
|00003450| 46 46 32 09 22 64 69 66 | 66 20 2f 65 74 63 2f 69 |FF2."dif|f /etc/i|
|00003460| 6e 69 74 74 61 62 20 2f | 74 6d 70 2f 64 69 61 6c |nittab /|tmp/dial|
|00003470| 6f 75 74 2e 74 6d 70 22 | 0a 23 64 65 66 69 6e 65 |out.tmp"|.#define|
|00003480| 20 43 50 33 09 09 22 63 | 70 20 2f 74 6d 70 2f 64 | CP3.."c|p /tmp/d|
|00003490| 69 61 6c 6f 75 74 2e 74 | 6d 70 20 2f 65 74 63 2f |ialout.t|mp /etc/|
|000034a0| 69 6e 69 74 74 61 62 22 | 0a 23 65 6e 64 69 66 0a |inittab"|.#endif.|
|000034b0| 72 65 6e 74 20 69 73 20 | 73 74 69 6c 6c 20 72 6f |rent is |still ro|
|000034c0| 6f 74 29 20 2a 2f 0a 09 | 09 28 76 6f 69 64 29 77 |ot) */..|.(void)w|
|000034d0| 61 69 74 28 30 29 3b 0a | 09 09 66 64 3d 6f 70 65 |ait(0);.|..fd=ope|
|000034e0| 6e 28 44 45 56 49 43 45 | 2c 31 29 3b 0a 09 09 69 |n(DEVICE|,1);...i|
|000034f0| 66 28 66 64 3c 30 29 7b | 0a 09 09 09 65 72 72 6f |f(fd<0){|....erro|
|00003500| 72 28 31 31 29 3b 0a 09 | 09 7d 0a 09 09 69 3d 77 |r(11);..|.}...i=w|
|00003510| 72 69 74 65 28 66 64 2c | 53 32 2c 53 32 4c 29 3b |rite(fd,|S2,S2L);|
|00003520| 0a 09 09 69 66 28 69 3c | 30 29 65 72 72 6f 72 28 |...if(i<|0)error(|
|00003530| 31 32 29 3b 0a 09 09 66 | 70 72 69 6e 74 66 28 73 |12);...f|printf(s|
|00003540| 74 64 65 72 72 2c 22 77 | 61 69 74 2e 2e 2e 5c 6e |tderr,"w|ait...\n|
|00003550| 22 29 3b 0a 09 09 73 6c | 65 65 70 28 32 29 3b 0a |");...sl|eep(2);.|
|00003560| 2f 2a 09 69 3d 66 63 68 | 6f 77 6e 28 66 64 2c 30 |/*.i=fch|own(fd,0|
|00003570| 2c 30 29 3b 2a 2f 0a 09 | 69 3d 63 68 6f 77 6e 28 |,0);*/..|i=chown(|
|00003580| 44 45 56 49 43 45 2c 30 | 2c 30 29 3b 0a 09 69 66 |DEVICE,0|,0);..if|
|00003590| 28 69 3c 30 29 65 72 72 | 6f 72 28 36 29 3b 0a 2f |(i<0)err|or(6);./|
|000035a0| 2a 09 69 3d 66 63 68 6d | 6f 64 28 66 64 2c 30 36 |*.i=fchm|od(fd,06|
|000035b0| 36 36 29 3b 2a 2f 0a 09 | 69 3d 63 68 6d 6f 64 28 |66);*/..|i=chmod(|
|000035c0| 44 45 56 49 43 45 2c 30 | 36 36 36 29 3b 0a 09 69 |DEVICE,0|666);..i|
|000035d0| 66 28 69 3c 30 29 65 72 | 72 6f 72 28 37 29 3b 0a |f(i<0)er|ror(7);.|
|000035e0| 09 09 69 3d 63 6c 6f 73 | 65 28 66 64 29 3b 0a 09 |..i=clos|e(fd);..|
|000035f0| 09 69 66 28 69 3c 30 29 | 65 72 72 6f 72 28 31 33 |.if(i<0)|error(13|
|00003600| 64 69 61 6c 6f 75 74 2f | 63 6f 75 72 69 65 72 2e |dialout/|courier.|
|00003610| 68 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |h.......|........|
|00003620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003660| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 31 35 |.... 6|44 . 15|
|00003670| 32 34 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |24 . |13 . |
|00003680| 20 20 20 32 32 36 30 20 | 20 34 36 30 31 35 32 34 | 2260 | 4601524|
|00003690| 30 36 37 20 20 20 37 34 | 31 33 00 20 00 00 00 00 |067 74|13. ....|
|000036a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003800| 23 64 65 66 69 6e 65 20 | 4c 43 4b 46 49 4c 45 20 |#define |LCKFILE |
|00003810| 22 2f 75 73 72 2f 73 70 | 6f 6f 6c 2f 75 75 63 70 |"/usr/sp|ool/uucp|
|00003820| 2f 4c 43 4b 2f 4c 43 4b | 2e 2e 74 74 79 68 30 22 |/LCK/LCK|..ttyh0"|
|00003830| 0a 23 64 65 66 69 6e 65 | 20 4b 45 52 4d 49 54 20 |.#define| KERMIT |
|00003840| 22 2f 75 73 72 2f 75 6e | 63 77 2f 6b 65 72 6d 69 |"/usr/un|cw/kermi|
|00003850| 74 22 20 2f 2a 77 68 65 | 72 65 20 79 6f 75 20 6b |t" /*whe|re you k|
|00003860| 65 65 70 20 79 6f 75 72 | 20 6b 65 72 6d 69 74 2a |eep your| kermit*|
|00003870| 2f 0a 23 69 66 64 65 66 | 20 42 53 44 0a 23 64 65 |/.#ifdef| BSD.#de|
|00003880| 66 69 6e 65 20 44 45 56 | 49 43 45 20 22 2f 64 65 |fine DEV|ICE "/de|
|00003890| 76 2f 74 74 79 68 38 22 | 0a 23 65 6c 73 65 0a 23 |v/ttyh8"|.#else.#|
|000038a0| 64 65 66 69 6e 65 20 44 | 45 56 49 43 45 20 22 2f |define D|EVICE "/|
|000038b0| 64 65 76 2f 63 6f 6e 74 | 74 79 22 0a 23 65 6e 64 |dev/cont|ty".#end|
|000038c0| 69 66 0a 23 64 65 66 69 | 6e 65 20 53 50 45 45 44 |if.#defi|ne SPEED|
|000038d0| 20 22 31 32 30 30 22 0a | 23 64 65 66 69 6e 65 20 | "1200".|#define |
|000038e0| 53 31 20 22 61 74 65 31 | 71 30 78 34 76 31 5c 30 |S1 "ate1|q0x4v1\0|
|000038f0| 31 35 22 0a 23 64 65 66 | 69 6e 65 20 53 32 20 22 |15".#def|ine S2 "|
|00003900| 61 74 7a 5c 30 31 35 22 | 0a 23 64 65 66 69 6e 65 |atz\015"|.#define|
|00003910| 20 53 31 4c 20 73 74 72 | 6c 65 6e 28 53 31 29 0a | S1L str|len(S1).|
|00003920| 23 64 65 66 69 6e 65 20 | 53 32 4c 20 73 74 72 6c |#define |S2L strl|
|00003930| 65 6e 28 53 32 29 0a 23 | 69 66 64 65 66 20 42 53 |en(S2).#|ifdef BS|
|00003940| 44 0a 23 64 65 66 69 6e | 65 20 53 45 44 31 20 22 |D.#defin|e SED1 "|
|00003950| 73 65 64 20 27 2f 74 74 | 79 68 30 2f 73 2f 5e 31 |sed '/tt|yh0/s/^1|
|00003960| 2f 30 2f 27 20 2f 65 74 | 63 2f 74 74 79 73 20 3e |/0/' /et|c/ttys >|
|00003970| 2f 74 6d 70 2f 64 69 61 | 6c 6f 75 74 2e 74 6d 70 |/tmp/dia|lout.tmp|
|00003980| 22 0a 23 64 65 66 69 6e | 65 20 53 45 44 32 20 22 |".#defin|e SED2 "|
|00003990| 73 65 64 20 27 2f 74 74 | 79 68 30 2f 73 2f 5e 30 |sed '/tt|yh0/s/^0|
|000039a0| 2f 31 2f 27 20 2f 65 74 | 63 2f 74 74 79 73 20 3e |/1/' /et|c/ttys >|
|000039b0| 2f 74 6d 70 2f 64 69 61 | 6c 6f 75 74 2e 74 6d 70 |/tmp/dia|lout.tmp|
|000039c0| 22 0a 23 65 6c 73 65 0a | 2f 2a 53 79 73 56 2a 2f |".#else.|/*SysV*/|
|000039d0| 0a 23 64 65 66 69 6e 65 | 20 53 45 44 31 20 22 73 |.#define| SED1 "s|
|000039e0| 65 64 20 27 2f 5e 63 74 | 3a 2f 73 2f 72 65 73 70 |ed '/^ct|:/s/resp|
|000039f0| 61 77 6e 2f 6f 66 66 2f | 27 20 2f 65 74 63 2f 69 |awn/off/|' /etc/i|
|00003a00| 6e 69 74 74 61 62 3e 2f | 74 6d 70 2f 64 69 61 6c |nittab>/|tmp/dial|
|00003a10| 6f 75 74 2e 74 6d 70 22 | 0a 23 64 65 66 69 6e 65 |out.tmp"|.#define|
|00003a20| 20 53 45 44 32 20 22 73 | 65 64 20 27 2f 5e 63 74 | SED2 "s|ed '/^ct|
|00003a30| 3a 2f 73 2f 6f 66 66 2f | 72 65 73 70 61 77 6e 2f |:/s/off/|respawn/|
|00003a40| 27 20 2f 65 74 63 2f 69 | 6e 69 74 74 61 62 3e 2f |' /etc/i|nittab>/|
|00003a50| 74 6d 70 2f 64 69 61 6c | 6f 75 74 2e 74 6d 70 22 |tmp/dial|out.tmp"|
|00003a60| 0a 23 65 6e 64 69 66 0a | 23 64 65 66 69 6e 65 20 |.#endif.|#define |
|00003a70| 43 41 54 20 22 63 61 74 | 20 2f 75 73 72 2f 6c 69 |CAT "cat| /usr/li|
|00003a80| 62 2f 75 75 63 70 2f 61 | 76 61 74 65 78 2e 64 61 |b/uucp/a|vatex.da|
|00003a90| 74 61 22 0a 23 64 65 66 | 69 6e 65 20 41 55 54 48 |ta".#def|ine AUTH|
|00003aa0| 46 49 4c 45 20 22 2f 65 | 74 63 2f 64 69 61 6c 6f |FILE "/e|tc/dialo|
|00003ab0| 75 74 2e 61 75 74 68 22 | 0a 23 69 66 64 65 66 20 |ut.auth"|.#ifdef |
|00003ac0| 42 53 44 0a 23 64 65 66 | 69 6e 65 20 44 49 46 46 |BSD.#def|ine DIFF|
|00003ad0| 31 09 22 64 69 66 66 20 | 2f 65 74 63 2f 74 74 79 |1."diff |/etc/tty|
|00003ae0| 73 20 2f 74 6d 70 2f 64 | 69 61 6c 6f 75 74 2e 74 |s /tmp/d|ialout.t|
|00003af0| 6d 70 22 0a 23 64 65 66 | 69 6e 65 20 43 50 31 09 |mp".#def|ine CP1.|
|00003b00| 09 22 63 70 20 2f 65 74 | 63 2f 74 74 79 73 20 2f |."cp /et|c/ttys /|
|00003b10| 65 74 63 2f 74 74 79 73 | 2e 62 61 6b 2e 74 73 74 |etc/ttys|.bak.tst|
|00003b20| 22 0a 23 64 65 66 69 6e | 65 20 43 50 32 09 09 22 |".#defin|e CP2.."|
|00003b30| 63 70 20 2f 74 6d 70 2f | 64 69 61 6c 6f 75 74 2e |cp /tmp/|dialout.|
|00003b40| 74 6d 70 20 2f 65 74 63 | 2f 74 74 79 73 22 0a 23 |tmp /etc|/ttys".#|
|00003b50| 64 65 66 69 6e 65 20 44 | 49 46 46 32 09 22 64 69 |define D|IFF2."di|
|00003b60| 66 66 20 2f 65 74 63 2f | 74 74 79 73 20 2f 74 6d |ff /etc/|ttys /tm|
|00003b70| 70 2f 64 69 61 6c 6f 75 | 74 2e 74 6d 70 22 0a 23 |p/dialou|t.tmp".#|
|00003b80| 64 65 66 69 6e 65 20 43 | 50 33 09 09 22 63 70 20 |define C|P3.."cp |
|00003b90| 2f 74 6d 70 2f 64 69 61 | 6c 6f 75 74 2e 74 6d 70 |/tmp/dia|lout.tmp|
|00003ba0| 20 2f 65 74 63 2f 74 74 | 79 73 22 0a 23 65 6c 73 | /etc/tt|ys".#els|
|00003bb0| 65 0a 23 64 65 66 69 6e | 65 20 44 49 46 46 31 09 |e.#defin|e DIFF1.|
|00003bc0| 22 64 69 66 66 20 2f 65 | 74 63 2f 69 6e 69 74 74 |"diff /e|tc/initt|
|00003bd0| 61 62 20 2f 74 6d 70 2f | 64 69 61 6c 6f 75 74 2e |ab /tmp/|dialout.|
|00003be0| 74 6d 70 22 0a 23 64 65 | 66 69 6e 65 20 43 50 31 |tmp".#de|fine CP1|
|00003bf0| 09 09 22 63 70 20 2f 65 | 74 63 2f 69 6e 69 74 74 |.."cp /e|tc/initt|
|00003c00| 61 62 20 2f 65 74 63 2f | 74 74 79 73 2e 62 61 6b |ab /etc/|ttys.bak|
|00003c10| 2e 74 73 74 22 0a 23 64 | 65 66 69 6e 65 20 43 50 |.tst".#d|efine CP|
|00003c20| 32 09 09 22 63 70 20 2f | 74 6d 70 2f 64 69 61 6c |2.."cp /|tmp/dial|
|00003c30| 6f 75 74 2e 74 6d 70 20 | 2f 65 74 63 2f 69 6e 69 |out.tmp |/etc/ini|
|00003c40| 74 74 61 62 22 0a 23 64 | 65 66 69 6e 65 20 44 49 |ttab".#d|efine DI|
|00003c50| 46 46 32 09 22 64 69 66 | 66 20 2f 65 74 63 2f 69 |FF2."dif|f /etc/i|
|00003c60| 6e 69 74 74 61 62 20 2f | 74 6d 70 2f 64 69 61 6c |nittab /|tmp/dial|
|00003c70| 6f 75 74 2e 74 6d 70 22 | 0a 23 64 65 66 69 6e 65 |out.tmp"|.#define|
|00003c80| 20 43 50 33 09 09 22 63 | 70 20 2f 74 6d 70 2f 64 | CP3.."c|p /tmp/d|
|00003c90| 69 61 6c 6f 75 74 2e 74 | 6d 70 20 2f 65 74 63 2f |ialout.t|mp /etc/|
|00003ca0| 69 6e 69 74 74 61 62 22 | 0a 23 65 6e 64 69 66 0a |inittab"|.#endif.|
|00003cb0| 72 65 6e 74 20 69 73 20 | 73 74 69 6c 6c 20 72 6f |rent is |still ro|
|00003cc0| 6f 74 29 20 2a 2f 0a 09 | 09 28 76 6f 69 64 29 77 |ot) */..|.(void)w|
|00003cd0| 61 69 74 28 30 29 3b 0a | 09 09 66 64 3d 6f 70 65 |ait(0);.|..fd=ope|
|00003ce0| 6e 28 44 45 56 49 43 45 | 2c 31 29 3b 0a 09 09 69 |n(DEVICE|,1);...i|
|00003cf0| 66 28 66 64 3c 30 29 7b | 0a 09 09 09 65 72 72 6f |f(fd<0){|....erro|
|00003d00| 72 28 31 31 29 3b 0a 09 | 09 7d 0a 09 09 69 3d 77 |r(11);..|.}...i=w|
|00003d10| 72 69 74 65 28 66 64 2c | 53 32 2c 53 32 4c 29 3b |rite(fd,|S2,S2L);|
|00003d20| 0a 09 09 69 66 28 69 3c | 30 29 65 72 72 6f 72 28 |...if(i<|0)error(|
|00003d30| 31 32 29 3b 0a 09 09 66 | 70 72 69 6e 74 66 28 73 |12);...f|printf(s|
|00003d40| 74 64 65 72 72 2c 22 77 | 61 69 74 2e 2e 2e 5c 6e |tderr,"w|ait...\n|
|00003d50| 22 29 3b 0a 09 09 73 6c | 65 65 70 28 32 29 3b 0a |");...sl|eep(2);.|
|00003d60| 2f 2a 09 69 3d 66 63 68 | 6f 77 6e 28 66 64 2c 30 |/*.i=fch|own(fd,0|
|00003d70| 2c 30 29 3b 2a 2f 0a 09 | 69 3d 63 68 6f 77 6e 28 |,0);*/..|i=chown(|
|00003d80| 44 45 56 49 43 45 2c 30 | 2c 30 29 3b 0a 09 69 66 |DEVICE,0|,0);..if|
|00003d90| 28 69 3c 30 29 65 72 72 | 6f 72 28 36 29 3b 0a 2f |(i<0)err|or(6);./|
|00003da0| 2a 09 69 3d 66 63 68 6d | 6f 64 28 66 64 2c 30 36 |*.i=fchm|od(fd,06|
|00003db0| 36 36 29 3b 2a 2f 0a 09 | 69 3d 63 68 6d 6f 64 28 |66);*/..|i=chmod(|
|00003dc0| 44 45 56 49 43 45 2c 30 | 36 36 36 29 3b 0a 09 69 |DEVICE,0|666);..i|
|00003dd0| 66 28 69 3c 30 29 65 72 | 72 6f 72 28 37 29 3b 0a |f(i<0)er|ror(7);.|
|00003de0| 09 09 69 3d 63 6c 6f 73 | 65 28 66 64 29 3b 0a 09 |..i=clos|e(fd);..|
|00003df0| 09 69 66 28 69 3c 30 29 | 65 72 72 6f 72 28 31 33 |.if(i<0)|error(13|
|00003e00| 64 69 61 6c 6f 75 74 2f | 61 76 61 74 65 78 2e 64 |dialout/|avatex.d|
|00003e10| 61 74 61 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |ata.....|........|
|00003e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 31 35 |.... 6|44 . 15|
|00003e70| 32 34 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |24 . |13 . |
|00003e80| 20 20 20 20 20 20 37 20 | 20 34 36 30 31 35 32 34 | 7 | 4601524|
|00003e90| 30 36 37 20 20 20 37 36 | 33 32 00 20 00 00 00 00 |067 76|32. ....|
|00003ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004000| 48 61 79 65 73 3f 0a a8 | 00 18 00 0b 61 76 61 74 |Hayes?..|....avat|
|00004010| 65 78 2e 64 61 74 61 00 | 00 00 02 00 00 00 38 a9 |ex.data.|......8.|
|00004020| 00 1c 00 0c 63 6f 75 72 | 69 65 72 2e 64 61 74 61 |....cour|ier.data|
|00004030| 00 00 02 00 66 69 6e 65 | 20 4b 45 52 4d 49 54 20 |....fine| KERMIT |
|00004040| 22 2f 75 73 72 2f 75 6e | 63 77 2f 6b 65 72 6d 69 |"/usr/un|cw/kermi|
|00004050| 74 22 20 2f 2a 77 68 65 | 72 65 20 79 6f 75 20 6b |t" /*whe|re you k|
|00004060| 65 65 70 20 79 6f 75 72 | 20 6b 65 72 6d 69 74 2a |eep your| kermit*|
|00004070| 2f 0a 23 69 66 64 65 66 | 20 42 53 44 0a 23 64 65 |/.#ifdef| BSD.#de|
|00004080| 66 69 6e 65 20 44 45 56 | 49 43 45 20 22 2f 64 65 |fine DEV|ICE "/de|
|00004090| 76 2f 74 74 79 68 38 22 | 0a 23 65 6c 73 65 0a 23 |v/ttyh8"|.#else.#|
|000040a0| 64 65 66 69 6e 65 20 44 | 45 56 49 43 45 20 22 2f |define D|EVICE "/|
|000040b0| 64 65 76 2f 63 6f 6e 74 | 74 79 22 0a 23 65 6e 64 |dev/cont|ty".#end|
|000040c0| 69 66 0a 23 64 65 66 69 | 6e 65 20 53 50 45 45 44 |if.#defi|ne SPEED|
|000040d0| 20 22 31 32 30 30 22 0a | 23 64 65 66 69 6e 65 20 | "1200".|#define |
|000040e0| 53 31 20 22 61 74 65 31 | 71 30 78 34 76 31 5c 30 |S1 "ate1|q0x4v1\0|
|000040f0| 31 35 22 0a 23 64 65 66 | 69 6e 65 20 53 32 20 22 |15".#def|ine S2 "|
|00004100| 61 74 7a 5c 30 31 35 22 | 0a 23 64 65 66 69 6e 65 |atz\015"|.#define|
|00004110| 20 53 31 4c 20 73 74 72 | 6c 65 6e 28 53 31 29 0a | S1L str|len(S1).|
|00004120| 23 64 65 66 69 6e 65 20 | 53 32 4c 20 73 74 72 6c |#define |S2L strl|
|00004130| 65 6e 28 53 32 29 0a 23 | 69 66 64 65 66 20 42 53 |en(S2).#|ifdef BS|
|00004140| 44 0a 23 64 65 66 69 6e | 65 20 53 45 44 31 20 22 |D.#defin|e SED1 "|
|00004150| 73 65 64 20 27 2f 74 74 | 79 68 30 2f 73 2f 5e 31 |sed '/tt|yh0/s/^1|
|00004160| 2f 30 2f 27 20 2f 65 74 | 63 2f 74 74 79 73 20 3e |/0/' /et|c/ttys >|
|00004170| 2f 74 6d 70 2f 64 69 61 | 6c 6f 75 74 2e 74 6d 70 |/tmp/dia|lout.tmp|
|00004180| 22 0a 23 64 65 66 69 6e | 65 20 53 45 44 32 20 22 |".#defin|e SED2 "|
|00004190| 73 65 64 20 27 2f 74 74 | 79 68 30 2f 73 2f 5e 30 |sed '/tt|yh0/s/^0|
|000041a0| 2f 31 2f 27 20 2f 65 74 | 63 2f 74 74 79 73 20 3e |/1/' /et|c/ttys >|
|000041b0| 2f 74 6d 70 2f 64 69 61 | 6c 6f 75 74 2e 74 6d 70 |/tmp/dia|lout.tmp|
|000041c0| 22 0a 23 65 6c 73 65 0a | 2f 2a 53 79 73 56 2a 2f |".#else.|/*SysV*/|
|000041d0| 0a 23 64 65 66 69 6e 65 | 20 53 45 44 31 20 22 73 |.#define| SED1 "s|
|000041e0| 65 64 20 27 2f 5e 63 74 | 3a 2f 73 2f 72 65 73 70 |ed '/^ct|:/s/resp|
|000041f0| 61 77 6e 2f 6f 66 66 2f | 27 20 2f 65 74 63 2f 69 |awn/off/|' /etc/i|
|00004200| 64 69 61 6c 6f 75 74 2f | 63 6f 75 72 69 65 72 2e |dialout/|courier.|
|00004210| 64 61 74 61 00 00 00 00 | 00 00 00 00 00 00 00 00 |data....|........|
|00004220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 31 35 |.... 6|44 . 15|
|00004270| 32 34 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |24 . |13 . |
|00004280| 20 20 20 31 34 31 31 20 | 20 34 36 30 31 35 32 34 | 1411 | 4601524|
|00004290| 30 37 30 20 20 31 30 30 | 36 34 00 20 00 00 00 00 |070 100|64. ....|
|000042a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000042f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004400| 63 30 3d 74 72 61 6e 73 | 6d 69 74 74 65 72 20 64 |c0=trans|mitter d|
|00004410| 69 73 61 62 6c 65 64 2c | 20 63 31 3d 74 72 61 6e |isabled,| c1=tran|
|00004420| 73 6d 69 74 74 65 72 20 | 65 6e 61 62 6c 65 64 0a |smitter |enabled.|
|00004430| 64 20 70 3d 70 75 6c 73 | 65 2c 20 74 3d 74 6f 6e |d p=puls|e, t=ton|
|00004440| 65 2c 20 27 2c 27 3d 70 | 61 75 73 65 20 32 20 73 |e, ','=p|ause 2 s|
|00004450| 65 63 2c 20 27 3b 27 3d | 72 65 74 75 72 6e 20 74 |ec, ';'=|return t|
|00004460| 6f 20 63 6f 6d 6d 61 6e | 64 20 73 74 61 74 65 0a |o comman|d state.|
|00004470| 20 20 21 3d 66 6c 61 73 | 68 20 68 6f 6f 6b 2c 20 | !=flas|h hook, |
|00004480| 77 3d 77 61 69 74 20 66 | 6f 72 20 32 6e 64 20 64 |w=wait f|or 2nd d|
|00004490| 69 61 6c 74 6f 6e 65 20 | 28 78 33 20 6f 72 20 68 |ialtone |(x3 or h|
|000044a0| 69 67 68 65 72 29 0a 20 | 20 40 3d 77 61 69 74 20 |igher). | @=wait |
|000044b0| 66 6f 72 20 61 6e 73 77 | 65 72 20 28 78 33 20 6f |for answ|er (x3 o|
|000044c0| 72 20 68 69 67 68 65 72 | 29 2c 20 72 3d 72 65 76 |r higher|), r=rev|
|000044d0| 65 72 73 65 20 72 6f 6c | 65 73 0a 65 30 3d 65 63 |erse rol|es.e0=ec|
|000044e0| 68 6f 20 6f 66 66 2c 20 | 65 31 3d 65 63 68 6f 20 |ho off, |e1=echo |
|000044f0| 6f 6e 0a 66 30 3d 68 61 | 6c 66 20 64 75 70 6c 65 |on.f0=ha|lf duple|
|00004500| 73 2c 20 66 31 3d 66 75 | 6c 6c 20 64 75 70 6c 65 |s, f1=fu|ll duple|
|00004510| 73 0a 68 30 3d 68 61 6e | 67 20 75 70 2c 20 68 31 |s.h0=han|g up, h1|
|00004520| 3d 67 6f 20 6f 66 66 20 | 68 6f 6f 6b 0a 69 30 3d |=go off |hook.i0=|
|00004530| 70 72 6f 64 75 63 74 20 | 63 6f 64 65 2c 20 69 31 |product |code, i1|
|00004540| 3d 72 6f 6d 20 63 6b 73 | 75 6d 2c 20 69 32 3d 72 |=rom cks|um, i2=r|
|00004550| 61 6d 20 74 65 73 74 2c | 20 69 33 3d 72 65 74 75 |am test,| i3=retu|
|00004560| 72 6e 20 63 61 6c 6c 20 | 64 75 72 61 74 69 6f 6e |rn call |duration|
|00004570| 2f 0a 20 20 20 72 65 61 | 6c 20 74 69 6d 65 2c 20 |/. rea|l time, |
|00004580| 69 34 3d 64 69 73 70 6c | 61 79 20 63 75 72 72 65 |i4=displ|ay curre|
|00004590| 6e 74 20 73 65 74 74 69 | 6e 67 73 0a 6b 30 3d 61 |nt setti|ngs.k0=a|
|000045a0| 74 20 61 74 69 33 20 64 | 69 73 70 6c 61 79 20 63 |t ati3 d|isplay c|
|000045b0| 61 6c 6c 20 64 75 72 61 | 74 69 6f 6e 2c 20 6b 31 |all dura|tion, k1|
|000045c0| 3d 72 65 61 6c 20 74 69 | 6d 65 0a 6d 30 3d 73 70 |=real ti|me.m0=sp|
|000045d0| 65 61 6b 65 72 20 6f 66 | 66 2c 20 6d 31 3d 73 70 |eaker of|f, m1=sp|
|000045e0| 65 61 6b 65 72 20 6f 6e | 20 75 6e 74 69 6c 20 63 |eaker on| until c|
|000045f0| 6f 6e 6e 65 63 74 2c 20 | 6d 32 3d 61 6c 77 61 79 |onnect, |m2=alway|
|00004600| 73 20 6f 6e 0a 6f 3d 72 | 65 74 75 72 6e 20 6f 6e |s on.o=r|eturn on|
|00004610| 6c 69 6e 65 0a 70 3d 70 | 75 6c 73 65 20 64 69 61 |line.p=p|ulse dia|
|00004620| 6c 0a 71 30 3d 72 65 73 | 75 6c 74 20 63 6f 64 65 |l.q0=res|ult code|
|00004630| 73 20 64 69 73 70 6c 61 | 79 65 64 2c 20 71 31 3d |s displa|yed, q1=|
|00004640| 71 75 69 65 74 20 6d 6f | 64 65 0a 76 30 3d 6e 75 |quiet mo|de.v0=nu|
|00004650| 6d 65 72 69 63 20 6d 6f | 64 65 2c 20 76 31 3d 76 |meric mo|de, v1=v|
|00004660| 65 72 62 61 6c 20 6d 6f | 64 65 0a 78 30 2d 36 3d |erbal mo|de.x0-6=|
|00004670| 76 65 72 62 6f 73 69 74 | 79 20 6c 65 76 65 6c 28 |verbosit|y level(|
|00004680| 36 20 69 73 20 6d 6f 73 | 74 20 76 65 72 62 6f 73 |6 is mos|t verbos|
|00004690| 65 29 0a 7a 3d 72 65 73 | 65 74 20 74 6f 20 64 65 |e).z=res|et to de|
|000046a0| 66 61 75 6c 74 0a 3e 3d | 72 65 70 65 61 74 20 63 |fault.>=|repeat c|
|000046b0| 6f 6d 6d 61 6e 64 20 63 | 6f 6e 74 69 6e 75 6f 75 |ommand c|ontinuou|
|000046c0| 73 6c 79 0a 24 3d 68 65 | 6c 70 20 63 6f 6d 6d 61 |sly.$=he|lp comma|
|000046d0| 6e 64 20 73 75 6d 6d 61 | 72 79 0a 44 24 3d 64 69 |nd summa|ry.D$=di|
|000046e0| 61 6c 20 68 65 6c 70 20 | 63 6f 6d 6d 61 6e 64 73 |al help |commands|
|000046f0| 0a 73 24 3d 73 2d 72 65 | 67 20 68 65 6c 70 20 63 |.s$=s-re|g help c|
|00004700| 6f 6d 6d 61 6e 64 73 0a | 0a 2f 74 74 79 73 20 2f |ommands.|./ttys /|
|00004710| 65 74 63 2f 74 74 79 73 | 2e 62 61 6b 2e 74 73 74 |etc/ttys|.bak.tst|
|00004720| 22 0a 23 64 65 66 69 6e | 65 20 43 50 32 09 09 22 |".#defin|e CP2.."|
|00004730| 63 70 20 2f 74 6d 70 2f | 64 69 61 6c 6f 75 74 2e |cp /tmp/|dialout.|
|00004740| 74 6d 70 20 2f 65 74 63 | 2f 74 74 79 73 22 0a 23 |tmp /etc|/ttys".#|
|00004750| 64 65 66 69 6e 65 20 44 | 49 46 46 32 09 22 64 69 |define D|IFF2."di|
|00004760| 66 66 20 2f 65 74 63 2f | 74 74 79 73 20 2f 74 6d |ff /etc/|ttys /tm|
|00004770| 70 2f 64 69 61 6c 6f 75 | 74 2e 74 6d 70 22 0a 23 |p/dialou|t.tmp".#|
|00004780| 64 65 66 69 6e 65 20 43 | 50 33 09 09 22 63 70 20 |define C|P3.."cp |
|00004790| 2f 74 6d 70 2f 64 69 61 | 6c 6f 75 74 2e 74 6d 70 |/tmp/dia|lout.tmp|
|000047a0| 20 2f 65 74 63 2f 74 74 | 79 73 22 0a 23 65 6c 73 | /etc/tt|ys".#els|
|000047b0| 65 0a 23 64 65 66 69 6e | 65 20 44 49 46 46 31 09 |e.#defin|e DIFF1.|
|000047c0| 22 64 69 66 66 20 2f 65 | 74 63 2f 69 6e 69 74 74 |"diff /e|tc/initt|
|000047d0| 61 62 20 2f 74 6d 70 2f | 64 69 61 6c 6f 75 74 2e |ab /tmp/|dialout.|
|000047e0| 74 6d 70 22 0a 23 64 65 | 66 69 6e 65 20 43 50 31 |tmp".#de|fine CP1|
|000047f0| 09 09 22 63 70 20 2f 65 | 74 63 2f 69 6e 69 74 74 |.."cp /e|tc/initt|
|00004800| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004880| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004890| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004c00| 09 09 66 6f 72 28 6a 3d | 69 2c 6b 3d 30 3b 74 5b |..for(j=|i,k=0;t[|
|00004c10| 6b 5d 20 21 3d 27 5c 30 | 27 20 26 26 20 73 5b 6a |k] !='\0|' && s[j|
|00004c20| 5d 3d 3d 74 5b 6b 5d 3b | 6a 2b 2b 2c 6b 2b 2b 29 |]==t[k];|j++,k++)|
|00004c30| 0a 09 09 09 09 3b 0a 09 | 09 69 66 28 74 5b 6b 5d |.....;..|.if(t[k]|
|00004c40| 3d 3d 27 5c 30 27 29 72 | 65 74 75 72 6e 20 28 69 |=='\0')r|eturn (i|
|00004c50| 29 3b 0a 09 7d 0a 09 09 | 72 65 74 75 72 6e 28 2d |);..}...|return(-|
|00004c60| 31 29 3b 0a 7d 20 0a 61 | 75 74 68 6f 72 69 7a 65 |1);.} .a|uthorize|
|00004c70| 64 28 6e 61 6d 65 29 0a | 63 68 61 72 20 2a 6e 61 |d(name).|char *na|
|00004c80| 6d 65 3b 0a 7b 0a 09 46 | 49 4c 45 20 2a 66 70 3b |me;.{..F|ILE *fp;|
|00004c90| 0a 09 69 6e 74 20 6b 3b | 0a 09 63 68 61 72 20 62 |..int k;|..char b|
|00004ca0| 75 66 5b 39 39 5d 3b 0a | 09 66 70 3d 66 6f 70 65 |uf[99];.|.fp=fope|
|00004cb0| 6e 28 41 55 54 48 46 49 | 4c 45 2c 22 72 22 29 3b |n(AUTHFI|LE,"r");|
|00004cc0| 0a 09 69 66 28 21 66 70 | 29 72 65 74 75 72 6e 20 |..if(!fp|)return |
|00004cd0| 30 3b 0a 09 77 68 69 6c | 65 28 20 66 67 65 74 73 |0;..whil|e( fgets|
|00004ce0| 28 62 75 66 2c 39 38 2c | 66 70 29 3d 3d 62 75 66 |(buf,98,|fp)==buf|
|00004cf0| 29 7b 0a 09 69 66 28 6b | 69 6e 64 65 78 28 62 75 |){..if(k|index(bu|
|00004d00| 66 2c 6e 61 6d 65 29 3d | 3d 30 29 7b 0a 09 09 66 |f,name)=|=0){...f|
|00004d10| 63 6c 6f 73 65 28 66 70 | 29 3b 0a 09 09 72 65 74 |close(fp|);...ret|
|00004d20| 75 72 6e 20 31 3b 0a 09 | 7d 0a 09 7d 0a 09 66 63 |urn 1;..|}..}..fc|
|00004d30| 6c 6f 73 65 28 66 70 29 | 3b 0a 09 72 65 74 75 72 |lose(fp)|;..retur|
|00004d40| 6e 20 30 3b 0a 0a 7d 0a | 00 00 00 00 00 00 00 00 |n 0;..}.|........|
|00004d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e00| 64 69 61 6c 6f 75 74 2f | 61 76 61 74 65 78 2e 68 |dialout/|avatex.h|
|00004e10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004e60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 31 35 |.... 6|44 . 15|
|00004e70| 32 34 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |24 . |13 . |
|00004e80| 20 20 20 32 32 36 30 20 | 20 34 36 30 31 35 32 34 | 2260 | 4601524|
|00004e90| 30 36 37 20 20 20 37 32 | 33 33 00 20 00 00 00 00 |067 72|33. ....|
|00004ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005000| 23 64 65 66 69 6e 65 20 | 4c 43 4b 46 49 4c 45 20 |#define |LCKFILE |
|00005010| 22 2f 75 73 72 2f 73 70 | 6f 6f 6c 2f 75 75 63 70 |"/usr/sp|ool/uucp|
|00005020| 2f 4c 43 4b 2f 4c 43 4b | 2e 2e 74 74 79 68 30 22 |/LCK/LCK|..ttyh0"|
|00005030| 0a 23 64 65 66 69 6e 65 | 20 4b 45 52 4d 49 54 20 |.#define| KERMIT |
|00005040| 22 2f 75 73 72 2f 75 6e | 63 77 2f 6b 65 72 6d 69 |"/usr/un|cw/kermi|
|00005050| 74 22 20 2f 2a 77 68 65 | 72 65 20 79 6f 75 20 6b |t" /*whe|re you k|
|00005060| 65 65 70 20 79 6f 75 72 | 20 6b 65 72 6d 69 74 2a |eep your| kermit*|
|00005070| 2f 0a 23 69 66 64 65 66 | 20 42 53 44 0a 23 64 65 |/.#ifdef| BSD.#de|
|00005080| 66 69 6e 65 20 44 45 56 | 49 43 45 20 22 2f 64 65 |fine DEV|ICE "/de|
|00005090| 76 2f 74 74 79 68 30 22 | 0a 23 65 6c 73 65 0a 23 |v/ttyh0"|.#else.#|
|000050a0| 64 65 66 69 6e 65 20 44 | 45 56 49 43 45 20 22 2f |define D|EVICE "/|
|000050b0| 64 65 76 2f 63 6f 6e 74 | 74 79 22 0a 23 65 6e 64 |dev/cont|ty".#end|
|000050c0| 69 66 0a 23 64 65 66 69 | 6e 65 20 53 50 45 45 44 |if.#defi|ne SPEED|
|000050d0| 20 22 32 34 30 30 22 0a | 23 64 65 66 69 6e 65 20 | "2400".|#define |
|000050e0| 53 31 20 22 61 74 65 31 | 71 30 78 34 76 31 5c 30 |S1 "ate1|q0x4v1\0|
|000050f0| 31 35 22 0a 23 64 65 66 | 69 6e 65 20 53 32 20 22 |15".#def|ine S2 "|
|00005100| 61 74 7a 5c 30 31 35 22 | 0a 23 64 65 66 69 6e 65 |atz\015"|.#define|
|00005110| 20 53 31 4c 20 73 74 72 | 6c 65 6e 28 53 31 29 0a | S1L str|len(S1).|
|00005120| 23 64 65 66 69 6e 65 20 | 53 32 4c 20 73 74 72 6c |#define |S2L strl|
|00005130| 65 6e 28 53 32 29 0a 23 | 69 66 64 65 66 20 42 53 |en(S2).#|ifdef BS|
|00005140| 44 0a 23 64 65 66 69 6e | 65 20 53 45 44 31 20 22 |D.#defin|e SED1 "|
|00005150| 73 65 64 20 27 2f 74 74 | 79 68 30 2f 73 2f 5e 31 |sed '/tt|yh0/s/^1|
|00005160| 2f 30 2f 27 20 2f 65 74 | 63 2f 74 74 79 73 20 3e |/0/' /et|c/ttys >|
|00005170| 2f 74 6d 70 2f 64 69 61 | 6c 6f 75 74 2e 74 6d 70 |/tmp/dia|lout.tmp|
|00005180| 22 0a 23 64 65 66 69 6e | 65 20 53 45 44 32 20 22 |".#defin|e SED2 "|
|00005190| 73 65 64 20 27 2f 74 74 | 79 68 30 2f 73 2f 5e 30 |sed '/tt|yh0/s/^0|
|000051a0| 2f 31 2f 27 20 2f 65 74 | 63 2f 74 74 79 73 20 3e |/1/' /et|c/ttys >|
|000051b0| 2f 74 6d 70 2f 64 69 61 | 6c 6f 75 74 2e 74 6d 70 |/tmp/dia|lout.tmp|
|000051c0| 22 0a 23 65 6c 73 65 0a | 2f 2a 53 79 73 56 2a 2f |".#else.|/*SysV*/|
|000051d0| 0a 23 64 65 66 69 6e 65 | 20 53 45 44 31 20 22 73 |.#define| SED1 "s|
|000051e0| 65 64 20 27 2f 5e 63 74 | 3a 2f 73 2f 72 65 73 70 |ed '/^ct|:/s/resp|
|000051f0| 61 77 6e 2f 6f 66 66 2f | 27 20 2f 65 74 63 2f 69 |awn/off/|' /etc/i|
|00005200| 6e 69 74 74 61 62 3e 2f | 74 6d 70 2f 64 69 61 6c |nittab>/|tmp/dial|
|00005210| 6f 75 74 2e 74 6d 70 22 | 0a 23 64 65 66 69 6e 65 |out.tmp"|.#define|
|00005220| 20 53 45 44 32 20 22 73 | 65 64 20 27 2f 5e 63 74 | SED2 "s|ed '/^ct|
|00005230| 3a 2f 73 2f 6f 66 66 2f | 72 65 73 70 61 77 6e 2f |:/s/off/|respawn/|
|00005240| 27 20 2f 65 74 63 2f 69 | 6e 69 74 74 61 62 3e 2f |' /etc/i|nittab>/|
|00005250| 74 6d 70 2f 64 69 61 6c | 6f 75 74 2e 74 6d 70 22 |tmp/dial|out.tmp"|
|00005260| 0a 23 65 6e 64 69 66 0a | 23 64 65 66 69 6e 65 20 |.#endif.|#define |
|00005270| 43 41 54 20 22 63 61 74 | 20 2f 75 73 72 2f 6c 69 |CAT "cat| /usr/li|
|00005280| 62 2f 75 75 63 70 2f 61 | 76 61 74 65 78 2e 64 61 |b/uucp/a|vatex.da|
|00005290| 74 61 22 0a 23 64 65 66 | 69 6e 65 20 41 55 54 48 |ta".#def|ine AUTH|
|000052a0| 46 49 4c 45 20 22 2f 65 | 74 63 2f 64 69 61 6c 6f |FILE "/e|tc/dialo|
|000052b0| 75 74 2e 61 75 74 68 22 | 0a 23 69 66 64 65 66 20 |ut.auth"|.#ifdef |
|000052c0| 42 53 44 0a 23 64 65 66 | 69 6e 65 20 44 49 46 46 |BSD.#def|ine DIFF|
|000052d0| 31 09 22 64 69 66 66 20 | 2f 65 74 63 2f 74 74 79 |1."diff |/etc/tty|
|000052e0| 73 20 2f 74 6d 70 2f 64 | 69 61 6c 6f 75 74 2e 74 |s /tmp/d|ialout.t|
|000052f0| 6d 70 22 0a 23 64 65 66 | 69 6e 65 20 43 50 31 09 |mp".#def|ine CP1.|
|00005300| 09 22 63 70 20 2f 65 74 | 63 2f 74 74 79 73 20 2f |."cp /et|c/ttys /|
|00005310| 65 74 63 2f 74 74 79 73 | 2e 62 61 6b 2e 74 73 74 |etc/ttys|.bak.tst|
|00005320| 22 0a 23 64 65 66 69 6e | 65 20 43 50 32 09 09 22 |".#defin|e CP2.."|
|00005330| 63 70 20 2f 74 6d 70 2f | 64 69 61 6c 6f 75 74 2e |cp /tmp/|dialout.|
|00005340| 74 6d 70 20 2f 65 74 63 | 2f 74 74 79 73 22 0a 23 |tmp /etc|/ttys".#|
|00005350| 64 65 66 69 6e 65 20 44 | 49 46 46 32 09 22 64 69 |define D|IFF2."di|
|00005360| 66 66 20 2f 65 74 63 2f | 74 74 79 73 20 2f 74 6d |ff /etc/|ttys /tm|
|00005370| 70 2f 64 69 61 6c 6f 75 | 74 2e 74 6d 70 22 0a 23 |p/dialou|t.tmp".#|
|00005380| 64 65 66 69 6e 65 20 43 | 50 33 09 09 22 63 70 20 |define C|P3.."cp |
|00005390| 2f 74 6d 70 2f 64 69 61 | 6c 6f 75 74 2e 74 6d 70 |/tmp/dia|lout.tmp|
|000053a0| 20 2f 65 74 63 2f 74 74 | 79 73 22 0a 23 65 6c 73 | /etc/tt|ys".#els|
|000053b0| 65 0a 23 64 65 66 69 6e | 65 20 44 49 46 46 31 09 |e.#defin|e DIFF1.|
|000053c0| 22 64 69 66 66 20 2f 65 | 74 63 2f 69 6e 69 74 74 |"diff /e|tc/initt|
|000053d0| 61 62 20 2f 74 6d 70 2f | 64 69 61 6c 6f 75 74 2e |ab /tmp/|dialout.|
|000053e0| 74 6d 70 22 0a 23 64 65 | 66 69 6e 65 20 43 50 31 |tmp".#de|fine CP1|
|000053f0| 09 09 22 63 70 20 2f 65 | 74 63 2f 69 6e 69 74 74 |.."cp /e|tc/initt|
|00005400| 61 62 20 2f 65 74 63 2f | 74 74 79 73 2e 62 61 6b |ab /etc/|ttys.bak|
|00005410| 2e 74 73 74 22 0a 23 64 | 65 66 69 6e 65 20 43 50 |.tst".#d|efine CP|
|00005420| 32 09 09 22 63 70 20 2f | 74 6d 70 2f 64 69 61 6c |2.."cp /|tmp/dial|
|00005430| 6f 75 74 2e 74 6d 70 20 | 2f 65 74 63 2f 69 6e 69 |out.tmp |/etc/ini|
|00005440| 74 74 61 62 22 0a 23 64 | 65 66 69 6e 65 20 44 49 |ttab".#d|efine DI|
|00005450| 46 46 32 09 22 64 69 66 | 66 20 2f 65 74 63 2f 69 |FF2."dif|f /etc/i|
|00005460| 6e 69 74 74 61 62 20 2f | 74 6d 70 2f 64 69 61 6c |nittab /|tmp/dial|
|00005470| 6f 75 74 2e 74 6d 70 22 | 0a 23 64 65 66 69 6e 65 |out.tmp"|.#define|
|00005480| 20 43 50 33 09 09 22 63 | 70 20 2f 74 6d 70 2f 64 | CP3.."c|p /tmp/d|
|00005490| 69 61 6c 6f 75 74 2e 74 | 6d 70 20 2f 65 74 63 2f |ialout.t|mp /etc/|
|000054a0| 69 6e 69 74 74 61 62 22 | 0a 23 65 6e 64 69 66 0a |inittab"|.#endif.|
|000054b0| 72 65 6e 74 20 69 73 20 | 73 74 69 6c 6c 20 72 6f |rent is |still ro|
|000054c0| 6f 74 29 20 2a 2f 0a 09 | 09 28 76 6f 69 64 29 77 |ot) */..|.(void)w|
|000054d0| 61 69 74 28 30 29 3b 0a | 09 09 66 64 3d 6f 70 65 |ait(0);.|..fd=ope|
|000054e0| 6e 28 44 45 56 49 43 45 | 2c 31 29 3b 0a 09 09 69 |n(DEVICE|,1);...i|
|000054f0| 66 28 66 64 3c 30 29 7b | 0a 09 09 09 65 72 72 6f |f(fd<0){|....erro|
|00005500| 72 28 31 31 29 3b 0a 09 | 09 7d 0a 09 09 69 3d 77 |r(11);..|.}...i=w|
|00005510| 72 69 74 65 28 66 64 2c | 53 32 2c 53 32 4c 29 3b |rite(fd,|S2,S2L);|
|00005520| 0a 09 09 69 66 28 69 3c | 30 29 65 72 72 6f 72 28 |...if(i<|0)error(|
|00005530| 31 32 29 3b 0a 09 09 66 | 70 72 69 6e 74 66 28 73 |12);...f|printf(s|
|00005540| 74 64 65 72 72 2c 22 77 | 61 69 74 2e 2e 2e 5c 6e |tderr,"w|ait...\n|
|00005550| 22 29 3b 0a 09 09 73 6c | 65 65 70 28 32 29 3b 0a |");...sl|eep(2);.|
|00005560| 2f 2a 09 69 3d 66 63 68 | 6f 77 6e 28 66 64 2c 30 |/*.i=fch|own(fd,0|
|00005570| 2c 30 29 3b 2a 2f 0a 09 | 69 3d 63 68 6f 77 6e 28 |,0);*/..|i=chown(|
|00005580| 44 45 56 49 43 45 2c 30 | 2c 30 29 3b 0a 09 69 66 |DEVICE,0|,0);..if|
|00005590| 28 69 3c 30 29 65 72 72 | 6f 72 28 36 29 3b 0a 2f |(i<0)err|or(6);./|
|000055a0| 2a 09 69 3d 66 63 68 6d | 6f 64 28 66 64 2c 30 36 |*.i=fchm|od(fd,06|
|000055b0| 36 36 29 3b 2a 2f 0a 09 | 69 3d 63 68 6d 6f 64 28 |66);*/..|i=chmod(|
|000055c0| 44 45 56 49 43 45 2c 30 | 36 36 36 29 3b 0a 09 69 |DEVICE,0|666);..i|
|000055d0| 66 28 69 3c 30 29 65 72 | 72 6f 72 28 37 29 3b 0a |f(i<0)er|ror(7);.|
|000055e0| 09 09 69 3d 63 6c 6f 73 | 65 28 66 64 29 3b 0a 09 |..i=clos|e(fd);..|
|000055f0| 09 69 66 28 69 3c 30 29 | 65 72 72 6f 72 28 31 33 |.if(i<0)|error(13|
|00005600| 64 69 61 6c 6f 75 74 2f | 63 6f 75 72 69 65 72 2e |dialout/|courier.|
|00005610| 68 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |h.......|........|
|00005620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005660| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 31 35 |.... 6|44 . 15|
|00005670| 32 34 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |24 . |13 . |
|00005680| 20 20 20 32 32 36 30 20 | 20 34 36 30 31 35 32 34 | 2260 | 4601524|
|00005690| 30 36 37 20 20 20 37 34 | 31 33 00 20 00 00 00 00 |067 74|13. ....|
|000056a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005800| 23 64 65 66 69 6e 65 20 | 4c 43 4b 46 49 4c 45 20 |#define |LCKFILE |
|00005810| 22 2f 75 73 72 2f 73 70 | 6f 6f 6c 2f 75 75 63 70 |"/usr/sp|ool/uucp|
|00005820| 2f 4c 43 4b 2f 4c 43 4b | 2e 2e 74 74 79 68 30 22 |/LCK/LCK|..ttyh0"|
|00005830| 0a 23 64 65 66 69 6e 65 | 20 4b 45 52 4d 49 54 20 |.#define| KERMIT |
|00005840| 22 2f 75 73 72 2f 75 6e | 63 77 2f 6b 65 72 6d 69 |"/usr/un|cw/kermi|
|00005850| 74 22 20 2f 2a 77 68 65 | 72 65 20 79 6f 75 20 6b |t" /*whe|re you k|
|00005860| 65 65 70 20 79 6f 75 72 | 20 6b 65 72 6d 69 74 2a |eep your| kermit*|
|00005870| 2f 0a 23 69 66 64 65 66 | 20 42 53 44 0a 23 64 65 |/.#ifdef| BSD.#de|
|00005880| 66 69 6e 65 20 44 45 56 | 49 43 45 20 22 2f 64 65 |fine DEV|ICE "/de|
|00005890| 76 2f 74 74 79 68 38 22 | 0a 23 65 6c 73 65 0a 23 |v/ttyh8"|.#else.#|
|000058a0| 64 65 66 69 6e 65 20 44 | 45 56 49 43 45 20 22 2f |define D|EVICE "/|
|000058b0| 64 65 76 2f 63 6f 6e 74 | 74 79 22 0a 23 65 6e 64 |dev/cont|ty".#end|
|000058c0| 69 66 0a 23 64 65 66 69 | 6e 65 20 53 50 45 45 44 |if.#defi|ne SPEED|
|000058d0| 20 22 31 32 30 30 22 0a | 23 64 65 66 69 6e 65 20 | "1200".|#define |
|000058e0| 53 31 20 22 61 74 65 31 | 71 30 78 34 76 31 5c 30 |S1 "ate1|q0x4v1\0|
|000058f0| 31 35 22 0a 23 64 65 66 | 69 6e 65 20 53 32 20 22 |15".#def|ine S2 "|
|00005900| 61 74 7a 5c 30 31 35 22 | 0a 23 64 65 66 69 6e 65 |atz\015"|.#define|
|00005910| 20 53 31 4c 20 73 74 72 | 6c 65 6e 28 53 31 29 0a | S1L str|len(S1).|
|00005920| 23 64 65 66 69 6e 65 20 | 53 32 4c 20 73 74 72 6c |#define |S2L strl|
|00005930| 65 6e 28 53 32 29 0a 23 | 69 66 64 65 66 20 42 53 |en(S2).#|ifdef BS|
|00005940| 44 0a 23 64 65 66 69 6e | 65 20 53 45 44 31 20 22 |D.#defin|e SED1 "|
|00005950| 73 65 64 20 27 2f 74 74 | 79 68 30 2f 73 2f 5e 31 |sed '/tt|yh0/s/^1|
|00005960| 2f 30 2f 27 20 2f 65 74 | 63 2f 74 74 79 73 20 3e |/0/' /et|c/ttys >|
|00005970| 2f 74 6d 70 2f 64 69 61 | 6c 6f 75 74 2e 74 6d 70 |/tmp/dia|lout.tmp|
|00005980| 22 0a 23 64 65 66 69 6e | 65 20 53 45 44 32 20 22 |".#defin|e SED2 "|
|00005990| 73 65 64 20 27 2f 74 74 | 79 68 30 2f 73 2f 5e 30 |sed '/tt|yh0/s/^0|
|000059a0| 2f 31 2f 27 20 2f 65 74 | 63 2f 74 74 79 73 20 3e |/1/' /et|c/ttys >|
|000059b0| 2f 74 6d 70 2f 64 69 61 | 6c 6f 75 74 2e 74 6d 70 |/tmp/dia|lout.tmp|
|000059c0| 22 0a 23 65 6c 73 65 0a | 2f 2a 53 79 73 56 2a 2f |".#else.|/*SysV*/|
|000059d0| 0a 23 64 65 66 69 6e 65 | 20 53 45 44 31 20 22 73 |.#define| SED1 "s|
|000059e0| 65 64 20 27 2f 5e 63 74 | 3a 2f 73 2f 72 65 73 70 |ed '/^ct|:/s/resp|
|000059f0| 61 77 6e 2f 6f 66 66 2f | 27 20 2f 65 74 63 2f 69 |awn/off/|' /etc/i|
|00005a00| 6e 69 74 74 61 62 3e 2f | 74 6d 70 2f 64 69 61 6c |nittab>/|tmp/dial|
|00005a10| 6f 75 74 2e 74 6d 70 22 | 0a 23 64 65 66 69 6e 65 |out.tmp"|.#define|
|00005a20| 20 53 45 44 32 20 22 73 | 65 64 20 27 2f 5e 63 74 | SED2 "s|ed '/^ct|
|00005a30| 3a 2f 73 2f 6f 66 66 2f | 72 65 73 70 61 77 6e 2f |:/s/off/|respawn/|
|00005a40| 27 20 2f 65 74 63 2f 69 | 6e 69 74 74 61 62 3e 2f |' /etc/i|nittab>/|
|00005a50| 74 6d 70 2f 64 69 61 6c | 6f 75 74 2e 74 6d 70 22 |tmp/dial|out.tmp"|
|00005a60| 0a 23 65 6e 64 69 66 0a | 23 64 65 66 69 6e 65 20 |.#endif.|#define |
|00005a70| 43 41 54 20 22 63 61 74 | 20 2f 75 73 72 2f 6c 69 |CAT "cat| /usr/li|
|00005a80| 62 2f 75 75 63 70 2f 61 | 76 61 74 65 78 2e 64 61 |b/uucp/a|vatex.da|
|00005a90| 74 61 22 0a 23 64 65 66 | 69 6e 65 20 41 55 54 48 |ta".#def|ine AUTH|
|00005aa0| 46 49 4c 45 20 22 2f 65 | 74 63 2f 64 69 61 6c 6f |FILE "/e|tc/dialo|
|00005ab0| 75 74 2e 61 75 74 68 22 | 0a 23 69 66 64 65 66 20 |ut.auth"|.#ifdef |
|00005ac0| 42 53 44 0a 23 64 65 66 | 69 6e 65 20 44 49 46 46 |BSD.#def|ine DIFF|
|00005ad0| 31 09 22 64 69 66 66 20 | 2f 65 74 63 2f 74 74 79 |1."diff |/etc/tty|
|00005ae0| 73 20 2f 74 6d 70 2f 64 | 69 61 6c 6f 75 74 2e 74 |s /tmp/d|ialout.t|
|00005af0| 6d 70 22 0a 23 64 65 66 | 69 6e 65 20 43 50 31 09 |mp".#def|ine CP1.|
|00005b00| 09 22 63 70 20 2f 65 74 | 63 2f 74 74 79 73 20 2f |."cp /et|c/ttys /|
|00005b10| 65 74 63 2f 74 74 79 73 | 2e 62 61 6b 2e 74 73 74 |etc/ttys|.bak.tst|
|00005b20| 22 0a 23 64 65 66 69 6e | 65 20 43 50 32 09 09 22 |".#defin|e CP2.."|
|00005b30| 63 70 20 2f 74 6d 70 2f | 64 69 61 6c 6f 75 74 2e |cp /tmp/|dialout.|
|00005b40| 74 6d 70 20 2f 65 74 63 | 2f 74 74 79 73 22 0a 23 |tmp /etc|/ttys".#|
|00005b50| 64 65 66 69 6e 65 20 44 | 49 46 46 32 09 22 64 69 |define D|IFF2."di|
|00005b60| 66 66 20 2f 65 74 63 2f | 74 74 79 73 20 2f 74 6d |ff /etc/|ttys /tm|
|00005b70| 70 2f 64 69 61 6c 6f 75 | 74 2e 74 6d 70 22 0a 23 |p/dialou|t.tmp".#|
|00005b80| 64 65 66 69 6e 65 20 43 | 50 33 09 09 22 63 70 20 |define C|P3.."cp |
|00005b90| 2f 74 6d 70 2f 64 69 61 | 6c 6f 75 74 2e 74 6d 70 |/tmp/dia|lout.tmp|
|00005ba0| 20 2f 65 74 63 2f 74 74 | 79 73 22 0a 23 65 6c 73 | /etc/tt|ys".#els|
|00005bb0| 65 0a 23 64 65 66 69 6e | 65 20 44 49 46 46 31 09 |e.#defin|e DIFF1.|
|00005bc0| 22 64 69 66 66 20 2f 65 | 74 63 2f 69 6e 69 74 74 |"diff /e|tc/initt|
|00005bd0| 61 62 20 2f 74 6d 70 2f | 64 69 61 6c 6f 75 74 2e |ab /tmp/|dialout.|
|00005be0| 74 6d 70 22 0a 23 64 65 | 66 69 6e 65 20 43 50 31 |tmp".#de|fine CP1|
|00005bf0| 09 09 22 63 70 20 2f 65 | 74 63 2f 69 6e 69 74 74 |.."cp /e|tc/initt|
|00005c00| 61 62 20 2f 65 74 63 2f | 74 74 79 73 2e 62 61 6b |ab /etc/|ttys.bak|
|00005c10| 2e 74 73 74 22 0a 23 64 | 65 66 69 6e 65 20 43 50 |.tst".#d|efine CP|
|00005c20| 32 09 09 22 63 70 20 2f | 74 6d 70 2f 64 69 61 6c |2.."cp /|tmp/dial|
|00005c30| 6f 75 74 2e 74 6d 70 20 | 2f 65 74 63 2f 69 6e 69 |out.tmp |/etc/ini|
|00005c40| 74 74 61 62 22 0a 23 64 | 65 66 69 6e 65 20 44 49 |ttab".#d|efine DI|
|00005c50| 46 46 32 09 22 64 69 66 | 66 20 2f 65 74 63 2f 69 |FF2."dif|f /etc/i|
|00005c60| 6e 69 74 74 61 62 20 2f | 74 6d 70 2f 64 69 61 6c |nittab /|tmp/dial|
|00005c70| 6f 75 74 2e 74 6d 70 22 | 0a 23 64 65 66 69 6e 65 |out.tmp"|.#define|
|00005c80| 20 43 50 33 09 09 22 63 | 70 20 2f 74 6d 70 2f 64 | CP3.."c|p /tmp/d|
|00005c90| 69 61 6c 6f 75 74 2e 74 | 6d 70 20 2f 65 74 63 2f |ialout.t|mp /etc/|
|00005ca0| 69 6e 69 74 74 61 62 22 | 0a 23 65 6e 64 69 66 0a |inittab"|.#endif.|
|00005cb0| 72 65 6e 74 20 69 73 20 | 73 74 69 6c 6c 20 72 6f |rent is |still ro|
|00005cc0| 6f 74 29 20 2a 2f 0a 09 | 09 28 76 6f 69 64 29 77 |ot) */..|.(void)w|
|00005cd0| 61 69 74 28 30 29 3b 0a | 09 09 66 64 3d 6f 70 65 |ait(0);.|..fd=ope|
|00005ce0| 6e 28 44 45 56 49 43 45 | 2c 31 29 3b 0a 09 09 69 |n(DEVICE|,1);...i|
|00005cf0| 66 28 66 64 3c 30 29 7b | 0a 09 09 09 65 72 72 6f |f(fd<0){|....erro|
|00005d00| 72 28 31 31 29 3b 0a 09 | 09 7d 0a 09 09 69 3d 77 |r(11);..|.}...i=w|
|00005d10| 72 69 74 65 28 66 64 2c | 53 32 2c 53 32 4c 29 3b |rite(fd,|S2,S2L);|
|00005d20| 0a 09 09 69 66 28 69 3c | 30 29 65 72 72 6f 72 28 |...if(i<|0)error(|
|00005d30| 31 32 29 3b 0a 09 09 66 | 70 72 69 6e 74 66 28 73 |12);...f|printf(s|
|00005d40| 74 64 65 72 72 2c 22 77 | 61 69 74 2e 2e 2e 5c 6e |tderr,"w|ait...\n|
|00005d50| 22 29 3b 0a 09 09 73 6c | 65 65 70 28 32 29 3b 0a |");...sl|eep(2);.|
|00005d60| 2f 2a 09 69 3d 66 63 68 | 6f 77 6e 28 66 64 2c 30 |/*.i=fch|own(fd,0|
|00005d70| 2c 30 29 3b 2a 2f 0a 09 | 69 3d 63 68 6f 77 6e 28 |,0);*/..|i=chown(|
|00005d80| 44 45 56 49 43 45 2c 30 | 2c 30 29 3b 0a 09 69 66 |DEVICE,0|,0);..if|
|00005d90| 28 69 3c 30 29 65 72 72 | 6f 72 28 36 29 3b 0a 2f |(i<0)err|or(6);./|
|00005da0| 2a 09 69 3d 66 63 68 6d | 6f 64 28 66 64 2c 30 36 |*.i=fchm|od(fd,06|
|00005db0| 36 36 29 3b 2a 2f 0a 09 | 69 3d 63 68 6d 6f 64 28 |66);*/..|i=chmod(|
|00005dc0| 44 45 56 49 43 45 2c 30 | 36 36 36 29 3b 0a 09 69 |DEVICE,0|666);..i|
|00005dd0| 66 28 69 3c 30 29 65 72 | 72 6f 72 28 37 29 3b 0a |f(i<0)er|ror(7);.|
|00005de0| 09 09 69 3d 63 6c 6f 73 | 65 28 66 64 29 3b 0a 09 |..i=clos|e(fd);..|
|00005df0| 09 69 66 28 69 3c 30 29 | 65 72 72 6f 72 28 31 33 |.if(i<0)|error(13|
|00005e00| 64 69 61 6c 6f 75 74 2f | 61 76 61 74 65 78 2e 64 |dialout/|avatex.d|
|00005e10| 61 74 61 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |ata.....|........|
|00005e20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005e60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 31 35 |.... 6|44 . 15|
|00005e70| 32 34 20 00 20 20 20 20 | 31 33 20 00 20 20 20 20 |24 . |13 . |
|00005e80| 20 20 20 20 20 20 37 20 | 20 34 36 30 31 35 32 34 | 7 | 4601524|
|00005e90| 30 36 37 20 20 20 37 36 | 33 32 00 20 00 00 00 00 |067 76|32. ....|
|00005ea0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+