home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume22 / pty / part01 next >
SHell self-extracting ARchive  |  1990-10-09  |  54.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: SHell self-extracting ARchive (archive/shar).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert SHell self-extracting ARchive (archive/shar) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news or mail, ASCII text, with overstriking default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/329 Shell Archive Format default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/rfc822 default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 53 75 62 6a 65 63 74 3a | 20 20 76 32 33 69 30 33 |Subject:| v23i03|
|00000010| 31 3a 20 20 52 75 6e 20 | 61 20 70 72 6f 67 72 61 |1: Run |a progra|
|00000020| 6d 20 75 6e 64 65 72 20 | 61 20 70 74 79 20 73 65 |m under |a pty se|
|00000030| 73 73 69 6f 6e 2c 20 50 | 61 72 74 30 31 2f 30 36 |ssion, P|art01/06|
|00000040| 0a 4e 65 77 73 67 72 6f | 75 70 73 3a 20 63 6f 6d |.Newsgro|ups: com|
|00000050| 70 2e 73 6f 75 72 63 65 | 73 2e 75 6e 69 78 0a 41 |p.source|s.unix.A|
|00000060| 70 70 72 6f 76 65 64 3a | 20 72 73 61 6c 7a 40 75 |pproved:| rsalz@u|
|00000070| 75 6e 65 74 2e 55 55 2e | 4e 45 54 0a 58 2d 43 68 |unet.UU.|NET.X-Ch|
|00000080| 65 63 6b 73 75 6d 2d 53 | 6e 65 66 72 75 3a 20 63 |ecksum-S|nefru: c|
|00000090| 38 62 66 63 65 34 61 20 | 33 61 39 66 32 39 36 37 |8bfce4a |3a9f2967|
|000000a0| 20 37 66 36 38 32 65 61 | 66 20 63 34 63 38 33 36 | 7f682ea|f c4c836|
|000000b0| 62 61 0a 0a 53 75 62 6d | 69 74 74 65 64 2d 62 79 |ba..Subm|itted-by|
|000000c0| 3a 20 44 61 6e 20 42 65 | 72 6e 73 74 65 69 6e 20 |: Dan Be|rnstein |
|000000d0| 3c 62 72 6e 73 74 6e 64 | 40 6b 72 61 6d 64 65 6e |<brnstnd|@kramden|
|000000e0| 2e 61 63 66 2e 6e 79 75 | 2e 65 64 75 3e 0a 50 6f |.acf.nyu|.edu>.Po|
|000000f0| 73 74 69 6e 67 2d 6e 75 | 6d 62 65 72 3a 20 56 6f |sting-nu|mber: Vo|
|00000100| 6c 75 6d 65 20 32 33 2c | 20 49 73 73 75 65 20 33 |lume 23,| Issue 3|
|00000110| 31 0a 41 72 63 68 69 76 | 65 2d 6e 61 6d 65 3a 20 |1.Archiv|e-name: |
|00000120| 70 74 79 2f 70 61 72 74 | 30 31 0a 0a 5b 20 20 54 |pty/part|01..[ T|
|00000130| 68 69 73 20 69 73 20 74 | 68 65 20 47 69 6e 73 75 |his is t|he Ginsu|
|00000140| 20 6b 6e 69 66 65 20 28 | 69 74 20 73 6c 69 63 65 | knife (|it slice|
|00000150| 73 2c 20 69 74 20 64 69 | 63 65 73 2c 20 69 74 20 |s, it di|ces, it |
|00000160| 6e 65 76 65 72 20 72 75 | 73 74 73 29 20 74 68 61 |never ru|sts) tha|
|00000170| 74 0a 20 20 20 44 61 6e | 20 68 61 73 20 62 65 65 |t. Dan| has bee|
|00000180| 6e 20 74 61 6c 6b 69 6e | 67 20 61 62 6f 75 74 20 |n talkin|g about |
|00000190| 69 6e 20 63 6f 6d 70 2e | 75 6e 69 78 2e 77 69 78 |in comp.|unix.wix|
|000001a0| 61 72 64 73 2f 69 6e 74 | 65 72 6e 61 6c 73 20 66 |ards/int|ernals f|
|000001b0| 6f 72 20 73 6f 6d 65 0a | 20 20 20 74 69 6d 65 20 |or some.| time |
|000001c0| 6e 6f 77 2e 20 20 49 74 | 20 69 73 20 61 20 6d 69 |now. It| is a mi|
|000001d0| 6e 64 2d 62 6c 6f 77 65 | 72 2e 20 20 2d 2d 72 24 |nd-blowe|r. --r$|
|000001e0| 20 20 5d 0a 0a 70 74 79 | 20 2d 20 72 75 6e 20 61 | ]..pty| - run a|
|000001f0| 20 70 72 6f 67 72 61 6d | 20 75 6e 64 65 72 20 61 | program| under a|
|00000200| 20 70 74 79 20 73 65 73 | 73 69 6f 6e 0a 0a 70 74 | pty ses|sion..pt|
|00000210| 79 20 69 73 20 6d 65 61 | 6e 74 20 61 73 20 74 68 |y is mea|nt as th|
|00000220| 65 20 73 6f 6c 65 20 69 | 6e 74 65 72 66 61 63 65 |e sole i|nterface|
|00000230| 20 62 65 74 77 65 65 6e | 20 70 73 65 75 64 6f 2d | between| pseudo-|
|00000240| 74 65 72 6d 69 6e 61 6c | 73 20 61 6e 64 20 74 68 |terminal|s and th|
|00000250| 65 20 72 65 73 74 0a 6f | 66 20 74 68 65 20 73 79 |e rest.o|f the sy|
|00000260| 73 74 65 6d 2e 20 53 6f | 6d 65 20 66 65 61 74 75 |stem. So|me featu|
|00000270| 72 65 73 3a 20 69 6d 70 | 72 6f 76 65 64 20 73 65 |res: imp|roved se|
|00000280| 63 75 72 69 74 79 3b 20 | 6f 76 65 72 20 66 69 66 |curity; |over fif|
|00000290| 74 79 20 6f 70 74 69 6f | 6e 73 20 66 6f 72 0a 70 |ty optio|ns for.p|
|000002a0| 72 65 63 69 73 65 20 63 | 6f 6e 74 72 6f 6c 3b 20 |recise c|ontrol; |
|000002b0| 73 65 73 73 69 6f 6e 20 | 64 69 73 63 6f 6e 6e 65 |session |disconne|
|000002c0| 63 74 69 6e 67 20 61 6e | 64 20 72 65 63 6f 6e 6e |cting an|d reconn|
|000002d0| 65 63 74 69 6e 67 3b 20 | 66 75 6c 6c 20 65 66 66 |ecting; |full eff|
|000002e0| 69 63 69 65 6e 63 79 0a | 61 66 74 65 72 20 61 20 |iciency.|after a |
|000002f0| 72 65 63 6f 6e 6e 65 63 | 74 3b 20 61 20 67 72 61 |reconnec|t; a gra|
|00000300| 64 75 61 6c 20 75 70 67 | 72 61 64 65 20 70 61 74 |dual upg|rade pat|
|00000310| 68 20 73 6f 20 74 68 61 | 74 20 61 6c 6c 20 79 6f |h so tha|t all yo|
|00000320| 75 72 20 6f 6c 64 20 75 | 74 69 6c 69 74 69 65 73 |ur old u|tilities|
|00000330| 0a 77 69 6c 6c 20 77 6f | 72 6b 20 77 69 74 68 6f |.will wo|rk witho|
|00000340| 75 74 20 63 68 61 6e 67 | 65 3b 20 73 75 70 70 6f |ut chang|e; suppo|
|00000350| 72 74 20 66 6f 72 20 61 | 70 70 6c 69 63 61 74 69 |rt for a|pplicati|
|00000360| 6f 6e 73 20 74 68 61 74 | 20 6e 65 65 64 20 66 75 |ons that| need fu|
|00000370| 6c 6c 20 70 74 79 0a 63 | 6f 6e 74 72 6f 6c 3b 20 |ll pty.c|ontrol; |
|00000380| 61 6e 64 20 61 20 72 65 | 61 73 6f 6e 61 62 6c 79 |and a re|asonably|
|00000390| 20 73 6d 61 72 74 20 69 | 6e 73 74 61 6c 6c 20 73 | smart i|nstall s|
|000003a0| 63 72 69 70 74 2e 20 41 | 6c 73 6f 20 69 6e 20 74 |cript. A|lso in t|
|000003b0| 68 69 73 20 70 61 63 6b | 61 67 65 20 61 72 65 0a |his pack|age are.|
|000003c0| 74 77 65 6e 74 79 2d 6f | 6e 65 20 75 74 69 6c 69 |twenty-o|ne utili|
|000003d0| 74 69 65 73 2c 20 69 6e | 63 6c 75 64 69 6e 67 20 |ties, in|cluding |
|000003e0| 61 20 60 60 73 63 72 69 | 70 74 27 27 20 74 68 61 |a ``scri|pt'' tha|
|000003f0| 74 20 61 63 74 75 61 6c | 6c 79 20 77 6f 72 6b 73 |t actual|ly works|
|00000400| 2e 0a 0a 70 74 79 20 68 | 61 73 20 62 65 65 6e 20 |...pty h|as been |
|00000410| 74 68 6f 72 6f 75 67 68 | 6c 79 20 74 65 73 74 65 |thorough|ly teste|
|00000420| 64 20 6f 6e 20 73 65 76 | 65 72 61 6c 20 42 53 44 |d on sev|eral BSD|
|00000430| 20 34 2e 33 2d 62 61 73 | 65 64 20 6d 61 63 68 69 | 4.3-bas|ed machi|
|00000440| 6e 65 73 20 61 6e 64 0a | 74 65 73 74 65 64 20 6f |nes and.|tested o|
|00000450| 6e 20 73 65 76 65 72 61 | 6c 20 42 53 44 20 34 2e |n severa|l BSD 4.|
|00000460| 32 2d 62 61 73 65 64 20 | 6d 61 63 68 69 6e 65 73 |2-based |machines|
|00000470| 2e 20 49 74 20 73 68 6f | 75 6c 64 20 62 65 20 65 |. It sho|uld be e|
|00000480| 61 73 79 20 74 6f 20 70 | 6f 72 74 20 74 6f 0a 61 |asy to p|ort to.a|
|00000490| 6e 79 20 73 79 73 74 65 | 6d 20 73 75 70 70 6f 72 |ny syste|m suppor|
|000004a0| 74 69 6e 67 20 70 73 65 | 75 64 6f 2d 74 65 72 6d |ting pse|udo-term|
|000004b0| 69 6e 61 6c 73 20 61 6e | 64 20 55 4e 49 58 2d 64 |inals an|d UNIX-d|
|000004c0| 6f 6d 61 69 6e 20 73 6f | 63 6b 65 74 73 2e 20 49 |omain so|ckets. I|
|000004d0| 66 20 79 6f 75 0a 6b 6e | 6f 77 20 61 6e 79 20 61 |f you.kn|ow any a|
|000004e0| 70 70 6c 69 63 61 74 69 | 6f 6e 20 6f 66 20 70 74 |pplicati|on of pt|
|000004f0| 79 73 20 74 68 61 74 20 | 74 68 69 73 20 70 72 6f |ys that |this pro|
|00000500| 67 72 61 6d 20 63 61 6e | 27 74 20 68 61 6e 64 6c |gram can|'t handl|
|00000510| 65 2c 20 6f 72 20 69 66 | 20 79 6f 75 0a 68 61 76 |e, or if| you.hav|
|00000520| 65 20 61 20 64 69 66 66 | 65 72 65 6e 74 20 6d 61 |e a diff|erent ma|
|00000530| 63 68 69 6e 65 20 74 68 | 61 74 20 77 6f 75 6c 64 |chine th|at would|
|00000540| 20 62 65 6e 65 66 69 74 | 20 66 72 6f 6d 20 74 68 | benefit| from th|
|00000550| 65 20 6d 6f 64 75 6c 61 | 72 69 74 79 20 61 6e 64 |e modula|rity and|
|00000560| 0a 70 6f 77 65 72 20 6f | 66 20 61 20 70 74 79 20 |.power o|f a pty |
|00000570| 70 6f 72 74 2c 20 70 6c | 65 61 73 65 20 6c 65 74 |port, pl|ease let|
|00000580| 20 74 68 65 20 61 75 74 | 68 6f 72 20 6b 6e 6f 77 | the aut|hor know|
|00000590| 2e 0a 0a 0a 70 74 79 20 | 64 6f 65 73 20 6e 6f 74 |....pty |does not|
|000005a0| 20 77 6f 72 6b 20 75 6e | 64 65 72 20 50 4f 53 49 | work un|der POSI|
|000005b0| 58 2d 62 61 73 65 64 20 | 6d 61 63 68 69 6e 65 73 |X-based |machines|
|000005c0| 20 28 73 75 63 68 20 61 | 73 20 53 75 6e 4f 53 20 | (such a|s SunOS |
|000005d0| 34 2e 31 29 2c 20 65 76 | 65 6e 0a 77 68 65 6e 20 |4.1), ev|en.when |
|000005e0| 69 74 20 77 6f 72 6b 73 | 20 70 65 72 66 65 63 74 |it works| perfect|
|000005f0| 6c 79 20 75 6e 64 65 72 | 20 74 68 65 69 72 20 70 |ly under| their p|
|00000600| 72 65 64 65 63 65 73 73 | 6f 72 73 20 28 73 75 63 |redecess|ors (suc|
|00000610| 68 20 61 73 20 53 75 6e | 4f 53 20 34 2e 30 2e 33 |h as Sun|OS 4.0.3|
|00000620| 29 2e 0a 54 68 65 20 6d | 61 69 6e 20 70 72 6f 62 |)..The m|ain prob|
|00000630| 6c 65 6d 20 69 73 20 50 | 4f 53 49 58 27 73 20 69 |lem is P|OSIX's i|
|00000640| 6e 74 72 6f 64 75 63 74 | 69 6f 6e 20 6f 66 20 73 |ntroduct|ion of s|
|00000650| 65 73 73 69 6f 6e 73 20 | 61 6e 64 20 74 68 65 20 |essions |and the |
|00000660| 77 61 79 20 69 74 0a 6b | 69 6c 6c 73 20 61 20 6e |way it.k|ills a n|
|00000670| 6f 6e 2d 6f 72 70 68 61 | 6e 65 64 20 70 72 6f 63 |on-orpha|ned proc|
|00000680| 65 73 73 20 69 6e 20 61 | 6e 20 6f 72 70 68 61 6e |ess in a|n orphan|
|00000690| 65 64 20 70 72 6f 63 65 | 73 73 20 67 72 6f 75 70 |ed proce|ss group|
|000006a0| 2e 20 54 68 65 72 65 20 | 61 72 65 0a 6f 74 68 65 |. There |are.othe|
|000006b0| 72 20 69 6e 63 6f 6d 70 | 61 74 69 62 69 6c 69 74 |r incomp|atibilit|
|000006c0| 69 65 73 2c 20 6d 6f 73 | 74 6c 79 20 6d 69 6e 6f |ies, mos|tly mino|
|000006d0| 72 20 62 75 74 20 73 6f | 6d 65 20 28 6c 69 6b 65 |r but so|me (like|
|000006e0| 20 61 63 63 6f 75 6e 74 | 69 6e 67 20 61 6e 64 0a | account|ing and.|
|000006f0| 73 65 74 75 69 64 20 70 | 72 6f 62 6c 65 6d 73 29 |setuid p|roblems)|
|00000700| 20 69 6d 70 6f 72 74 61 | 6e 74 2e 20 54 68 65 20 | importa|nt. The |
|00000710| 61 75 74 68 6f 72 20 69 | 73 20 77 6f 72 6b 69 6e |author i|s workin|
|00000720| 67 20 6f 6e 20 61 20 50 | 4f 53 49 58 20 70 6f 72 |g on a P|OSIX por|
|00000730| 74 2e 0a 0a 23 21 20 2f | 62 69 6e 2f 73 68 0a 23 |t...#! /|bin/sh.#|
|00000740| 20 54 68 69 73 20 69 73 | 20 61 20 73 68 65 6c 6c | This is| a shell|
|00000750| 20 61 72 63 68 69 76 65 | 2e 20 20 52 65 6d 6f 76 | archive|. Remov|
|00000760| 65 20 61 6e 79 74 68 69 | 6e 67 20 62 65 66 6f 72 |e anythi|ng befor|
|00000770| 65 20 74 68 69 73 20 6c | 69 6e 65 2c 20 74 68 65 |e this l|ine, the|
|00000780| 6e 20 66 65 65 64 20 69 | 74 0a 23 20 69 6e 74 6f |n feed i|t.# into|
|00000790| 20 61 20 73 68 65 6c 6c | 20 76 69 61 20 22 73 68 | a shell| via "sh|
|000007a0| 20 66 69 6c 65 22 20 6f | 72 20 73 69 6d 69 6c 61 | file" o|r simila|
|000007b0| 72 2e 20 20 54 6f 20 6f | 76 65 72 77 72 69 74 65 |r. To o|verwrite|
|000007c0| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 73 2c | existin|g files,|
|000007d0| 0a 23 20 74 79 70 65 20 | 22 73 68 20 66 69 6c 65 |.# type |"sh file|
|000007e0| 20 2d 63 22 2e 0a 23 20 | 54 68 65 20 74 6f 6f 6c | -c"..# |The tool|
|000007f0| 20 74 68 61 74 20 67 65 | 6e 65 72 61 74 65 64 20 | that ge|nerated |
|00000800| 74 68 69 73 20 61 70 70 | 65 61 72 65 64 20 69 6e |this app|eared in|
|00000810| 20 74 68 65 20 63 6f 6d | 70 2e 73 6f 75 72 63 65 | the com|p.source|
|00000820| 73 2e 75 6e 69 78 20 6e | 65 77 73 67 72 6f 75 70 |s.unix n|ewsgroup|
|00000830| 3b 0a 23 20 73 65 6e 64 | 20 6d 61 69 6c 20 74 6f |;.# send| mail to|
|00000840| 20 63 6f 6d 70 2d 73 6f | 75 72 63 65 73 2d 75 6e | comp-so|urces-un|
|00000850| 69 78 40 75 75 6e 65 74 | 2e 75 75 2e 6e 65 74 20 |ix@uunet|.uu.net |
|00000860| 69 66 20 79 6f 75 20 77 | 61 6e 74 20 74 68 61 74 |if you w|ant that|
|00000870| 20 74 6f 6f 6c 2e 0a 23 | 20 43 6f 6e 74 65 6e 74 | tool..#| Content|
|00000880| 73 3a 20 20 50 41 43 4b | 4e 4f 54 45 53 20 52 45 |s: PACK|NOTES RE|
|00000890| 41 44 4d 45 20 4d 41 4e | 49 46 45 53 54 20 46 49 |ADME MAN|IFEST FI|
|000008a0| 4c 45 53 20 49 4e 53 54 | 41 4c 4c 20 70 61 74 63 |LES INST|ALL patc|
|000008b0| 68 0a 23 20 20 20 70 61 | 74 63 68 2f 74 65 6c 6e |h.# pa|tch/teln|
|000008c0| 65 74 64 2e 39 30 2e 30 | 36 2e 32 38 2e 70 61 74 |etd.90.0|6.28.pat|
|000008d0| 63 68 20 75 74 69 6c 0a | 23 20 57 72 61 70 70 65 |ch util.|# Wrappe|
|000008e0| 64 20 62 79 20 72 73 61 | 6c 7a 40 6c 69 74 63 68 |d by rsa|lz@litch|
|000008f0| 69 2e 62 62 6e 2e 63 6f | 6d 20 6f 6e 20 57 65 64 |i.bbn.co|m on Wed|
|00000900| 20 4f 63 74 20 31 30 20 | 31 30 3a 31 31 3a 33 35 | Oct 10 |10:11:35|
|00000910| 20 31 39 39 30 0a 50 41 | 54 48 3d 2f 62 69 6e 3a | 1990.PA|TH=/bin:|
|00000920| 2f 75 73 72 2f 62 69 6e | 3a 2f 75 73 72 2f 75 63 |/usr/bin|:/usr/uc|
|00000930| 62 20 3b 20 65 78 70 6f | 72 74 20 50 41 54 48 0a |b ; expo|rt PATH.|
|00000940| 65 63 68 6f 20 49 66 20 | 74 68 69 73 20 61 72 63 |echo If |this arc|
|00000950| 68 69 76 65 20 69 73 20 | 63 6f 6d 70 6c 65 74 65 |hive is |complete|
|00000960| 2c 20 79 6f 75 20 77 69 | 6c 6c 20 73 65 65 20 74 |, you wi|ll see t|
|00000970| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 6d 65 73 |he follo|wing mes|
|00000980| 73 61 67 65 3a 0a 65 63 | 68 6f 20 27 20 20 20 20 |sage:.ec|ho ' |
|00000990| 20 20 20 20 20 20 22 73 | 68 61 72 3a 20 45 6e 64 | "s|har: End|
|000009a0| 20 6f 66 20 61 72 63 68 | 69 76 65 20 31 20 28 6f | of arch|ive 1 (o|
|000009b0| 66 20 36 29 2e 22 27 0a | 69 66 20 74 65 73 74 20 |f 6)."'.|if test |
|000009c0| 2d 66 20 27 50 41 43 4b | 4e 4f 54 45 53 27 20 2d |-f 'PACK|NOTES' -|
|000009d0| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|000009e0| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|000009f0| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|00000a00| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|00000a10| 66 69 6c 65 20 5c 22 27 | 50 41 43 4b 4e 4f 54 45 |file \"'|PACKNOTE|
|00000a20| 53 27 5c 22 0a 65 6c 73 | 65 0a 20 20 65 63 68 6f |S'\".els|e. echo|
|00000a30| 20 73 68 61 72 3a 20 45 | 78 74 72 61 63 74 69 6e | shar: E|xtractin|
|00000a40| 67 20 5c 22 27 50 41 43 | 4b 4e 4f 54 45 53 27 5c |g \"'PAC|KNOTES'\|
|00000a50| 22 20 5c 28 31 37 35 36 | 20 63 68 61 72 61 63 74 |" \(1756| charact|
|00000a60| 65 72 73 5c 29 0a 20 20 | 73 65 64 20 22 73 2f 5e |ers\). |sed "s/^|
|00000a70| 58 2f 2f 22 20 3e 27 50 | 41 43 4b 4e 4f 54 45 53 |X//" >'P|ACKNOTES|
|00000a80| 27 20 3c 3c 27 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |' <<'END|_OF_FILE|
|00000a90| 27 0a 58 42 61 64 20 63 | 68 61 72 61 63 74 65 72 |'.XBad c|haracter|
|00000aa0| 20 30 31 30 20 69 6e 20 | 6c 69 6e 65 20 33 38 34 | 010 in |line 384|
|00000ab0| 20 6f 66 20 22 49 4e 53 | 54 41 4c 4c 22 2e 0a 58 | of "INS|TALL"..X|
|00000ac0| 42 61 64 20 63 68 61 72 | 61 63 74 65 72 20 30 31 |Bad char|acter 01|
|00000ad0| 30 20 69 6e 20 6c 69 6e | 65 20 33 38 35 20 6f 66 |0 in lin|e 385 of|
|00000ae0| 20 22 49 4e 53 54 41 4c | 4c 22 2e 0a 58 42 61 64 | "INSTAL|L"..XBad|
|00000af0| 20 63 68 61 72 61 63 74 | 65 72 20 30 31 30 20 69 | charact|er 010 i|
|00000b00| 6e 20 6c 69 6e 65 20 34 | 30 31 20 6f 66 20 22 49 |n line 4|01 of "I|
|00000b10| 4e 53 54 41 4c 4c 22 2e | 0a 58 42 61 64 20 63 68 |NSTALL".|.XBad ch|
|00000b20| 61 72 61 63 74 65 72 20 | 30 31 30 20 69 6e 20 6c |aracter |010 in l|
|00000b30| 69 6e 65 20 34 30 32 20 | 6f 66 20 22 49 4e 53 54 |ine 402 |of "INST|
|00000b40| 41 4c 4c 22 2e 0a 58 42 | 61 64 20 63 68 61 72 61 |ALL"..XB|ad chara|
|00000b50| 63 74 65 72 20 30 31 30 | 20 69 6e 20 6c 69 6e 65 |cter 010| in line|
|00000b60| 20 34 32 38 20 6f 66 20 | 22 49 4e 53 54 41 4c 4c | 428 of |"INSTALL|
|00000b70| 22 2e 0a 58 42 61 64 20 | 63 68 61 72 61 63 74 65 |"..XBad |characte|
|00000b80| 72 20 30 31 30 20 69 6e | 20 6c 69 6e 65 20 34 32 |r 010 in| line 42|
|00000b90| 39 20 6f 66 20 22 49 4e | 53 54 41 4c 4c 22 2e 0a |9 of "IN|STALL"..|
|00000ba0| 58 42 61 64 20 63 68 61 | 72 61 63 74 65 72 20 30 |XBad cha|racter 0|
|00000bb0| 31 30 20 69 6e 20 6c 69 | 6e 65 20 34 34 33 20 6f |10 in li|ne 443 o|
|00000bc0| 66 20 22 49 4e 53 54 41 | 4c 4c 22 2e 0a 58 42 61 |f "INSTA|LL"..XBa|
|00000bd0| 64 20 63 68 61 72 61 63 | 74 65 72 20 30 31 30 20 |d charac|ter 010 |
|00000be0| 69 6e 20 6c 69 6e 65 20 | 34 34 34 20 6f 66 20 22 |in line |444 of "|
|00000bf0| 49 4e 53 54 41 4c 4c 22 | 2e 0a 58 42 61 64 20 63 |INSTALL"|..XBad c|
|00000c00| 68 61 72 61 63 74 65 72 | 20 30 31 30 20 69 6e 20 |haracter| 010 in |
|00000c10| 6c 69 6e 65 20 34 36 37 | 20 6f 66 20 22 49 4e 53 |line 467| of "INS|
|00000c20| 54 41 4c 4c 22 2e 0a 58 | 42 61 64 20 63 68 61 72 |TALL"..X|Bad char|
|00000c30| 61 63 74 65 72 20 30 31 | 30 20 69 6e 20 6c 69 6e |acter 01|0 in lin|
|00000c40| 65 20 34 36 38 20 6f 66 | 20 22 49 4e 53 54 41 4c |e 468 of| "INSTAL|
|00000c50| 4c 22 2e 0a 58 46 6f 75 | 6e 64 20 31 30 20 63 6f |L"..XFou|nd 10 co|
|00000c60| 6e 74 72 6f 6c 20 63 68 | 61 72 73 20 69 6e 20 22 |ntrol ch|ars in "|
|00000c70| 49 4e 53 54 41 4c 4c 22 | 0a 58 0a 58 42 61 64 20 |INSTALL"|.X.XBad |
|00000c80| 63 68 61 72 61 63 74 65 | 72 20 30 37 20 69 6e 20 |characte|r 07 in |
|00000c90| 6c 69 6e 65 20 39 38 20 | 6f 66 20 22 75 74 69 6c |line 98 |of "util|
|00000ca0| 2f 77 72 69 74 65 2e 63 | 22 2e 0a 58 46 6f 75 6e |/write.c|"..XFoun|
|00000cb0| 64 20 31 20 63 6f 6e 74 | 72 6f 6c 20 63 68 61 72 |d 1 cont|rol char|
|00000cc0| 20 69 6e 20 22 75 74 69 | 6c 2f 77 72 69 74 65 2e | in "uti|l/write.|
|00000cd0| 63 22 0a 58 0a 58 42 61 | 64 20 63 68 61 72 61 63 |c".X.XBa|d charac|
|00000ce0| 74 65 72 20 30 37 20 69 | 6e 20 6c 69 6e 65 20 33 |ter 07 i|n line 3|
|00000cf0| 30 20 6f 66 20 22 75 74 | 69 6c 2f 6c 6f 63 6b 2e |0 of "ut|il/lock.|
|00000d00| 63 22 2e 0a 58 42 61 64 | 20 63 68 61 72 61 63 74 |c"..XBad| charact|
|00000d10| 65 72 20 30 37 20 69 6e | 20 6c 69 6e 65 20 33 30 |er 07 in| line 30|
|00000d20| 20 6f 66 20 22 75 74 69 | 6c 2f 6c 6f 63 6b 2e 63 | of "uti|l/lock.c|
|00000d30| 22 2e 0a 58 42 61 64 20 | 63 68 61 72 61 63 74 65 |"..XBad |characte|
|00000d40| 72 20 30 37 20 69 6e 20 | 6c 69 6e 65 20 33 30 20 |r 07 in |line 30 |
|00000d50| 6f 66 20 22 75 74 69 6c | 2f 6c 6f 63 6b 2e 63 22 |of "util|/lock.c"|
|00000d60| 2e 0a 58 42 61 64 20 63 | 68 61 72 61 63 74 65 72 |..XBad c|haracter|
|00000d70| 20 30 37 20 69 6e 20 6c | 69 6e 65 20 33 30 20 6f | 07 in l|ine 30 o|
|00000d80| 66 20 22 75 74 69 6c 2f | 6c 6f 63 6b 2e 63 22 2e |f "util/|lock.c".|
|00000d90| 0a 58 42 61 64 20 63 68 | 61 72 61 63 74 65 72 20 |.XBad ch|aracter |
|00000da0| 30 37 20 69 6e 20 6c 69 | 6e 65 20 33 30 20 6f 66 |07 in li|ne 30 of|
|00000db0| 20 22 75 74 69 6c 2f 6c | 6f 63 6b 2e 63 22 2e 0a | "util/l|ock.c"..|
|00000dc0| 58 42 61 64 20 63 68 61 | 72 61 63 74 65 72 20 30 |XBad cha|racter 0|
|00000dd0| 37 20 69 6e 20 6c 69 6e | 65 20 33 30 20 6f 66 20 |7 in lin|e 30 of |
|00000de0| 22 75 74 69 6c 2f 6c 6f | 63 6b 2e 63 22 2e 0a 58 |"util/lo|ck.c"..X|
|00000df0| 42 61 64 20 63 68 61 72 | 61 63 74 65 72 20 30 37 |Bad char|acter 07|
|00000e00| 20 69 6e 20 6c 69 6e 65 | 20 33 30 20 6f 66 20 22 | in line| 30 of "|
|00000e10| 75 74 69 6c 2f 6c 6f 63 | 6b 2e 63 22 2e 0a 58 42 |util/loc|k.c"..XB|
|00000e20| 61 64 20 63 68 61 72 61 | 63 74 65 72 20 30 37 20 |ad chara|cter 07 |
|00000e30| 69 6e 20 6c 69 6e 65 20 | 33 30 20 6f 66 20 22 75 |in line |30 of "u|
|00000e40| 74 69 6c 2f 6c 6f 63 6b | 2e 63 22 2e 0a 58 42 61 |til/lock|.c"..XBa|
|00000e50| 64 20 63 68 61 72 61 63 | 74 65 72 20 30 37 20 69 |d charac|ter 07 i|
|00000e60| 6e 20 6c 69 6e 65 20 33 | 30 20 6f 66 20 22 75 74 |n line 3|0 of "ut|
|00000e70| 69 6c 2f 6c 6f 63 6b 2e | 63 22 2e 0a 58 42 61 64 |il/lock.|c"..XBad|
|00000e80| 20 63 68 61 72 61 63 74 | 65 72 20 30 37 20 69 6e | charact|er 07 in|
|00000e90| 20 6c 69 6e 65 20 33 30 | 20 6f 66 20 22 75 74 69 | line 30| of "uti|
|00000ea0| 6c 2f 6c 6f 63 6b 2e 63 | 22 2e 0a 58 42 61 64 20 |l/lock.c|"..XBad |
|00000eb0| 63 68 61 72 61 63 74 65 | 72 20 30 37 20 69 6e 20 |characte|r 07 in |
|00000ec0| 6c 69 6e 65 20 33 30 20 | 6f 66 20 22 75 74 69 6c |line 30 |of "util|
|00000ed0| 2f 6c 6f 63 6b 2e 63 22 | 2e 0a 58 42 61 64 20 63 |/lock.c"|..XBad c|
|00000ee0| 68 61 72 61 63 74 65 72 | 20 30 37 20 69 6e 20 6c |haracter| 07 in l|
|00000ef0| 69 6e 65 20 33 30 20 6f | 66 20 22 75 74 69 6c 2f |ine 30 o|f "util/|
|00000f00| 6c 6f 63 6b 2e 63 22 2e | 0a 58 42 61 64 20 63 68 |lock.c".|.XBad ch|
|00000f10| 61 72 61 63 74 65 72 20 | 30 37 20 69 6e 20 6c 69 |aracter |07 in li|
|00000f20| 6e 65 20 33 30 20 6f 66 | 20 22 75 74 69 6c 2f 6c |ne 30 of| "util/l|
|00000f30| 6f 63 6b 2e 63 22 2e 0a | 58 42 61 64 20 63 68 61 |ock.c"..|XBad cha|
|00000f40| 72 61 63 74 65 72 20 30 | 37 20 69 6e 20 6c 69 6e |racter 0|7 in lin|
|00000f50| 65 20 33 30 20 6f 66 20 | 22 75 74 69 6c 2f 6c 6f |e 30 of |"util/lo|
|00000f60| 63 6b 2e 63 22 2e 0a 58 | 42 61 64 20 63 68 61 72 |ck.c"..X|Bad char|
|00000f70| 61 63 74 65 72 20 30 37 | 20 69 6e 20 6c 69 6e 65 |acter 07| in line|
|00000f80| 20 33 30 20 6f 66 20 22 | 75 74 69 6c 2f 6c 6f 63 | 30 of "|util/loc|
|00000f90| 6b 2e 63 22 2e 0a 58 42 | 61 64 20 63 68 61 72 61 |k.c"..XB|ad chara|
|00000fa0| 63 74 65 72 20 30 37 20 | 69 6e 20 6c 69 6e 65 20 |cter 07 |in line |
|00000fb0| 33 30 20 6f 66 20 22 75 | 74 69 6c 2f 6c 6f 63 6b |30 of "u|til/lock|
|00000fc0| 2e 63 22 2e 0a 58 42 61 | 64 20 63 68 61 72 61 63 |.c"..XBa|d charac|
|00000fd0| 74 65 72 20 30 37 20 69 | 6e 20 6c 69 6e 65 20 33 |ter 07 i|n line 3|
|00000fe0| 30 20 6f 66 20 22 75 74 | 69 6c 2f 6c 6f 63 6b 2e |0 of "ut|il/lock.|
|00000ff0| 63 22 2e 0a 58 42 61 64 | 20 63 68 61 72 61 63 74 |c"..XBad| charact|
|00001000| 65 72 20 30 37 20 69 6e | 20 6c 69 6e 65 20 33 34 |er 07 in| line 34|
|00001010| 20 6f 66 20 22 75 74 69 | 6c 2f 6c 6f 63 6b 2e 63 | of "uti|l/lock.c|
|00001020| 22 2e 0a 58 42 61 64 20 | 63 68 61 72 61 63 74 65 |"..XBad |characte|
|00001030| 72 20 30 37 20 69 6e 20 | 6c 69 6e 65 20 33 36 20 |r 07 in |line 36 |
|00001040| 6f 66 20 22 75 74 69 6c | 2f 6c 6f 63 6b 2e 63 22 |of "util|/lock.c"|
|00001050| 2e 0a 58 42 61 64 20 63 | 68 61 72 61 63 74 65 72 |..XBad c|haracter|
|00001060| 20 30 37 20 69 6e 20 6c | 69 6e 65 20 33 38 20 6f | 07 in l|ine 38 o|
|00001070| 66 20 22 75 74 69 6c 2f | 6c 6f 63 6b 2e 63 22 2e |f "util/|lock.c".|
|00001080| 0a 58 46 6f 75 6e 64 20 | 32 30 20 63 6f 6e 74 72 |.XFound |20 contr|
|00001090| 6f 6c 20 63 68 61 72 73 | 20 69 6e 20 22 75 74 69 |ol chars| in "uti|
|000010a0| 6c 2f 6c 6f 63 6b 2e 63 | 22 0a 58 0a 58 42 61 64 |l/lock.c|".X.XBad|
|000010b0| 20 63 68 61 72 61 63 74 | 65 72 20 30 37 20 69 6e | charact|er 07 in|
|000010c0| 20 6c 69 6e 65 20 35 33 | 20 6f 66 20 22 75 74 69 | line 53| of "uti|
|000010d0| 6c 2f 77 61 6c 6c 2e 63 | 22 2e 0a 58 46 6f 75 6e |l/wall.c|"..XFoun|
|000010e0| 64 20 31 20 63 6f 6e 74 | 72 6f 6c 20 63 68 61 72 |d 1 cont|rol char|
|000010f0| 20 69 6e 20 22 75 74 69 | 6c 2f 77 61 6c 6c 2e 63 | in "uti|l/wall.c|
|00001100| 22 0a 58 0a 58 42 61 64 | 20 63 68 61 72 61 63 74 |".X.XBad| charact|
|00001110| 65 72 20 30 31 30 20 69 | 6e 20 6c 69 6e 65 20 32 |er 010 i|n line 2|
|00001120| 20 6f 66 20 22 75 74 69 | 6c 2f 73 63 72 69 70 74 | of "uti|l/script|
|00001130| 2e 74 69 64 79 22 2e 0a | 58 42 61 64 20 63 68 61 |.tidy"..|XBad cha|
|00001140| 72 61 63 74 65 72 20 30 | 31 30 20 69 6e 20 6c 69 |racter 0|10 in li|
|00001150| 6e 65 20 32 20 6f 66 20 | 22 75 74 69 6c 2f 73 63 |ne 2 of |"util/sc|
|00001160| 72 69 70 74 2e 74 69 64 | 79 22 2e 0a 58 46 6f 75 |ript.tid|y"..XFou|
|00001170| 6e 64 20 32 20 63 6f 6e | 74 72 6f 6c 20 63 68 61 |nd 2 con|trol cha|
|00001180| 72 73 20 69 6e 20 22 75 | 74 69 6c 2f 73 63 72 69 |rs in "u|til/scri|
|00001190| 70 74 2e 74 69 64 79 22 | 0a 45 4e 44 5f 4f 46 5f |pt.tidy"|.END_OF_|
|000011a0| 46 49 4c 45 0a 20 20 69 | 66 20 74 65 73 74 20 31 |FILE. i|f test 1|
|000011b0| 37 35 36 20 2d 6e 65 20 | 60 77 63 20 2d 63 20 3c |756 -ne |`wc -c <|
|000011c0| 27 50 41 43 4b 4e 4f 54 | 45 53 27 60 3b 20 74 68 |'PACKNOT|ES'`; th|
|000011d0| 65 6e 0a 20 20 20 20 65 | 63 68 6f 20 73 68 61 72 |en. e|cho shar|
|000011e0| 3a 20 5c 22 27 50 41 43 | 4b 4e 4f 54 45 53 27 5c |: \"'PAC|KNOTES'\|
|000011f0| 22 20 75 6e 70 61 63 6b | 65 64 20 77 69 74 68 20 |" unpack|ed with |
|00001200| 77 72 6f 6e 67 20 73 69 | 7a 65 21 0a 20 20 66 69 |wrong si|ze!. fi|
|00001210| 0a 20 20 23 20 65 6e 64 | 20 6f 66 20 27 50 41 43 |. # end| of 'PAC|
|00001220| 4b 4e 4f 54 45 53 27 0a | 66 69 0a 69 66 20 74 65 |KNOTES'.|fi.if te|
|00001230| 73 74 20 2d 66 20 27 52 | 45 41 44 4d 45 27 20 2d |st -f 'R|EADME' -|
|00001240| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|00001250| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|00001260| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|00001270| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|00001280| 66 69 6c 65 20 5c 22 27 | 52 45 41 44 4d 45 27 5c |file \"'|README'\|
|00001290| 22 0a 65 6c 73 65 0a 20 | 20 65 63 68 6f 20 73 68 |".else. | echo sh|
|000012a0| 61 72 3a 20 45 78 74 72 | 61 63 74 69 6e 67 20 5c |ar: Extr|acting \|
|000012b0| 22 27 52 45 41 44 4d 45 | 27 5c 22 20 5c 28 33 39 |"'README|'\" \(39|
|000012c0| 32 32 20 63 68 61 72 61 | 63 74 65 72 73 5c 29 0a |22 chara|cters\).|
|000012d0| 20 20 73 65 64 20 22 73 | 2f 5e 58 2f 2f 22 20 3e | sed "s|/^X//" >|
|000012e0| 27 52 45 41 44 4d 45 27 | 20 3c 3c 27 45 4e 44 5f |'README'| <<'END_|
|000012f0| 4f 46 5f 46 49 4c 45 27 | 0a 58 70 74 79 20 2d 20 |OF_FILE'|.Xpty - |
|00001300| 72 75 6e 20 61 20 70 72 | 6f 67 72 61 6d 20 75 6e |run a pr|ogram un|
|00001310| 64 65 72 20 61 20 70 74 | 79 20 73 65 73 73 69 6f |der a pt|y sessio|
|00001320| 6e 0a 58 0a 58 70 74 79 | 20 69 73 20 6d 65 61 6e |n.X.Xpty| is mean|
|00001330| 74 20 61 73 20 74 68 65 | 20 73 6f 6c 65 20 69 6e |t as the| sole in|
|00001340| 74 65 72 66 61 63 65 20 | 62 65 74 77 65 65 6e 20 |terface |between |
|00001350| 70 73 65 75 64 6f 2d 74 | 65 72 6d 69 6e 61 6c 73 |pseudo-t|erminals|
|00001360| 20 61 6e 64 20 74 68 65 | 20 72 65 73 74 0a 58 6f | and the| rest.Xo|
|00001370| 66 20 74 68 65 20 73 79 | 73 74 65 6d 2e 20 53 6f |f the sy|stem. So|
|00001380| 6d 65 20 66 65 61 74 75 | 72 65 73 3a 20 69 6d 70 |me featu|res: imp|
|00001390| 72 6f 76 65 64 20 73 65 | 63 75 72 69 74 79 3b 20 |roved se|curity; |
|000013a0| 6f 76 65 72 20 66 69 66 | 74 79 20 6f 70 74 69 6f |over fif|ty optio|
|000013b0| 6e 73 20 66 6f 72 0a 58 | 70 72 65 63 69 73 65 20 |ns for.X|precise |
|000013c0| 63 6f 6e 74 72 6f 6c 3b | 20 73 65 73 73 69 6f 6e |control;| session|
|000013d0| 20 64 69 73 63 6f 6e 6e | 65 63 74 69 6e 67 20 61 | disconn|ecting a|
|000013e0| 6e 64 20 72 65 63 6f 6e | 6e 65 63 74 69 6e 67 3b |nd recon|necting;|
|000013f0| 20 66 75 6c 6c 20 65 66 | 66 69 63 69 65 6e 63 79 | full ef|ficiency|
|00001400| 0a 58 61 66 74 65 72 20 | 61 20 72 65 63 6f 6e 6e |.Xafter |a reconn|
|00001410| 65 63 74 3b 20 61 20 67 | 72 61 64 75 61 6c 20 75 |ect; a g|radual u|
|00001420| 70 67 72 61 64 65 20 70 | 61 74 68 20 73 6f 20 74 |pgrade p|ath so t|
|00001430| 68 61 74 20 61 6c 6c 20 | 79 6f 75 72 20 6f 6c 64 |hat all |your old|
|00001440| 20 75 74 69 6c 69 74 69 | 65 73 0a 58 77 69 6c 6c | utiliti|es.Xwill|
|00001450| 20 77 6f 72 6b 20 77 69 | 74 68 6f 75 74 20 63 68 | work wi|thout ch|
|00001460| 61 6e 67 65 3b 20 73 75 | 70 70 6f 72 74 20 66 6f |ange; su|pport fo|
|00001470| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 73 20 74 |r applic|ations t|
|00001480| 68 61 74 20 6e 65 65 64 | 20 66 75 6c 6c 20 70 74 |hat need| full pt|
|00001490| 79 0a 58 63 6f 6e 74 72 | 6f 6c 3b 20 61 6e 64 20 |y.Xcontr|ol; and |
|000014a0| 61 20 72 65 61 73 6f 6e | 61 62 6c 79 20 73 6d 61 |a reason|ably sma|
|000014b0| 72 74 20 69 6e 73 74 61 | 6c 6c 20 73 63 72 69 70 |rt insta|ll scrip|
|000014c0| 74 2e 20 41 6c 73 6f 20 | 69 6e 20 74 68 69 73 20 |t. Also |in this |
|000014d0| 70 61 63 6b 61 67 65 20 | 61 72 65 0a 58 74 77 65 |package |are.Xtwe|
|000014e0| 6e 74 79 2d 6f 6e 65 20 | 75 74 69 6c 69 74 69 65 |nty-one |utilitie|
|000014f0| 73 2c 20 69 6e 63 6c 75 | 64 69 6e 67 20 61 20 60 |s, inclu|ding a `|
|00001500| 60 73 63 72 69 70 74 27 | 27 20 74 68 61 74 20 61 |`script'|' that a|
|00001510| 63 74 75 61 6c 6c 79 20 | 77 6f 72 6b 73 2e 0a 58 |ctually |works..X|
|00001520| 0a 58 70 74 79 20 68 61 | 73 20 62 65 65 6e 20 74 |.Xpty ha|s been t|
|00001530| 68 6f 72 6f 75 67 68 6c | 79 20 74 65 73 74 65 64 |horoughl|y tested|
|00001540| 20 6f 6e 20 73 65 76 65 | 72 61 6c 20 42 53 44 20 | on seve|ral BSD |
|00001550| 34 2e 33 2d 62 61 73 65 | 64 20 6d 61 63 68 69 6e |4.3-base|d machin|
|00001560| 65 73 20 61 6e 64 0a 58 | 74 65 73 74 65 64 20 6f |es and.X|tested o|
|00001570| 6e 20 73 65 76 65 72 61 | 6c 20 42 53 44 20 34 2e |n severa|l BSD 4.|
|00001580| 32 2d 62 61 73 65 64 20 | 6d 61 63 68 69 6e 65 73 |2-based |machines|
|00001590| 2e 20 49 74 20 73 68 6f | 75 6c 64 20 62 65 20 65 |. It sho|uld be e|
|000015a0| 61 73 79 20 74 6f 20 70 | 6f 72 74 20 74 6f 0a 58 |asy to p|ort to.X|
|000015b0| 61 6e 79 20 73 79 73 74 | 65 6d 20 73 75 70 70 6f |any syst|em suppo|
|000015c0| 72 74 69 6e 67 20 70 73 | 65 75 64 6f 2d 74 65 72 |rting ps|eudo-ter|
|000015d0| 6d 69 6e 61 6c 73 20 61 | 6e 64 20 55 4e 49 58 2d |minals a|nd UNIX-|
|000015e0| 64 6f 6d 61 69 6e 20 73 | 6f 63 6b 65 74 73 2e 20 |domain s|ockets. |
|000015f0| 49 66 20 79 6f 75 0a 58 | 6b 6e 6f 77 20 61 6e 79 |If you.X|know any|
|00001600| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 6f 66 20 | applica|tion of |
|00001610| 70 74 79 73 20 74 68 61 | 74 20 74 68 69 73 20 70 |ptys tha|t this p|
|00001620| 72 6f 67 72 61 6d 20 63 | 61 6e 27 74 20 68 61 6e |rogram c|an't han|
|00001630| 64 6c 65 2c 20 6f 72 20 | 69 66 20 79 6f 75 0a 58 |dle, or |if you.X|
|00001640| 68 61 76 65 20 61 20 64 | 69 66 66 65 72 65 6e 74 |have a d|ifferent|
|00001650| 20 6d 61 63 68 69 6e 65 | 20 74 68 61 74 20 77 6f | machine| that wo|
|00001660| 75 6c 64 20 62 65 6e 65 | 66 69 74 20 66 72 6f 6d |uld bene|fit from|
|00001670| 20 74 68 65 20 6d 6f 64 | 75 6c 61 72 69 74 79 20 | the mod|ularity |
|00001680| 61 6e 64 0a 58 70 6f 77 | 65 72 20 6f 66 20 61 20 |and.Xpow|er of a |
|00001690| 70 74 79 20 70 6f 72 74 | 2c 20 70 6c 65 61 73 65 |pty port|, please|
|000016a0| 20 6c 65 74 20 74 68 65 | 20 61 75 74 68 6f 72 20 | let the| author |
|000016b0| 6b 6e 6f 77 2e 0a 58 0a | 58 0a 58 70 74 79 20 64 |know..X.|X.Xpty d|
|000016c0| 6f 65 73 20 6e 6f 74 20 | 77 6f 72 6b 20 75 6e 64 |oes not |work und|
|000016d0| 65 72 20 50 4f 53 49 58 | 2d 62 61 73 65 64 20 6d |er POSIX|-based m|
|000016e0| 61 63 68 69 6e 65 73 20 | 28 73 75 63 68 20 61 73 |achines |(such as|
|000016f0| 20 53 75 6e 4f 53 20 34 | 2e 31 29 2c 20 65 76 65 | SunOS 4|.1), eve|
|00001700| 6e 0a 58 77 68 65 6e 20 | 69 74 20 77 6f 72 6b 73 |n.Xwhen |it works|
|00001710| 20 70 65 72 66 65 63 74 | 6c 79 20 75 6e 64 65 72 | perfect|ly under|
|00001720| 20 74 68 65 69 72 20 70 | 72 65 64 65 63 65 73 73 | their p|redecess|
|00001730| 6f 72 73 20 28 73 75 63 | 68 20 61 73 20 53 75 6e |ors (suc|h as Sun|
|00001740| 4f 53 20 34 2e 30 2e 33 | 29 2e 0a 58 54 68 65 20 |OS 4.0.3|)..XThe |
|00001750| 6d 61 69 6e 20 70 72 6f | 62 6c 65 6d 20 69 73 20 |main pro|blem is |
|00001760| 50 4f 53 49 58 27 73 20 | 69 6e 74 72 6f 64 75 63 |POSIX's |introduc|
|00001770| 74 69 6f 6e 20 6f 66 20 | 73 65 73 73 69 6f 6e 73 |tion of |sessions|
|00001780| 20 61 6e 64 20 74 68 65 | 20 77 61 79 20 69 74 0a | and the| way it.|
|00001790| 58 6b 69 6c 6c 73 20 61 | 20 6e 6f 6e 2d 6f 72 70 |Xkills a| non-orp|
|000017a0| 68 61 6e 65 64 20 70 72 | 6f 63 65 73 73 20 69 6e |haned pr|ocess in|
|000017b0| 20 61 6e 20 6f 72 70 68 | 61 6e 65 64 20 70 72 6f | an orph|aned pro|
|000017c0| 63 65 73 73 20 67 72 6f | 75 70 2e 20 54 68 65 72 |cess gro|up. Ther|
|000017d0| 65 20 61 72 65 0a 58 6f | 74 68 65 72 20 69 6e 63 |e are.Xo|ther inc|
|000017e0| 6f 6d 70 61 74 69 62 69 | 6c 69 74 69 65 73 2c 20 |ompatibi|lities, |
|000017f0| 6d 6f 73 74 6c 79 20 6d | 69 6e 6f 72 20 62 75 74 |mostly m|inor but|
|00001800| 20 73 6f 6d 65 20 28 6c | 69 6b 65 20 61 63 63 6f | some (l|ike acco|
|00001810| 75 6e 74 69 6e 67 20 61 | 6e 64 0a 58 73 65 74 75 |unting a|nd.Xsetu|
|00001820| 69 64 20 70 72 6f 62 6c | 65 6d 73 29 20 69 6d 70 |id probl|ems) imp|
|00001830| 6f 72 74 61 6e 74 2e 20 | 54 68 65 20 61 75 74 68 |ortant. |The auth|
|00001840| 6f 72 20 69 73 20 77 6f | 72 6b 69 6e 67 20 6f 6e |or is wo|rking on|
|00001850| 20 61 20 50 4f 53 49 58 | 20 70 6f 72 74 2e 0a 58 | a POSIX| port..X|
|00001860| 0a 58 0a 58 70 74 79 20 | 76 65 72 73 69 6f 6e 20 |.X.Xpty |version |
|00001870| 33 2e 30 30 31 2c 20 41 | 75 67 75 73 74 20 32 31 |3.001, A|ugust 21|
|00001880| 2c 20 31 39 39 30 2e 0a | 58 43 6f 70 79 72 69 67 |, 1990..|XCopyrig|
|00001890| 68 74 20 28 63 29 20 31 | 39 39 30 2c 20 44 61 6e |ht (c) 1|990, Dan|
|000018a0| 69 65 6c 20 4a 2e 20 42 | 65 72 6e 73 74 65 69 6e |iel J. B|ernstein|
|000018b0| 2e 0a 58 41 6c 6c 20 72 | 69 67 68 74 73 20 72 65 |..XAll r|ights re|
|000018c0| 73 65 72 76 65 64 2e 0a | 58 0a 58 54 68 69 73 20 |served..|X.XThis |
|000018d0| 64 69 73 74 72 69 62 75 | 74 69 6f 6e 20 70 61 63 |distribu|tion pac|
|000018e0| 6b 61 67 65 64 20 41 75 | 67 75 73 74 20 32 32 2c |kaged Au|gust 22,|
|000018f0| 20 31 39 39 30 2e 0a 58 | 0a 58 47 65 6e 65 72 61 | 1990..X|.XGenera|
|00001900| 6c 20 6c 61 79 6f 75 74 | 3a 0a 58 43 48 41 4e 47 |l layout|:.XCHANG|
|00001910| 45 53 20 20 20 20 20 20 | 20 20 20 44 65 73 63 72 |ES | Descr|
|00001920| 69 70 74 69 6f 6e 20 6f | 66 20 63 68 61 6e 67 65 |iption o|f change|
|00001930| 73 20 73 69 6e 63 65 20 | 66 69 72 73 74 20 64 69 |s since |first di|
|00001940| 73 74 72 69 62 75 74 65 | 64 20 76 65 72 73 69 6f |stribute|d versio|
|00001950| 6e 0a 58 43 4f 50 59 52 | 49 47 48 54 20 20 20 20 |n.XCOPYR|IGHT |
|00001960| 20 20 20 41 20 63 6f 6d | 70 72 65 68 65 6e 73 69 | A com|prehensi|
|00001970| 62 6c 65 20 63 6f 70 79 | 72 69 67 68 74 20 6e 6f |ble copy|right no|
|00001980| 74 69 63 65 0a 58 46 49 | 4c 45 53 20 20 20 20 20 |tice.XFI|LES |
|00001990| 20 20 20 20 20 20 46 69 | 6c 65 20 6c 69 73 74 20 | Fi|le list |
|000019a0| 28 75 73 65 64 20 62 79 | 20 6d 61 6b 65 20 73 68 |(used by| make sh|
|000019b0| 61 72 29 0a 58 49 4e 53 | 54 41 4c 4c 20 20 20 20 |ar).XINS|TALL |
|000019c0| 20 20 20 20 20 41 20 73 | 63 72 69 70 74 20 74 6f | A s|cript to|
|000019d0| 20 67 75 69 64 65 20 79 | 6f 75 20 74 68 72 6f 75 | guide y|ou throu|
|000019e0| 67 68 20 63 6f 6d 70 69 | 6c 61 74 69 6f 6e 20 61 |gh compi|lation a|
|000019f0| 6e 64 20 69 6e 73 74 61 | 6c 6c 61 74 69 6f 6e 0a |nd insta|llation.|
|00001a00| 58 49 4e 53 54 41 4c 4c | 52 45 41 44 41 42 4c 45 |XINSTALL|READABLE|
|00001a10| 20 49 4e 53 54 41 4c 4c | 27 73 20 69 6e 66 6f 72 | INSTALL|'s infor|
|00001a20| 6d 61 74 69 6f 6e 2c 20 | 69 6e 20 61 20 66 6f 72 |mation, |in a for|
|00001a30| 6d 61 74 20 79 6f 75 20 | 63 61 6e 20 72 65 61 73 |mat you |can reas|
|00001a40| 6f 6e 61 62 6c 79 20 65 | 64 69 74 0a 58 4d 41 4e |onably e|dit.XMAN|
|00001a50| 49 46 45 53 54 20 20 20 | 20 20 20 20 20 53 68 69 |IFEST | Shi|
|00001a60| 70 70 69 6e 67 20 6c 69 | 73 74 0a 58 51 55 45 53 |pping li|st.XQUES|
|00001a70| 54 49 4f 4e 53 20 20 20 | 20 20 20 20 53 6f 6d 65 |TIONS | Some|
|00001a80| 20 71 75 65 73 74 69 6f | 6e 73 20 74 68 61 74 20 | questio|ns that |
|00001a90| 70 74 79 20 61 6e 73 77 | 65 72 73 0a 58 52 45 41 |pty answ|ers.XREA|
|00001aa0| 44 4d 45 20 20 20 20 20 | 20 20 20 20 20 54 68 69 |DME | Thi|
|00001ab0| 73 20 64 6f 63 75 6d 65 | 6e 74 0a 58 54 45 53 54 |s docume|nt.XTEST|
|00001ac0| 53 20 20 20 20 20 20 20 | 20 20 20 20 41 20 73 63 |S | A sc|
|00001ad0| 72 69 70 74 20 74 6f 20 | 67 75 69 64 65 20 79 6f |ript to |guide yo|
|00001ae0| 75 20 74 68 72 6f 75 67 | 68 20 73 6f 6d 65 20 74 |u throug|h some t|
|00001af0| 65 73 74 73 0a 58 4d 61 | 6b 65 66 69 6c 65 20 20 |ests.XMa|kefile |
|00001b00| 20 20 20 20 20 20 49 6e | 73 74 61 6c 6c 61 74 69 | In|stallati|
|00001b10| 6f 6e 20 63 6f 6d 6d 61 | 6e 64 73 0a 58 2a 2e 63 |on comma|nds.X*.c|
|00001b20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 50 72 6f | | Pro|
|00001b30| 67 72 61 6d 73 0a 58 2a | 2e 68 20 20 20 20 20 20 |grams.X*|.h |
|00001b40| 20 20 20 20 20 20 20 48 | 65 61 64 65 72 20 66 69 | H|eader fi|
|00001b50| 6c 65 73 0a 58 70 74 79 | 2e 6d 61 6e 20 20 20 20 |les.Xpty|.man |
|00001b60| 20 20 20 20 20 44 6f 63 | 75 6d 65 6e 74 61 74 69 | Doc|umentati|
|00001b70| 6f 6e 0a 58 70 61 74 63 | 68 2f 2a 20 20 20 20 20 |on.Xpatc|h/* |
|00001b80| 20 20 20 20 50 61 74 63 | 68 65 73 20 74 6f 20 6f | Patc|hes to o|
|00001b90| 74 68 65 72 20 70 72 6f | 67 72 61 6d 73 20 74 6f |ther pro|grams to|
|00001ba0| 20 62 65 74 74 65 72 20 | 75 73 65 20 70 74 79 0a | better |use pty.|
|00001bb0| 58 75 74 69 6c 2f 2a 20 | 20 20 20 20 20 20 20 20 |Xutil/* | |
|00001bc0| 20 55 74 69 6c 69 74 69 | 65 73 0a 58 0a 58 42 65 | Utiliti|es.X.XBe|
|00001bd0| 66 6f 72 65 20 79 6f 75 | 20 64 6f 20 61 6e 79 74 |fore you| do anyt|
|00001be0| 68 69 6e 67 20 65 6c 73 | 65 2c 20 72 75 6e 20 74 |hing els|e, run t|
|00001bf0| 68 65 20 49 4e 53 54 41 | 4c 4c 20 73 63 72 69 70 |he INSTA|LL scrip|
|00001c00| 74 2e 20 49 74 27 6c 6c | 20 67 75 69 64 65 20 79 |t. It'll| guide y|
|00001c10| 6f 75 0a 58 74 68 72 6f | 75 67 68 20 63 6f 6d 70 |ou.Xthro|ugh comp|
|00001c20| 69 6c 69 6e 67 20 61 6e | 64 20 69 6e 73 74 61 6c |iling an|d instal|
|00001c30| 6c 69 6e 67 20 70 74 79 | 20 61 6e 64 20 74 68 65 |ling pty| and the|
|00001c40| 20 75 74 69 6c 69 74 69 | 65 73 2e 20 54 68 65 6e | utiliti|es. Then|
|00001c50| 20 72 75 6e 20 54 45 53 | 54 53 0a 58 74 6f 20 65 | run TES|TS.Xto e|
|00001c60| 78 65 72 63 69 73 65 20 | 61 20 66 65 77 20 6f 66 |xercise |a few of|
|00001c70| 20 70 74 79 27 73 20 66 | 65 61 74 75 72 65 73 20 | pty's f|eatures |
|00001c80| 6f 6e 20 79 6f 75 72 20 | 73 79 73 74 65 6d 2e 20 |on your |system. |
|00001c90| 70 61 74 63 68 2f 20 69 | 73 20 73 65 70 61 72 61 |patch/ i|s separa|
|00001ca0| 74 65 3b 0a 58 72 65 61 | 64 20 70 61 74 63 68 2f |te;.Xrea|d patch/|
|00001cb0| 52 45 41 44 4d 45 20 61 | 74 20 79 6f 75 72 20 6c |README a|t your l|
|00001cc0| 65 69 73 75 72 65 2e 0a | 58 0a 58 52 65 61 64 20 |eisure..|X.XRead |
|00001cd0| 43 48 41 4e 47 45 53 20 | 66 6f 72 20 61 20 6c 69 |CHANGES |for a li|
|00001ce0| 73 74 20 6f 66 20 63 68 | 61 6e 67 65 73 2e 20 70 |st of ch|anges. p|
|00001cf0| 74 79 20 2d 43 20 61 6e | 64 20 70 74 79 20 2d 57 |ty -C an|d pty -W|
|00001d00| 20 67 69 76 65 20 63 6f | 70 79 72 69 67 68 74 20 | give co|pyright |
|00001d10| 61 6e 64 0a 58 77 61 72 | 72 61 6e 74 79 20 69 6e |and.Xwar|ranty in|
|00001d20| 66 6f 72 6d 61 74 69 6f | 6e 3b 20 70 74 79 20 2d |formatio|n; pty -|
|00001d30| 48 20 70 72 69 6e 74 73 | 20 61 20 68 65 6c 70 20 |H prints| a help |
|00001d40| 73 63 72 65 65 6e 2e 0a | 58 0a 58 4e 6f 74 65 20 |screen..|X.XNote |
|00001d50| 74 68 61 74 20 49 4e 53 | 54 41 4c 4c 2c 20 75 74 |that INS|TALL, ut|
|00001d60| 69 6c 2f 6c 6f 63 6b 2e | 63 2c 20 75 74 69 6c 2f |il/lock.|c, util/|
|00001d70| 73 63 72 69 70 74 2e 74 | 69 64 79 2c 20 75 74 69 |script.t|idy, uti|
|00001d80| 6c 2f 77 72 69 74 65 2e | 63 2c 20 61 6e 64 0a 58 |l/write.|c, and.X|
|00001d90| 75 74 69 6c 2f 77 61 6c | 6c 2e 63 20 61 6c 6c 20 |util/wal|l.c all |
|00001da0| 63 6f 6e 74 61 69 6e 20 | 63 6f 6e 74 72 6f 6c 20 |contain |control |
|00001db0| 63 68 61 72 61 63 74 65 | 72 73 2e 0a 58 0a 58 0a |characte|rs..X.X.|
|00001dc0| 58 4b 6e 6f 77 6e 20 70 | 72 6f 62 6c 65 6d 73 3a |XKnown p|roblems:|
|00001dd0| 0a 58 0a 58 50 4f 53 49 | 58 20 63 6f 6d 70 61 74 |.X.XPOSI|X compat|
|00001de0| 69 62 69 6c 69 74 79 2d | 2d 2d 6d 69 67 68 74 20 |ibility-|--might |
|00001df0| 61 73 20 77 65 6c 6c 20 | 64 6f 20 63 6f 6d 70 6c |as well |do compl|
|00001e00| 65 74 65 20 72 65 77 72 | 69 74 65 0a 58 6c 61 73 |ete rewr|ite.Xlas|
|00001e10| 74 20 77 61 73 20 72 65 | 6d 6f 76 65 64 20 62 75 |t was re|moved bu|
|00001e20| 74 20 69 73 20 6d 65 6e | 74 69 6f 6e 65 64 20 69 |t is men|tioned i|
|00001e30| 6e 20 49 4e 53 54 41 4c | 4c 20 61 6e 64 20 49 4e |n INSTAL|L and IN|
|00001e40| 53 54 41 4c 4c 52 45 41 | 44 41 42 4c 45 0a 58 49 |STALLREA|DABLE.XI|
|00001e50| 4e 53 54 41 4c 4c 27 73 | 20 75 73 6c 65 65 70 20 |NSTALL's| usleep |
|00001e60| 74 65 73 74 20 69 73 20 | 6e 6f 74 20 61 63 63 75 |test is |not accu|
|00001e70| 72 61 74 65 20 69 6e 20 | 55 6c 74 72 69 78 20 33 |rate in |Ultrix 3|
|00001e80| 2e 31 43 20 28 61 61 72 | 67 68 29 0a 58 63 68 69 |.1C (aar|gh).Xchi|
|00001e90| 6c 64 73 69 67 20 3d 20 | 53 49 47 43 4f 4e 54 20 |ldsig = |SIGCONT |
|00001ea0| 66 6f 72 20 54 53 54 50 | 20 69 6e 20 6d 61 73 74 |for TSTP| in mast|
|00001eb0| 65 72 2e 63 3f 0a 58 50 | 49 50 45 20 73 68 6f 75 |er.c?.XP|IPE shou|
|00001ec0| 6c 64 20 62 65 20 68 61 | 6e 64 6c 65 64 20 62 79 |ld be ha|ndled by|
|00001ed0| 20 66 69 6e 69 73 68 20 | 69 6e 20 73 69 67 6c 65 | finish |in sigle|
|00001ee0| 72 2e 63 20 66 6f 72 20 | 4e 4f 5f 46 44 50 41 53 |r.c for |NO_FDPAS|
|00001ef0| 53 49 4e 47 20 66 6f 6c | 6b 73 0a 58 73 65 73 73 |SING fol|ks.Xsess|
|00001f00| 6c 69 73 74 20 67 69 76 | 65 73 20 65 72 72 6f 72 |list giv|es error|
|00001f10| 20 66 6f 72 20 61 20 73 | 65 73 73 69 6f 6e 20 64 | for a s|ession d|
|00001f20| 69 72 65 63 74 6f 72 79 | 20 6e 6f 74 20 79 65 74 |irectory| not yet|
|00001f30| 20 63 72 65 61 74 65 64 | 0a 58 70 74 79 20 2d 48 | created|.Xpty -H|
|00001f40| 20 6c 69 73 74 73 20 2f | 65 74 63 2f 77 74 6d 70 | lists /|etc/wtmp|
|00001f50| 2d 2d 2d 67 75 61 72 61 | 6e 74 65 65 64 20 74 6f |---guara|nteed to|
|00001f60| 20 63 6f 6e 66 75 73 65 | 20 73 6f 6d 65 20 70 65 | confuse| some pe|
|00001f70| 6f 70 6c 65 0a 58 51 55 | 45 53 54 49 4f 4e 53 20 |ople.XQU|ESTIONS |
|00001f80| 61 6e 64 20 54 45 53 54 | 53 20 6c 69 73 74 20 73 |and TEST|S list s|
|00001f90| 65 64 20 2e 2e 2e 20 7c | 20 6d 6f 72 65 2c 20 72 |ed ... || more, r|
|00001fa0| 61 63 65 3b 20 6d 6f 72 | 65 20 73 68 6f 75 6c 64 |ace; mor|e should|
|00001fb0| 20 62 65 20 67 72 65 70 | 20 78 0a 58 6f 6e 20 63 | be grep| x.Xon c|
|00001fc0| 61 6e 6e 6f 74 20 63 68 | 64 69 72 20 74 6f 20 73 |annot ch|dir to s|
|00001fd0| 65 73 73 69 6f 6e 20 64 | 69 72 65 63 74 6f 72 79 |ession d|irectory|
|00001fe0| 2c 20 70 74 79 20 64 6f | 65 73 20 6e 6f 74 20 72 |, pty do|es not r|
|00001ff0| 65 73 74 6f 72 65 20 63 | 6f 72 72 65 63 74 6c 79 |estore c|orrectly|
|00002000| 0a 58 20 20 28 73 65 74 | 20 75 70 20 79 6f 75 72 |.X (set| up your|
|00002010| 20 73 65 73 73 69 6f 6e | 20 64 69 72 65 63 74 6f | session| directo|
|00002020| 72 79 20 63 6f 72 72 65 | 63 74 6c 79 21 29 0a 58 |ry corre|ctly!).X|
|00002030| 0a 58 0a 58 54 4f 44 4f | 20 6c 69 73 74 3a 0a 58 |.X.XTODO| list:.X|
|00002040| 0a 58 49 4e 53 54 41 4c | 4c 53 55 20 73 63 72 69 |.XINSTAL|LSU scri|
|00002050| 70 74 2c 20 66 6f 72 20 | 74 68 65 20 66 69 6e 61 |pt, for |the fina|
|00002060| 6c 20 73 74 61 67 65 73 | 20 6f 66 20 69 6e 73 74 |l stages| of inst|
|00002070| 61 6c 6c 61 74 69 6f 6e | 0a 58 66 69 78 20 50 54 |allation|.Xfix PT|
|00002080| 59 44 49 52 20 70 72 6f | 70 61 67 61 74 69 6f 6e |YDIR pro|pagation|
|00002090| 20 69 6e 74 6f 20 75 74 | 69 6c 69 74 69 65 73 0a | into ut|ilities.|
|000020a0| 58 76 68 61 6e 67 75 70 | 28 29 3f 20 74 68 69 73 |Xvhangup|()? this|
|000020b0| 20 69 73 20 61 20 73 74 | 69 63 6b 79 20 69 73 73 | is a st|icky iss|
|000020c0| 75 65 2e 20 70 72 6f 62 | 61 62 6c 79 20 6e 6f 74 |ue. prob|ably not|
|000020d0| 20 62 75 74 20 77 65 27 | 6c 6c 20 73 65 65 0a 58 | but we'|ll see.X|
|000020e0| 6c 6f 63 6b 69 6e 67 20 | 6f 6e 20 2f 65 74 63 2f |locking |on /etc/|
|000020f0| 75 74 6d 70 20 61 6e 64 | 20 2f 75 73 72 2f 61 64 |utmp and| /usr/ad|
|00002100| 6d 2f 77 74 6d 70 3f 20 | 6e 6f 74 20 6e 65 63 65 |m/wtmp? |not nece|
|00002110| 73 73 61 72 79 20 69 66 | 20 41 50 50 45 4e 44 20 |ssary if| APPEND |
|00002120| 77 6f 72 6b 73 0a 58 67 | 65 6e 65 72 61 6c 6c 79 |works.Xg|enerally|
|00002130| 20 68 61 6e 64 6c 65 20 | 73 69 67 6e 61 6c 73 20 | handle |signals |
|00002140| 62 65 74 74 65 72 20 69 | 6e 20 73 69 67 6c 65 72 |better i|n sigler|
|00002150| 0a 58 63 6c 65 61 6e 20 | 75 70 20 60 60 6c 61 73 |.Xclean |up ``las|
|00002160| 74 27 27 20 61 6e 64 20 | 69 6e 63 6c 75 64 65 20 |t'' and |include |
|00002170| 69 74 20 69 6e 20 70 61 | 63 6b 61 67 65 0a 58 60 |it in pa|ckage.X`|
|00002180| 60 64 65 74 61 63 68 27 | 27 3f 20 6e 6f 74 20 79 |`detach'|'? not y|
|00002190| 65 74 2c 20 66 6f 72 20 | 72 65 61 73 6f 6e 73 20 |et, for |reasons |
|000021a0| 64 69 73 63 75 73 73 65 | 64 20 69 6e 20 70 61 70 |discusse|d in pap|
|000021b0| 65 72 0a 58 6d 75 73 74 | 20 70 74 79 20 72 65 61 |er.Xmust| pty rea|
|000021c0| 6c 6c 79 20 73 74 6f 70 | 20 6f 6e 20 70 74 79 20 |lly stop| on pty |
|000021d0| 2d 54 20 2e 2e 2e 20 26 | 3f 0a 58 60 60 75 74 6d |-T ... &|?.X``utm|
|000021e0| 70 69 6e 69 74 27 27 2c | 20 73 6f 20 74 68 61 74 |pinit'',| so that|
|000021f0| 20 70 74 79 20 61 6e 64 | 20 6c 6f 67 69 6e 20 77 | pty and| login w|
|00002200| 69 6c 6c 20 67 65 74 20 | 61 6c 6f 6e 67 2d 2d 2d |ill get |along---|
|00002210| 67 65 6e 65 72 61 6c 6c | 79 20 75 73 65 66 75 6c |generall|y useful|
|00002220| 0a 58 0a 58 0a 58 4d 6f | 72 65 20 63 6f 6d 70 72 |.X.X.XMo|re compr|
|00002230| 65 68 65 6e 73 69 76 65 | 20 64 69 73 63 75 73 73 |ehensive| discuss|
|00002240| 69 6f 6e 20 77 69 6c 6c | 20 62 65 20 61 76 61 69 |ion will| be avai|
|00002250| 6c 61 62 6c 65 20 73 6f | 6f 6e 20 69 6e 20 60 60 |lable so|on in ``|
|00002260| 54 68 65 20 44 65 73 69 | 67 6e 2c 0a 58 49 6d 70 |The Desi|gn,.XImp|
|00002270| 6c 65 6d 65 6e 74 61 74 | 69 6f 6e 2c 20 61 6e 64 |lementat|ion, and|
|00002280| 20 55 73 65 20 6f 66 20 | 61 20 50 73 65 75 64 6f | Use of |a Pseudo|
|00002290| 2d 54 65 72 6d 69 6e 61 | 6c 20 4d 61 6e 61 67 65 |-Termina|l Manage|
|000022a0| 72 2e 27 27 0a 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |r.''.END|_OF_FILE|
|000022b0| 0a 20 20 69 66 20 74 65 | 73 74 20 33 39 32 32 20 |. if te|st 3922 |
|000022c0| 2d 6e 65 20 60 77 63 20 | 2d 63 20 3c 27 52 45 41 |-ne `wc |-c <'REA|
|000022d0| 44 4d 45 27 60 3b 20 74 | 68 65 6e 0a 20 20 20 20 |DME'`; t|hen. |
|000022e0| 65 63 68 6f 20 73 68 61 | 72 3a 20 5c 22 27 52 45 |echo sha|r: \"'RE|
|000022f0| 41 44 4d 45 27 5c 22 20 | 75 6e 70 61 63 6b 65 64 |ADME'\" |unpacked|
|00002300| 20 77 69 74 68 20 77 72 | 6f 6e 67 20 73 69 7a 65 | with wr|ong size|
|00002310| 21 0a 20 20 66 69 0a 20 | 20 23 20 65 6e 64 20 6f |!. fi. | # end o|
|00002320| 66 20 27 52 45 41 44 4d | 45 27 0a 66 69 0a 69 66 |f 'READM|E'.fi.if|
|00002330| 20 74 65 73 74 20 2d 66 | 20 27 4d 41 4e 49 46 45 | test -f| 'MANIFE|
|00002340| 53 54 27 20 2d 61 20 22 | 24 7b 31 7d 22 20 21 3d |ST' -a "|${1}" !=|
|00002350| 20 22 2d 63 22 20 3b 20 | 74 68 65 6e 20 0a 20 20 | "-c" ; |then . |
|00002360| 65 63 68 6f 20 73 68 61 | 72 3a 20 57 69 6c 6c 20 |echo sha|r: Will |
|00002370| 6e 6f 74 20 63 6c 6f 62 | 62 65 72 20 65 78 69 73 |not clob|ber exis|
|00002380| 74 69 6e 67 20 66 69 6c | 65 20 5c 22 27 4d 41 4e |ting fil|e \"'MAN|
|00002390| 49 46 45 53 54 27 5c 22 | 0a 65 6c 73 65 0a 20 20 |IFEST'\"|.else. |
|000023a0| 65 63 68 6f 20 73 68 61 | 72 3a 20 45 78 74 72 61 |echo sha|r: Extra|
|000023b0| 63 74 69 6e 67 20 5c 22 | 27 4d 41 4e 49 46 45 53 |cting \"|'MANIFES|
|000023c0| 54 27 5c 22 20 5c 28 32 | 39 30 36 20 63 68 61 72 |T'\" \(2|906 char|
|000023d0| 61 63 74 65 72 73 5c 29 | 0a 20 20 73 65 64 20 22 |acters\)|. sed "|
|000023e0| 73 2f 5e 58 2f 2f 22 20 | 3e 27 4d 41 4e 49 46 45 |s/^X//" |>'MANIFE|
|000023f0| 53 54 27 20 3c 3c 27 45 | 4e 44 5f 4f 46 5f 46 49 |ST' <<'E|ND_OF_FI|
|00002400| 4c 45 27 0a 58 20 20 20 | 46 69 6c 65 20 4e 61 6d |LE'.X |File Nam|
|00002410| 65 09 09 41 72 63 68 69 | 76 65 20 23 09 44 65 73 |e..Archi|ve #.Des|
|00002420| 63 72 69 70 74 69 6f 6e | 0a 58 2d 2d 2d 2d 2d 2d |cription|.X------|
|00002430| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002440| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002450| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002460| 2d 2d 2d 2d 0a 58 50 41 | 43 4b 4e 4f 54 45 53 20 |----.XPA|CKNOTES |
|00002470| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002480| 20 31 09 0a 58 52 45 41 | 44 4d 45 20 20 20 20 20 | 1..XREA|DME |
|00002490| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000024a0| 31 09 0a 58 4d 41 4e 49 | 46 45 53 54 20 20 20 20 |1..XMANI|FEST |
|000024b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 31 | | 1|
|000024c0| 09 54 68 69 73 20 73 68 | 69 70 70 69 6e 67 20 6c |.This sh|ipping l|
|000024d0| 69 73 74 0a 58 43 48 41 | 4e 47 45 53 20 20 20 20 |ist.XCHA|NGES |
|000024e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000024f0| 35 09 0a 58 43 4f 50 59 | 52 49 47 48 54 20 20 20 |5..XCOPY|RIGHT |
|00002500| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 34 | | 4|
|00002510| 09 0a 58 46 49 4c 45 53 | 20 20 20 20 20 20 20 20 |..XFILES| |
|00002520| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 31 09 | | 1.|
|00002530| 0a 58 49 4e 53 54 41 4c | 4c 20 20 20 20 20 20 20 |.XINSTAL|L |
|00002540| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 31 09 0a | | 1..|
|00002550| 58 49 4e 53 54 41 4c 4c | 52 45 41 44 41 42 4c 45 |XINSTALL|READABLE|
|00002560| 20 20 20 20 20 20 20 20 | 20 20 20 20 32 09 0a 58 | | 2..X|
|00002570| 4d 61 6b 65 66 69 6c 65 | 20 20 20 20 20 20 20 20 |Makefile| |
|00002580| 20 20 20 20 20 20 20 20 | 20 20 20 35 09 0a 58 51 | | 5..XQ|
|00002590| 55 45 53 54 49 4f 4e 53 | 20 20 20 20 20 20 20 20 |UESTIONS| |
|000025a0| 20 20 20 20 20 20 20 20 | 20 20 34 09 0a 58 54 45 | | 4..XTE|
|000025b0| 53 54 53 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |STS | |
|000025c0| 20 20 20 20 20 20 20 20 | 20 34 09 0a 58 63 6f 6e | | 4..Xcon|
|000025d0| 66 69 67 2e 68 20 20 20 | 20 20 20 20 20 20 20 20 |fig.h | |
|000025e0| 20 20 20 20 20 20 20 20 | 33 09 0a 58 65 72 72 2e | |3..Xerr.|
|000025f0| 63 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |c | |
|00002600| 20 20 20 20 20 20 20 35 | 09 0a 58 65 72 72 2e 68 | 5|..Xerr.h|
|00002610| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002620| 20 20 20 20 20 20 36 09 | 0a 58 66 69 6c 65 2e 68 | 6.|.Xfile.h|
|00002630| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002640| 20 20 20 20 20 36 09 0a | 58 66 69 6c 65 2e 68 2e | 6..|Xfile.h.|
|00002650| 6e 65 77 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |new | |
|00002660| 20 20 20 20 36 09 0a 58 | 66 69 6c 65 2e 68 2e 6f | 6..X|file.h.o|
|00002670| 6c 64 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ld | |
|00002680| 20 20 20 35 09 0a 58 67 | 65 74 6f 70 74 2e 68 20 | 5..Xg|etopt.h |
|00002690| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000026a0| 20 20 36 09 0a 58 67 6c | 6f 62 61 6c 73 2e 63 20 | 6..Xgl|obals.c |
|000026b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000026c0| 20 35 09 0a 58 6c 6f 67 | 73 2e 63 20 20 20 20 20 | 5..Xlog|s.c |
|000026d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000026e0| 33 09 0a 58 6c 6f 67 73 | 2e 68 20 20 20 20 20 20 |3..Xlogs|.h |
|000026f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 36 | | 6|
|00002700| 09 0a 58 6d 61 73 74 65 | 72 2e 63 20 20 20 20 20 |..Xmaste|r.c |
|00002710| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 32 09 | | 2.|
|00002720| 0a 58 6d 61 73 74 65 72 | 2e 68 20 20 20 20 20 20 |.Xmaster|.h |
|00002730| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 36 09 0a | | 6..|
|00002740| 58 6d 69 73 63 2e 63 20 | 20 20 20 20 20 20 20 20 |Xmisc.c | |
|00002750| 20 20 20 20 20 20 20 20 | 20 20 20 20 35 09 0a 58 | | 5..X|
|00002760| 6d 69 73 63 2e 68 20 20 | 20 20 20 20 20 20 20 20 |misc.h | |
|00002770| 20 20 20 20 20 20 20 20 | 20 20 20 36 09 0a 58 70 | | 6..Xp|
|00002780| 61 74 63 68 20 20 20 20 | 20 20 20 20 20 20 20 20 |atch | |
|00002790| 20 20 20 20 20 20 20 20 | 20 20 31 09 0a 58 70 61 | | 1..Xpa|
|000027a0| 74 63 68 2f 4d 61 6b 65 | 66 69 6c 65 20 20 20 20 |tch/Make|file |
|000027b0| 20 20 20 20 20 20 20 20 | 20 34 09 0a 58 70 61 74 | | 4..Xpat|
|000027c0| 63 68 2f 52 45 41 44 4d | 45 20 20 20 20 20 20 20 |ch/READM|E |
|000027d0| 20 20 20 20 20 20 20 20 | 34 09 0a 58 70 61 74 63 | |4..Xpatc|
|000027e0| 68 2f 54 45 4c 4e 45 54 | 2e 46 54 50 20 20 20 20 |h/TELNET|.FTP |
|000027f0| 20 20 20 20 20 20 20 36 | 09 0a 58 70 61 74 63 68 | 6|..Xpatch|
|00002800| 2f 69 67 6e 74 74 2e 63 | 20 20 20 20 20 20 20 20 |/igntt.c| |
|00002810| 20 20 20 20 20 20 35 09 | 0a 58 70 61 74 63 68 2f | 5.|.Xpatch/|
|00002820| 74 65 6c 6e 65 74 64 2e | 39 30 2e 30 36 2e 32 38 |telnetd.|90.06.28|
|00002830| 2e 70 61 74 63 68 20 20 | 31 09 0a 58 70 74 79 2e |.patch |1..Xpty.|
|00002840| 31 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |1 | |
|00002850| 20 20 20 20 20 20 20 33 | 09 0a 58 70 74 79 2e 63 | 3|..Xpty.c|
|00002860| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002870| 20 20 20 20 20 20 32 09 | 0a 58 70 74 79 2e 68 20 | 2.|.Xpty.h |
|00002880| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002890| 20 20 20 20 20 35 09 0a | 58 73 69 67 2e 63 20 20 | 5..|Xsig.c |
|000028a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000028b0| 20 20 20 20 34 09 0a 58 | 73 69 67 2e 68 20 20 20 | 4..X|sig.h |
|000028c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000028d0| 20 20 20 35 09 0a 58 73 | 69 67 6c 65 72 2e 63 20 | 5..Xs|igler.c |
|000028e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000028f0| 20 20 33 09 0a 58 73 69 | 67 6c 65 72 2e 68 20 20 | 3..Xsi|gler.h |
|00002900| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002910| 20 36 09 0a 58 73 6c 61 | 76 65 2e 63 20 20 20 20 | 6..Xsla|ve.c |
|00002920| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002930| 34 09 0a 58 73 6c 61 76 | 65 2e 68 20 20 20 20 20 |4..Xslav|e.h |
|00002940| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 36 | | 6|
|00002950| 09 0a 58 73 6f 63 6b 2e | 63 20 20 20 20 20 20 20 |..Xsock.|c |
|00002960| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 33 09 | | 3.|
|00002970| 0a 58 73 6f 63 6b 2e 68 | 20 20 20 20 20 20 20 20 |.Xsock.h| |
|00002980| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 35 09 0a | | 5..|
|00002990| 58 74 65 78 74 73 2e 63 | 20 20 20 20 20 20 20 20 |Xtexts.c| |
|000029a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 34 09 0a 58 | | 4..X|
|000029b0| 74 65 78 74 73 2e 68 20 | 20 20 20 20 20 20 20 20 |texts.h | |
|000029c0| 20 20 20 20 20 20 20 20 | 20 20 20 36 09 0a 58 74 | | 6..Xt|
|000029d0| 74 79 2e 63 20 20 20 20 | 20 20 20 20 20 20 20 20 |ty.c | |
|000029e0| 20 20 20 20 20 20 20 20 | 20 20 33 09 0a 58 74 74 | | 3..Xtt|
|000029f0| 79 2e 68 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |y.h | |
|00002a00| 20 20 20 20 20 20 20 20 | 20 35 09 0a 58 75 74 69 | | 5..Xuti|
|00002a10| 6c 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |l | |
|00002a20| 20 20 20 20 20 20 20 20 | 31 09 0a 58 75 74 69 6c | |1..Xutil|
|00002a30| 2f 4d 61 6b 65 66 69 6c | 65 20 20 20 20 20 20 20 |/Makefil|e |
|00002a40| 20 20 20 20 20 20 20 33 | 09 0a 58 75 74 69 6c 2f | 3|..Xutil/|
|00002a50| 62 69 66 66 2e 31 20 20 | 20 20 20 20 20 20 20 20 |biff.1 | |
|00002a60| 20 20 20 20 20 20 35 09 | 0a 58 75 74 69 6c 2f 62 | 5.|.Xutil/b|
|00002a70| 69 66 66 2e 63 20 20 20 | 20 20 20 20 20 20 20 20 |iff.c | |
|00002a80| 20 20 20 20 20 34 09 0a | 58 75 74 69 6c 2f 63 6f | 4..|Xutil/co|
|00002a90| 6e 64 6f 6d 20 20 20 20 | 20 20 20 20 20 20 20 20 |ndom | |
|00002aa0| 20 20 20 20 36 09 0a 58 | 75 74 69 6c 2f 63 6f 6e | 6..X|util/con|
|00002ab0| 64 6f 6d 2e 31 20 20 20 | 20 20 20 20 20 20 20 20 |dom.1 | |
|00002ac0| 20 20 20 35 09 0a 58 75 | 74 69 6c 2f 64 69 73 63 | 5..Xu|til/disc|
|00002ad0| 6f 6e 6e 65 63 74 2e 31 | 20 20 20 20 20 20 20 20 |onnect.1| |
|00002ae0| 20 20 35 09 0a 58 75 74 | 69 6c 2f 64 69 73 63 6f | 5..Xut|il/disco|
|00002af0| 6e 6e 65 63 74 2e 63 20 | 20 20 20 20 20 20 20 20 |nnect.c | |
|00002b00| 20 35 09 0a 58 75 74 69 | 6c 2f 65 78 63 6c 6f 66 | 5..Xuti|l/exclof|
|00002b10| 66 2e 31 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |f.1 | |
|00002b20| 36 09 0a 58 75 74 69 6c | 2f 65 78 63 6c 6f 66 66 |6..Xutil|/excloff|
|00002b30| 2e 63 20 20 20 20 20 20 | 20 20 20 20 20 20 20 36 |.c | 6|
|00002b40| 09 0a 58 75 74 69 6c 2f | 65 78 63 6c 6f 6e 2e 31 |..Xutil/|exclon.1|
|00002b50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 35 09 | | 5.|
|00002b60| 0a 58 75 74 69 6c 2f 65 | 78 63 6c 6f 6e 2e 63 20 |.Xutil/e|xclon.c |
|00002b70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 36 09 0a | | 6..|
|00002b80| 58 75 74 69 6c 2f 6c 6f | 63 6b 2e 31 20 20 20 20 |Xutil/lo|ck.1 |
|00002b90| 20 20 20 20 20 20 20 20 | 20 20 20 20 35 09 0a 58 | | 5..X|
|00002ba0| 75 74 69 6c 2f 6c 6f 63 | 6b 2e 63 20 20 20 20 20 |util/loc|k.c |
|00002bb0| 20 20 20 20 20 20 20 20 | 20 20 20 35 09 0a 58 75 | | 5..Xu|
|00002bc0| 74 69 6c 2f 6d 65 73 67 | 2e 31 20 20 20 20 20 20 |til/mesg|.1 |
|00002bd0| 20 20 20 20 20 20 20 20 | 20 20 35 09 0a 58 75 74 | | 5..Xut|
|00002be0| 69 6c 2f 6d 65 73 67 2e | 63 20 20 20 20 20 20 20 |il/mesg.|c |
|00002bf0| 20 20 20 20 20 20 20 20 | 20 35 09 0a 58 75 74 69 | | 5..Xuti|
|00002c00| 6c 2f 72 65 63 6f 6e 6e | 65 63 74 2e 31 20 20 20 |l/reconn|ect.1 |
|00002c10| 20 20 20 20 20 20 20 20 | 35 09 0a 58 75 74 69 6c | |5..Xutil|
|00002c20| 2f 72 65 63 6f 6e 6e 65 | 63 74 2e 63 20 20 20 20 |/reconne|ct.c |
|00002c30| 20 20 20 20 20 20 20 35 | 09 0a 58 75 74 69 6c 2f | 5|..Xutil/|
|00002c40| 73 63 72 69 70 74 20 20 | 20 20 20 20 20 20 20 20 |script | |
|00002c50| 20 20 20 20 20 20 36 09 | 0a 58 75 74 69 6c 2f 73 | 6.|.Xutil/s|
|00002c60| 63 72 69 70 74 2e 31 20 | 20 20 20 20 20 20 20 20 |cript.1 | |
|00002c70| 20 20 20 20 20 35 09 0a | 58 75 74 69 6c 2f 73 63 | 5..|Xutil/sc|
|00002c80| 72 69 70 74 2e 74 69 64 | 79 20 20 20 20 20 20 20 |ript.tid|y |
|00002c90| 20 20 20 20 36 09 0a 58 | 75 74 69 6c 2f 73 63 72 | 6..X|util/scr|
|00002ca0| 69 70 74 2e 74 69 64 79 | 2e 31 20 20 20 20 20 20 |ipt.tidy|.1 |
|00002cb0| 20 20 20 35 09 0a 58 75 | 74 69 6c 2f 73 65 73 73 | 5..Xu|til/sess|
|00002cc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002cd0| 20 20 36 09 0a 58 75 74 | 69 6c 2f 73 65 73 73 2e | 6..Xut|il/sess.|
|00002ce0| 31 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |1 | |
|00002cf0| 20 35 09 0a 58 75 74 69 | 6c 2f 73 65 73 73 6b 69 | 5..Xuti|l/sesski|
|00002d00| 6c 6c 2e 31 20 20 20 20 | 20 20 20 20 20 20 20 20 |ll.1 | |
|00002d10| 35 09 0a 58 75 74 69 6c | 2f 73 65 73 73 6b 69 6c |5..Xutil|/sesskil|
|00002d20| 6c 2e 63 20 20 20 20 20 | 20 20 20 20 20 20 20 35 |l.c | 5|
|00002d30| 09 0a 58 75 74 69 6c 2f | 73 65 73 73 6c 69 73 74 |..Xutil/|sesslist|
|00002d40| 2e 31 20 20 20 20 20 20 | 20 20 20 20 20 20 35 09 |.1 | 5.|
|00002d50| 0a 58 75 74 69 6c 2f 73 | 65 73 73 6c 69 73 74 2e |.Xutil/s|esslist.|
|00002d60| 63 20 20 20 20 20 20 20 | 20 20 20 20 20 34 09 0a |c | 4..|
|00002d70| 58 75 74 69 6c 2f 73 65 | 73 73 6e 61 6d 65 2e 31 |Xutil/se|ssname.1|
|00002d80| 20 20 20 20 20 20 20 20 | 20 20 20 20 35 09 0a 58 | | 5..X|
|00002d90| 75 74 69 6c 2f 73 65 73 | 73 6e 61 6d 65 2e 63 20 |util/ses|sname.c |
|00002da0| 20 20 20 20 20 20 20 20 | 20 20 20 35 09 0a 58 75 | | 5..Xu|
|00002db0| 74 69 6c 2f 73 65 73 73 | 75 73 65 72 2e 31 20 20 |til/sess|user.1 |
|00002dc0| 20 20 20 20 20 20 20 20 | 20 20 34 09 0a 58 75 74 | | 4..Xut|
|00002dd0| 69 6c 2f 73 65 73 73 75 | 73 65 72 2e 63 20 20 20 |il/sessu|ser.c |
|00002de0| 20 20 20 20 20 20 20 20 | 20 34 09 0a 58 75 74 69 | | 4..Xuti|
|00002df0| 6c 2f 73 65 73 73 75 74 | 69 6c 2e 63 20 20 20 20 |l/sessut|il.c |
|00002e00| 20 20 20 20 20 20 20 20 | 34 09 0a 58 75 74 69 6c | |4..Xutil|
|00002e10| 2f 73 65 73 73 75 74 69 | 6c 2e 68 20 20 20 20 20 |/sessuti|l.h |
|00002e20| 20 20 20 20 20 20 20 35 | 09 0a 58 75 74 69 6c 2f | 5|..Xutil/|
|00002e30| 74 69 6f 63 73 74 69 2e | 31 20 20 20 20 20 20 20 |tiocsti.|1 |
|00002e40| 20 20 20 20 20 20 36 09 | 0a 58 75 74 69 6c 2f 74 | 6.|.Xutil/t|
|00002e50| 69 6f 63 73 74 69 2e 63 | 20 20 20 20 20 20 20 20 |iocsti.c| |
|00002e60| 20 20 20 20 20 36 09 0a | 58 75 74 69 6c 2f 74 74 | 6..|Xutil/tt|
|00002e70| 79 2e 31 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |y.1 | |
|00002e80| 20 20 20 20 36 09 0a 58 | 75 74 69 6c 2f 74 74 79 | 6..X|util/tty|
|00002e90| 2e 63 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.c | |
|00002ea0| 20 20 20 36 09 0a 58 75 | 74 69 6c 2f 75 2e 31 20 | 6..Xu|til/u.1 |
|00002eb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002ec0| 20 20 35 09 0a 58 75 74 | 69 6c 2f 75 2e 63 20 20 | 5..Xut|il/u.c |
|00002ed0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002ee0| 20 35 09 0a 58 75 74 69 | 6c 2f 77 61 6c 6c 2e 31 | 5..Xuti|l/wall.1|
|00002ef0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002f00| 35 09 0a 58 75 74 69 6c | 2f 77 61 6c 6c 2e 63 20 |5..Xutil|/wall.c |
|00002f10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 35 | | 5|
|00002f20| 09 0a 58 75 74 69 6c 2f | 77 68 6f 2e 31 20 20 20 |..Xutil/|who.1 |
|00002f30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 35 09 | | 5.|
|00002f40| 0a 58 75 74 69 6c 2f 77 | 68 6f 2e 63 20 20 20 20 |.Xutil/w|ho.c |
|00002f50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 35 09 0a | | 5..|
|00002f60| 58 75 74 69 6c 2f 77 72 | 69 74 65 2e 31 20 20 20 |Xutil/wr|ite.1 |
|00002f70| 20 20 20 20 20 20 20 20 | 20 20 20 20 35 09 0a 58 | | 5..X|
|00002f80| 75 74 69 6c 2f 77 72 69 | 74 65 2e 63 20 20 20 20 |util/wri|te.c |
|00002f90| 20 20 20 20 20 20 20 20 | 20 20 20 34 09 0a 58 75 | | 4..Xu|
|00002fa0| 74 69 6c 2f 78 73 65 73 | 73 75 74 69 6c 2e 63 20 |til/xses|sutil.c |
|00002fb0| 20 20 20 20 20 20 20 20 | 20 20 34 09 0a 45 4e 44 | | 4..END|
|00002fc0| 5f 4f 46 5f 46 49 4c 45 | 0a 20 20 69 66 20 74 65 |_OF_FILE|. if te|
|00002fd0| 73 74 20 32 39 30 36 20 | 2d 6e 65 20 60 77 63 20 |st 2906 |-ne `wc |
|00002fe0| 2d 63 20 3c 27 4d 41 4e | 49 46 45 53 54 27 60 3b |-c <'MAN|IFEST'`;|
|00002ff0| 20 74 68 65 6e 0a 20 20 | 20 20 65 63 68 6f 20 73 | then. | echo s|
|00003000| 68 61 72 3a 20 5c 22 27 | 4d 41 4e 49 46 45 53 54 |har: \"'|MANIFEST|
|00003010| 27 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |'\" unpa|cked wit|
|00003020| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 0a 20 20 |h wrong |size!. |
|00003030| 66 69 0a 20 20 23 20 65 | 6e 64 20 6f 66 20 27 4d |fi. # e|nd of 'M|
|00003040| 41 4e 49 46 45 53 54 27 | 0a 66 69 0a 69 66 20 74 |ANIFEST'|.fi.if t|
|00003050| 65 73 74 20 2d 66 20 27 | 46 49 4c 45 53 27 20 2d |est -f '|FILES' -|
|00003060| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|00003070| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|00003080| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 63 |shar: Wi|ll not c|
|00003090| 6c 6f 62 62 65 72 20 65 | 78 69 73 74 69 6e 67 20 |lobber e|xisting |
|000030a0| 66 69 6c 65 20 5c 22 27 | 46 49 4c 45 53 27 5c 22 |file \"'|FILES'\"|
|000030b0| 0a 65 6c 73 65 0a 20 20 | 65 63 68 6f 20 73 68 61 |.else. |echo sha|
|000030c0| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|000030d0| 27 46 49 4c 45 53 27 5c | 22 20 5c 28 31 30 35 32 |'FILES'\|" \(1052|
|000030e0| 20 63 68 61 72 61 63 74 | 65 72 73 5c 29 0a 20 20 | charact|ers\). |
|000030f0| 73 65 64 20 22 73 2f 5e | 58 2f 2f 22 20 3e 27 46 |sed "s/^|X//" >'F|
|00003100| 49 4c 45 53 27 20 3c 3c | 27 45 4e 44 5f 4f 46 5f |ILES' <<|'END_OF_|
|00003110| 46 49 4c 45 27 0a 58 43 | 48 41 4e 47 45 53 0a 58 |FILE'.XC|HANGES.X|
|00003120| 52 45 41 44 4d 45 0a 58 | 46 49 4c 45 53 0a 58 43 |README.X|FILES.XC|
|00003130| 4f 50 59 52 49 47 48 54 | 0a 58 4d 41 4e 49 46 45 |OPYRIGHT|.XMANIFE|
|00003140| 53 54 0a 58 49 4e 53 54 | 41 4c 4c 0a 58 49 4e 53 |ST.XINST|ALL.XINS|
|00003150| 54 41 4c 4c 52 45 41 44 | 41 42 4c 45 0a 58 54 45 |TALLREAD|ABLE.XTE|
|00003160| 53 54 53 0a 58 51 55 45 | 53 54 49 4f 4e 53 0a 58 |STS.XQUE|STIONS.X|
|00003170| 4d 61 6b 65 66 69 6c 65 | 0a 58 70 74 79 2e 31 0a |Makefile|.Xpty.1.|
|00003180| 58 63 6f 6e 66 69 67 2e | 68 0a 58 70 74 79 2e 68 |Xconfig.|h.Xpty.h|
|00003190| 0a 58 73 69 67 6c 65 72 | 2e 68 0a 58 6d 61 73 74 |.Xsigler|.h.Xmast|
|000031a0| 65 72 2e 68 0a 58 73 6c | 61 76 65 2e 68 0a 58 65 |er.h.Xsl|ave.h.Xe|
|000031b0| 72 72 2e 68 0a 58 74 74 | 79 2e 68 0a 58 67 65 74 |rr.h.Xtt|y.h.Xget|
|000031c0| 6f 70 74 2e 68 0a 58 74 | 65 78 74 73 2e 68 0a 58 |opt.h.Xt|exts.h.X|
|000031d0| 73 69 67 2e 68 0a 58 6c | 6f 67 73 2e 68 0a 58 66 |sig.h.Xl|ogs.h.Xf|
|000031e0| 69 6c 65 2e 68 0a 58 66 | 69 6c 65 2e 68 2e 6f 6c |ile.h.Xf|ile.h.ol|
|000031f0| 64 0a 58 66 69 6c 65 2e | 68 2e 6e 65 77 0a 58 73 |d.Xfile.|h.new.Xs|
|00003200| 6f 63 6b 2e 68 0a 58 6d | 69 73 63 2e 68 0a 58 70 |ock.h.Xm|isc.h.Xp|
|00003210| 74 79 2e 63 0a 58 73 69 | 67 6c 65 72 2e 63 0a 58 |ty.c.Xsi|gler.c.X|
|00003220| 6d 61 73 74 65 72 2e 63 | 0a 58 73 6c 61 76 65 2e |master.c|.Xslave.|
|00003230| 63 0a 58 65 72 72 2e 63 | 0a 58 74 74 79 2e 63 0a |c.Xerr.c|.Xtty.c.|
|00003240| 58 74 65 78 74 73 2e 63 | 0a 58 73 69 67 2e 63 0a |Xtexts.c|.Xsig.c.|
|00003250| 58 67 6c 6f 62 61 6c 73 | 2e 63 0a 58 6c 6f 67 73 |Xglobals|.c.Xlogs|
|00003260| 2e 63 0a 58 73 6f 63 6b | 2e 63 0a 58 6d 69 73 63 |.c.Xsock|.c.Xmisc|
|00003270| 2e 63 0a 58 70 61 74 63 | 68 0a 58 70 61 74 63 68 |.c.Xpatc|h.Xpatch|
|00003280| 2f 52 45 41 44 4d 45 0a | 58 70 61 74 63 68 2f 54 |/README.|Xpatch/T|
|00003290| 45 4c 4e 45 54 2e 46 54 | 50 0a 58 70 61 74 63 68 |ELNET.FT|P.Xpatch|
|000032a0| 2f 4d 61 6b 65 66 69 6c | 65 0a 58 70 61 74 63 68 |/Makefil|e.Xpatch|
|000032b0| 2f 74 65 6c 6e 65 74 64 | 2e 39 30 2e 30 36 2e 32 |/telnetd|.90.06.2|
|000032c0| 38 2e 70 61 74 63 68 0a | 58 70 61 74 63 68 2f 69 |8.patch.|Xpatch/i|
|000032d0| 67 6e 74 74 2e 63 0a 58 | 75 74 69 6c 0a 58 75 74 |gntt.c.X|util.Xut|
|000032e0| 69 6c 2f 4d 61 6b 65 66 | 69 6c 65 0a 58 75 74 69 |il/Makef|ile.Xuti|
|000032f0| 6c 2f 62 69 66 66 2e 31 | 0a 58 75 74 69 6c 2f 62 |l/biff.1|.Xutil/b|
|00003300| 69 66 66 2e 63 0a 58 75 | 74 69 6c 2f 63 6f 6e 64 |iff.c.Xu|til/cond|
|00003310| 6f 6d 0a 58 75 74 69 6c | 2f 63 6f 6e 64 6f 6d 2e |om.Xutil|/condom.|
|00003320| 31 0a 58 75 74 69 6c 2f | 64 69 73 63 6f 6e 6e 65 |1.Xutil/|disconne|
|00003330| 63 74 2e 31 0a 58 75 74 | 69 6c 2f 64 69 73 63 6f |ct.1.Xut|il/disco|
|00003340| 6e 6e 65 63 74 2e 63 0a | 58 75 74 69 6c 2f 65 78 |nnect.c.|Xutil/ex|
|00003350| 63 6c 6f 66 66 2e 31 0a | 58 75 74 69 6c 2f 65 78 |cloff.1.|Xutil/ex|
|00003360| 63 6c 6f 66 66 2e 63 0a | 58 75 74 69 6c 2f 65 78 |cloff.c.|Xutil/ex|
|00003370| 63 6c 6f 6e 2e 31 0a 58 | 75 74 69 6c 2f 65 78 63 |clon.1.X|util/exc|
|00003380| 6c 6f 6e 2e 63 0a 58 75 | 74 69 6c 2f 6c 6f 63 6b |lon.c.Xu|til/lock|
|00003390| 2e 31 0a 58 75 74 69 6c | 2f 6c 6f 63 6b 2e 63 0a |.1.Xutil|/lock.c.|
|000033a0| 58 75 74 69 6c 2f 6d 65 | 73 67 2e 31 0a 58 75 74 |Xutil/me|sg.1.Xut|
|000033b0| 69 6c 2f 6d 65 73 67 2e | 63 0a 58 75 74 69 6c 2f |il/mesg.|c.Xutil/|
|000033c0| 72 65 63 6f 6e 6e 65 63 | 74 2e 31 0a 58 75 74 69 |reconnec|t.1.Xuti|
|000033d0| 6c 2f 72 65 63 6f 6e 6e | 65 63 74 2e 63 0a 58 75 |l/reconn|ect.c.Xu|
|000033e0| 74 69 6c 2f 73 63 72 69 | 70 74 0a 58 75 74 69 6c |til/scri|pt.Xutil|
|000033f0| 2f 73 63 72 69 70 74 2e | 31 0a 58 75 74 69 6c 2f |/script.|1.Xutil/|
|00003400| 73 63 72 69 70 74 2e 74 | 69 64 79 0a 58 75 74 69 |script.t|idy.Xuti|
|00003410| 6c 2f 73 63 72 69 70 74 | 2e 74 69 64 79 2e 31 0a |l/script|.tidy.1.|
|00003420| 58 75 74 69 6c 2f 73 65 | 73 73 0a 58 75 74 69 6c |Xutil/se|ss.Xutil|
|00003430| 2f 73 65 73 73 2e 31 0a | 58 75 74 69 6c 2f 73 65 |/sess.1.|Xutil/se|
|00003440| 73 73 6b 69 6c 6c 2e 31 | 0a 58 75 74 69 6c 2f 73 |sskill.1|.Xutil/s|
|00003450| 65 73 73 6b 69 6c 6c 2e | 63 0a 58 75 74 69 6c 2f |esskill.|c.Xutil/|
|00003460| 73 65 73 73 6c 69 73 74 | 2e 31 0a 58 75 74 69 6c |sesslist|.1.Xutil|
|00003470| 2f 73 65 73 73 6c 69 73 | 74 2e 63 0a 58 75 74 69 |/sesslis|t.c.Xuti|
|00003480| 6c 2f 73 65 73 73 6e 61 | 6d 65 2e 31 0a 58 75 74 |l/sessna|me.1.Xut|
|00003490| 69 6c 2f 73 65 73 73 6e | 61 6d 65 2e 63 0a 58 75 |il/sessn|ame.c.Xu|
|000034a0| 74 69 6c 2f 73 65 73 73 | 75 73 65 72 2e 31 0a 58 |til/sess|user.1.X|
|000034b0| 75 74 69 6c 2f 73 65 73 | 73 75 73 65 72 2e 63 0a |util/ses|suser.c.|
|000034c0| 58 75 74 69 6c 2f 73 65 | 73 73 75 74 69 6c 2e 63 |Xutil/se|ssutil.c|
|000034d0| 0a 58 75 74 69 6c 2f 73 | 65 73 73 75 74 69 6c 2e |.Xutil/s|essutil.|
|000034e0| 68 0a 58 75 74 69 6c 2f | 74 69 6f 63 73 74 69 2e |h.Xutil/|tiocsti.|
|000034f0| 31 0a 58 75 74 69 6c 2f | 74 69 6f 63 73 74 69 2e |1.Xutil/|tiocsti.|
|00003500| 63 0a 58 75 74 69 6c 2f | 74 74 79 2e 31 0a 58 75 |c.Xutil/|tty.1.Xu|
|00003510| 74 69 6c 2f 74 74 79 2e | 63 0a 58 75 74 69 6c 2f |til/tty.|c.Xutil/|
|00003520| 75 2e 31 0a 58 75 74 69 | 6c 2f 75 2e 63 0a 58 75 |u.1.Xuti|l/u.c.Xu|
|00003530| 74 69 6c 2f 77 61 6c 6c | 2e 31 0a 58 75 74 69 6c |til/wall|.1.Xutil|
|00003540| 2f 77 61 6c 6c 2e 63 0a | 58 75 74 69 6c 2f 77 68 |/wall.c.|Xutil/wh|
|00003550| 6f 2e 31 0a 58 75 74 69 | 6c 2f 77 68 6f 2e 63 0a |o.1.Xuti|l/who.c.|
|00003560| 58 75 74 69 6c 2f 77 72 | 69 74 65 2e 31 0a 58 75 |Xutil/wr|ite.1.Xu|
|00003570| 74 69 6c 2f 77 72 69 74 | 65 2e 63 0a 58 75 74 69 |til/writ|e.c.Xuti|
|00003580| 6c 2f 78 73 65 73 73 75 | 74 69 6c 2e 63 0a 45 4e |l/xsessu|til.c.EN|
|00003590| 44 5f 4f 46 5f 46 49 4c | 45 0a 20 20 69 66 20 74 |D_OF_FIL|E. if t|
|000035a0| 65 73 74 20 31 30 35 32 | 20 2d 6e 65 20 60 77 63 |est 1052| -ne `wc|
|000035b0| 20 2d 63 20 3c 27 46 49 | 4c 45 53 27 60 3b 20 74 | -c <'FI|LES'`; t|
|000035c0| 68 65 6e 0a 20 20 20 20 | 65 63 68 6f 20 73 68 61 |hen. |echo sha|
|000035d0| 72 3a 20 5c 22 27 46 49 | 4c 45 53 27 5c 22 20 75 |r: \"'FI|LES'\" u|
|000035e0| 6e 70 61 63 6b 65 64 20 | 77 69 74 68 20 77 72 6f |npacked |with wro|
|000035f0| 6e 67 20 73 69 7a 65 21 | 0a 20 20 66 69 0a 20 20 |ng size!|. fi. |
|00003600| 23 20 65 6e 64 20 6f 66 | 20 27 46 49 4c 45 53 27 |# end of| 'FILES'|
|00003610| 0a 66 69 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |.fi.if t|est -f '|
|00003620| 49 4e 53 54 41 4c 4c 27 | 20 2d 61 20 22 24 7b 31 |INSTALL'| -a "${1|
|00003630| 7d 22 20 21 3d 20 22 2d | 63 22 20 3b 20 74 68 65 |}" != "-|c" ; the|
|00003640| 6e 20 0a 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |n . ech|o shar: |
|00003650| 57 69 6c 6c 20 6e 6f 74 | 20 63 6c 6f 62 62 65 72 |Will not| clobber|
|00003660| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 5c | existin|g file \|
|00003670| 22 27 49 4e 53 54 41 4c | 4c 27 5c 22 0a 65 6c 73 |"'INSTAL|L'\".els|
|00003680| 65 0a 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 45 |e. echo| shar: E|
|00003690| 78 74 72 61 63 74 69 6e | 67 20 5c 22 27 49 4e 53 |xtractin|g \"'INS|
|000036a0| 54 41 4c 4c 27 5c 22 20 | 5c 28 32 35 32 34 32 20 |TALL'\" |\(25242 |
|000036b0| 63 68 61 72 61 63 74 65 | 72 73 5c 29 0a 20 20 73 |characte|rs\). s|
|000036c0| 65 64 20 22 73 2f 5e 58 | 2f 2f 22 20 3e 27 49 4e |ed "s/^X|//" >'IN|
|000036d0| 53 54 41 4c 4c 27 20 3c | 3c 27 45 4e 44 5f 4f 46 |STALL' <|<'END_OF|
|000036e0| 5f 46 49 4c 45 27 0a 58 | 23 21 2f 62 69 6e 2f 73 |_FILE'.X|#!/bin/s|
|000036f0| 68 0a 58 23 20 54 68 69 | 73 20 69 73 20 61 20 73 |h.X# Thi|s is a s|
|00003700| 68 65 6c 6c 20 73 63 72 | 69 70 74 2e 20 46 65 65 |hell scr|ipt. Fee|
|00003710| 64 20 69 74 20 74 6f 20 | 73 68 2e 0a 58 65 63 68 |d it to |sh..Xech|
|00003720| 6f 20 27 0a 58 48 69 2c | 20 61 6e 64 20 77 65 6c |o '.XHi,| and wel|
|00003730| 63 6f 6d 65 20 74 6f 20 | 74 68 65 20 70 74 79 20 |come to |the pty |
|00003740| 69 6e 73 74 61 6c 6c 20 | 73 63 72 69 70 74 2e 0a |install |script..|
|00003750| 58 70 74 79 20 69 73 20 | 61 20 70 72 6f 67 72 61 |Xpty is |a progra|
|00003760| 6d 20 66 6f 72 20 6d 61 | 6e 61 67 69 6e 67 20 70 |m for ma|naging p|
|00003770| 73 65 75 64 6f 2d 74 65 | 72 6d 69 6e 61 6c 73 2e |seudo-te|rminals.|
|00003780| 0a 58 0a 58 49 27 5c 27 | 27 6d 20 6e 6f 74 20 61 |.X.XI'\'|'m not a|
|00003790| 63 74 75 61 6c 6c 79 20 | 67 6f 69 6e 67 20 74 6f |ctually |going to|
|000037a0| 20 69 6e 73 74 61 6c 6c | 20 61 6e 79 74 68 69 6e | install| anythin|
|000037b0| 67 2e 0a 58 49 27 5c 27 | 27 6c 6c 20 6a 75 73 74 |g..XI'\'|'ll just|
|000037c0| 20 67 75 69 64 65 20 79 | 6f 75 20 74 68 72 6f 75 | guide y|ou throu|
|000037d0| 67 68 20 77 68 61 74 20 | 68 61 73 20 74 6f 20 62 |gh what |has to b|
|000037e0| 65 20 64 6f 6e 65 2c 0a | 58 66 72 6f 6d 20 63 6f |e done,.|Xfrom co|
|000037f0| 6d 70 69 6c 69 6e 67 20 | 74 68 72 6f 75 67 68 20 |mpiling |through |
|00003800| 69 6e 73 74 61 6c 6c 61 | 74 69 6f 6e 2e 0a 58 0a |installa|tion..X.|
|00003810| 58 4f 6e 65 20 61 64 76 | 61 6e 74 61 67 65 20 6f |XOne adv|antage o|
|00003820| 66 20 74 68 69 73 20 68 | 61 6e 64 73 2d 6f 66 66 |f this h|ands-off|
|00003830| 20 70 68 69 6c 6f 73 6f | 70 68 79 20 69 73 20 74 | philoso|phy is t|
|00003840| 68 61 74 0a 58 79 6f 75 | 20 63 61 6e 20 6b 69 6c |hat.Xyou| can kil|
|00003850| 6c 20 61 6e 64 20 72 65 | 73 74 61 72 74 20 74 68 |l and re|start th|
|00003860| 69 73 20 73 63 72 69 70 | 74 20 61 74 20 61 6e 79 |is scrip|t at any|
|00003870| 20 74 69 6d 65 2e 0a 58 | 59 6f 75 20 6d 61 79 20 | time..X|You may |
|00003880| 70 72 65 66 65 72 20 74 | 6f 20 72 65 61 64 20 74 |prefer t|o read t|
|00003890| 68 72 6f 75 67 68 20 49 | 4e 53 54 41 4c 4c 52 45 |hrough I|NSTALLRE|
|000038a0| 41 44 41 42 4c 45 2c 0a | 58 77 68 69 63 68 20 68 |ADABLE,.|Xwhich h|
|000038b0| 61 73 20 74 68 65 20 73 | 61 6d 65 20 69 6e 66 6f |as the s|ame info|
|000038c0| 72 6d 61 74 69 6f 6e 2e | 0a 58 0a 58 49 6e 20 74 |rmation.|.X.XIn t|
|000038d0| 68 65 20 66 69 72 73 74 | 20 70 61 72 74 20 6f 66 |he first| part of|
|000038e0| 20 74 68 69 73 20 73 63 | 72 69 70 74 2c 20 49 27 | this sc|ript, I'|
|000038f0| 5c 27 27 6c 6c 20 6c 65 | 61 64 20 79 6f 75 20 74 |\''ll le|ad you t|
|00003900| 68 72 6f 75 67 68 20 63 | 6f 6e 66 69 67 75 72 61 |hrough c|onfigura|
|00003910| 74 69 6f 6e 2e 0a 58 46 | 6f 72 20 74 68 65 20 6d |tion..XF|or the m|
|00003920| 6f 6d 65 6e 74 2c 20 64 | 6f 6e 27 5c 27 27 74 20 |oment, d|on'\''t |
|00003930| 61 63 74 75 61 6c 6c 79 | 20 63 68 61 6e 67 65 20 |actually| change |
|00003940| 61 6e 79 74 68 69 6e 67 | 20 69 6e 20 79 6f 75 72 |anything| in your|
|00003950| 20 73 79 73 74 65 6d 2e | 20 4a 75 73 74 0a 58 61 | system.| Just.Xa|
|00003960| 6c 74 65 72 6e 61 74 65 | 20 62 65 74 77 65 65 6e |lternate| between|
|00003970| 20 72 65 61 64 69 6e 67 | 20 74 68 69 73 20 73 63 | reading| this sc|
|00003980| 72 69 70 74 20 61 6e 64 | 20 66 6f 6f 6c 69 6e 67 |ript and| fooling|
|00003990| 20 61 72 6f 75 6e 64 20 | 77 69 74 68 20 74 68 65 | around |with the|
|000039a0| 0a 58 4d 61 6b 65 66 69 | 6c 65 2c 20 61 6e 64 20 |.XMakefi|le, and |
|000039b0| 49 27 5c 27 27 6c 6c 20 | 72 65 6d 69 6e 64 20 79 |I'\''ll |remind y|
|000039c0| 6f 75 20 6c 61 74 65 72 | 2c 20 61 66 74 65 72 20 |ou later|, after |
|000039d0| 63 6f 6d 70 69 6c 61 74 | 69 6f 6e 2c 20 6f 66 20 |compilat|ion, of |
|000039e0| 77 68 61 74 20 68 61 73 | 0a 58 74 6f 20 62 65 20 |what has|.Xto be |
|000039f0| 63 68 61 6e 67 65 64 20 | 65 6c 73 65 77 68 65 72 |changed |elsewher|
|00003a00| 65 2e 0a 58 0a 58 49 20 | 6e 65 65 64 20 74 68 65 |e..X.XI |need the|
|00003a10| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 70 72 6f 67 72 | followi|ng progr|
|00003a20| 61 6d 73 3a 20 65 63 68 | 6f 2c 20 74 72 20 5b 2d |ams: ech|o, tr [-|
|00003a30| 64 5d 2c 20 6d 61 6e 2c | 20 73 65 64 20 5b 2d 6e |d], man,| sed [-n|
|00003a40| 5d 2c 20 67 72 65 70 2c | 20 74 65 73 74 2e 0a 58 |], grep,| test..X|
|00003a50| 27 0a 58 0a 58 65 63 68 | 6f 20 27 2d 2d 2d 2d 2d |'.X.Xech|o '-----|
|00003a60| 20 50 72 65 73 73 20 72 | 65 74 75 72 6e 20 74 6f | Press r|eturn to|
|00003a70| 20 63 6f 6e 74 69 6e 75 | 65 2e 20 27 20 7c 20 74 | continu|e. ' | t|
|00003a80| 72 20 2d 64 20 27 5c 30 | 31 32 27 3b 20 72 65 61 |r -d '\0|12'; rea|
|00003a90| 64 20 63 6f 6e 74 6c 69 | 6e 65 0a 58 0a 58 65 63 |d contli|ne.X.Xec|
|00003aa0| 68 6f 20 27 0a 58 54 68 | 65 20 66 69 72 73 74 20 |ho '.XTh|e first |
|00003ab0| 76 65 72 73 69 6f 6e 73 | 20 6f 66 20 70 74 79 20 |versions| of pty |
|00003ac0| 77 65 72 65 20 64 65 73 | 69 67 6e 65 64 20 6f 6e |were des|igned on|
|00003ad0| 20 61 20 42 53 44 20 34 | 2e 32 2d 62 61 73 65 64 | a BSD 4|.2-based|
|00003ae0| 20 73 79 73 74 65 6d 2e | 0a 58 44 75 72 69 6e 67 | system.|.XDuring|
|00003af0| 20 4d 61 79 20 31 39 39 | 30 20 70 74 79 20 33 2e | May 199|0 pty 3.|
|00003b00| 30 20 77 61 73 20 77 72 | 69 74 74 65 6e 20 63 6f |0 was wr|itten co|
|00003b10| 6d 70 6c 65 74 65 6c 79 | 20 66 72 6f 6d 20 73 63 |mpletely| from sc|
|00003b20| 72 61 74 63 68 2c 0a 58 | 6f 6e 20 61 20 42 53 44 |ratch,.X|on a BSD|
|00003b30| 20 34 2e 33 2d 62 61 73 | 65 64 20 73 79 73 74 65 | 4.3-bas|ed syste|
|00003b40| 6d 2e 20 49 74 20 68 61 | 73 20 62 65 65 6e 20 74 |m. It ha|s been t|
|00003b50| 68 6f 72 6f 75 67 68 6c | 79 20 74 65 73 74 65 64 |horoughl|y tested|
|00003b60| 20 6f 6e 0a 58 73 65 76 | 65 72 61 6c 20 42 53 44 | on.Xsev|eral BSD|
|00003b70| 20 34 2e 33 2d 62 61 73 | 65 64 20 73 79 73 74 65 | 4.3-bas|ed syste|
|00003b80| 6d 73 2c 20 74 65 73 74 | 65 64 20 77 69 74 68 20 |ms, test|ed with |
|00003b90| 61 20 66 65 77 20 4d 61 | 6b 65 66 69 6c 65 20 63 |a few Ma|kefile c|
|00003ba0| 68 61 6e 67 65 73 0a 58 | 6f 6e 20 73 65 76 65 72 |hanges.X|on sever|
|00003bb0| 61 6c 20 42 53 44 20 34 | 2e 32 2d 62 61 73 65 64 |al BSD 4|.2-based|
|00003bc0| 20 73 79 73 74 65 6d 73 | 2c 20 61 6e 64 20 72 75 | systems|, and ru|
|00003bd0| 6e 20 6f 6e 20 61 74 20 | 6c 65 61 73 74 20 6f 6e |n on at |least on|
|00003be0| 65 20 6d 75 74 61 6e 74 | 2e 0a 58 0a 58 49 66 20 |e mutant|..X.XIf |
|00003bf0| 79 6f 75 20 6d 61 6b 65 | 20 69 74 20 74 68 72 6f |you make| it thro|
|00003c00| 75 67 68 20 69 6e 73 74 | 61 6c 6c 61 74 69 6f 6e |ugh inst|allation|
|00003c10| 20 61 6e 64 20 74 65 73 | 74 69 6e 67 20 61 6e 64 | and tes|ting and|
|00003c20| 20 67 65 74 20 70 74 79 | 20 72 75 6e 6e 69 6e 67 | get pty| running|
|00003c30| 2c 0a 58 70 6c 65 61 73 | 65 20 73 65 6e 64 20 61 |,.Xpleas|e send a|
|00003c40| 20 6e 6f 74 65 20 74 6f | 20 74 68 65 20 61 75 74 | note to| the aut|
|00003c50| 68 6f 72 2c 20 44 61 6e | 20 42 65 72 6e 73 74 65 |hor, Dan| Bernste|
|00003c60| 69 6e 2c 20 6f 6e 20 74 | 68 65 20 49 6e 74 65 72 |in, on t|he Inter|
|00003c70| 6e 65 74 0a 58 61 74 20 | 62 72 6e 73 74 6e 64 40 |net.Xat |brnstnd@|
|00003c80| 6e 79 75 2e 65 64 75 2e | 20 4c 65 74 20 68 69 6d |nyu.edu.| Let him|
|00003c90| 20 6b 6e 6f 77 20 79 6f | 75 72 20 63 6f 6d 70 75 | know yo|ur compu|
|00003ca0| 74 65 72 20 6d 6f 64 65 | 6c 2c 20 4f 53 20 76 65 |ter mode|l, OS ve|
|00003cb0| 72 73 69 6f 6e 2c 20 61 | 6e 64 0a 58 77 68 61 74 |rsion, a|nd.Xwhat|
|00003cc0| 20 63 68 61 6e 67 65 73 | 20 79 6f 75 20 68 61 64 | changes| you had|
|00003cd0| 20 74 6f 20 6d 61 6b 65 | 2e 20 49 66 20 79 6f 75 | to make|. If you|
|00003ce0| 20 68 61 76 65 20 61 6e | 79 20 74 72 6f 75 62 6c | have an|y troubl|
|00003cf0| 65 2c 20 70 6c 65 61 73 | 65 20 61 6c 73 6f 20 67 |e, pleas|e also g|
|00003d00| 65 74 0a 58 69 6e 20 74 | 6f 75 63 68 20 77 69 74 |et.Xin t|ouch wit|
|00003d10| 68 20 74 68 65 20 61 75 | 74 68 6f 72 2e 20 49 66 |h the au|thor. If|
|00003d20| 20 79 6f 75 20 68 61 76 | 65 20 61 20 64 69 66 66 | you hav|e a diff|
|00003d30| 65 72 65 6e 74 20 6b 69 | 6e 64 20 6f 66 20 73 79 |erent ki|nd of sy|
|00003d40| 73 74 65 6d 20 77 69 74 | 68 0a 58 70 73 65 75 64 |stem wit|h.Xpseud|
|00003d50| 6f 2d 74 65 72 6d 69 6e | 61 6c 20 73 75 70 70 6f |o-termin|al suppo|
|00003d60| 72 74 20 74 68 61 74 20 | 63 6f 75 6c 64 20 75 73 |rt that |could us|
|00003d70| 65 20 61 20 70 74 79 20 | 70 6f 72 74 2c 20 74 68 |e a pty |port, th|
|00003d80| 65 20 61 75 74 68 6f 72 | 20 77 6f 75 6c 64 0a 58 |e author| would.X|
|00003d90| 6c 6f 76 65 20 74 6f 20 | 68 65 61 72 20 61 62 6f |love to |hear abo|
|00003da0| 75 74 20 69 74 2e 0a 58 | 0a 58 4f 6e 65 20 6e 6f |ut it..X|.XOne no|
|00003db0| 74 65 3a 20 4c 69 6b 65 | 20 61 6c 6c 20 73 6f 66 |te: Like| all sof|
|00003dc0| 74 77 61 72 65 2c 20 70 | 74 79 20 63 6f 6d 65 73 |tware, p|ty comes|
|00003dd0| 20 77 69 74 68 6f 75 74 | 20 77 61 72 72 61 6e 74 | without| warrant|
|00003de0| 79 2c 20 74 6f 20 74 68 | 65 20 65 78 74 65 6e 74 |y, to th|e extent|
|00003df0| 0a 58 70 65 72 6d 69 74 | 74 65 64 20 62 79 20 61 |.Xpermit|ted by a|
|00003e00| 70 70 6c 69 63 61 62 6c | 65 20 6c 61 77 2e 20 55 |pplicabl|e law. U|
|00003e10| 73 65 20 69 74 20 61 74 | 20 79 6f 75 72 20 6f 77 |se it at| your ow|
|00003e20| 6e 20 72 69 73 6b 2e 0a | 58 27 0a 58 0a 58 65 63 |n risk..|X'.X.Xec|
|00003e30| 68 6f 20 27 2d 2d 2d 2d | 2d 20 50 72 65 73 73 20 |ho '----|- Press |
|00003e40| 72 65 74 75 72 6e 20 74 | 6f 20 63 6f 6e 74 69 6e |return t|o contin|
|00003e50| 75 65 2e 20 27 20 7c 20 | 74 72 20 2d 64 20 27 5c |ue. ' | |tr -d '\|
|00003e60| 30 31 32 27 3b 20 72 65 | 61 64 20 63 6f 6e 74 6c |012'; re|ad contl|
|00003e70| 69 6e 65 0a 58 0a 58 65 | 63 68 6f 20 27 0a 58 49 |ine.X.Xe|cho '.XI|
|00003e80| 20 61 73 73 75 6d 65 20 | 74 68 61 74 20 79 6f 75 | assume |that you|
|00003e90| 20 64 6f 6e 27 5c 27 27 | 74 20 77 61 6e 74 20 74 | don'\''|t want t|
|00003ea0| 6f 20 6d 61 6b 65 20 61 | 6e 79 20 6d 61 6a 6f 72 |o make a|ny major|
|00003eb0| 20 63 68 61 6e 67 65 73 | 0a 58 74 6f 20 79 6f 75 | changes|.Xto you|
|00003ec0| 72 20 63 6f 6d 70 75 74 | 65 72 20 6a 75 73 74 20 |r comput|er just |
|00003ed0| 74 6f 20 74 61 6b 65 20 | 61 64 76 61 6e 74 61 67 |to take |advantag|
|00003ee0| 65 20 6f 66 20 70 74 79 | 27 5c 27 27 73 20 63 61 |e of pty|'\''s ca|
|00003ef0| 70 61 62 69 6c 69 74 69 | 65 73 2e 0a 58 59 6f 75 |pabiliti|es..XYou|
|00003f00| 20 6d 69 67 68 74 20 6e | 6f 74 20 65 76 65 6e 20 | might n|ot even |
|00003f10| 68 61 76 65 20 61 20 70 | 72 69 76 69 6c 65 67 65 |have a p|rivilege|
|00003f20| 64 20 61 63 63 6f 75 6e | 74 2c 20 66 6f 72 20 61 |d accoun|t, for a|
|00003f30| 6c 6c 20 49 20 6b 6e 6f | 77 2e 0a 58 0a 58 54 68 |ll I kno|w..X.XTh|
|00003f40| 65 20 66 69 72 73 74 20 | 6d 61 6a 6f 72 20 64 65 |e first |major de|
|00003f50| 63 69 73 69 6f 6e 20 79 | 6f 75 20 68 61 76 65 20 |cision y|ou have |
|00003f60| 74 6f 20 6d 61 6b 65 20 | 69 73 20 77 68 61 74 20 |to make |is what |
|00003f70| 70 72 69 76 69 6c 65 67 | 65 73 20 74 6f 20 67 69 |privileg|es to gi|
|00003f80| 76 65 20 70 74 79 2e 0a | 58 4f 62 76 69 6f 75 73 |ve pty..|XObvious|
|00003f90| 6c 79 20 69 66 20 79 6f | 75 20 64 6f 6e 27 5c 27 |ly if yo|u don'\'|
|00003fa0| 27 74 20 68 61 76 65 20 | 70 72 69 76 69 6c 65 67 |'t have |privileg|
|00003fb0| 65 73 20 74 68 65 6e 20 | 70 74 79 20 77 6f 6e 27 |es then |pty won'|
|00003fc0| 5c 27 27 74 20 65 69 74 | 68 65 72 3b 0a 58 74 68 |\''t eit|her;.Xth|
|00003fd0| 69 73 20 69 73 20 43 61 | 73 65 20 55 4e 2e 0a 58 |is is Ca|se UN..X|
|00003fe0| 27 0a 58 0a 58 65 63 68 | 6f 20 27 2d 2d 2d 2d 2d |'.X.Xech|o '-----|
|00003ff0| 20 50 72 65 73 73 20 72 | 65 74 75 72 6e 20 74 6f | Press r|eturn to|
|00004000| 20 63 6f 6e 74 69 6e 75 | 65 2e 20 27 20 7c 20 74 | continu|e. ' | t|
|00004010| 72 20 2d 64 20 27 5c 30 | 31 32 27 3b 20 72 65 61 |r -d '\0|12'; rea|
|00004020| 64 20 63 6f 6e 74 6c 69 | 6e 65 0a 58 0a 58 65 63 |d contli|ne.X.Xec|
|00004030| 68 6f 20 27 0a 58 54 68 | 65 72 65 20 61 72 65 20 |ho '.XTh|ere are |
|00004040| 73 65 76 65 72 61 6c 20 | 67 6f 6f 64 20 72 65 61 |several |good rea|
|00004050| 73 6f 6e 73 20 66 6f 72 | 20 67 69 76 69 6e 67 20 |sons for| giving |
|00004060| 70 72 6f 67 72 61 6d 73 | 20 70 72 69 76 69 6c 65 |programs| privile|
|00004070| 67 65 73 2e 0a 58 4d 6f | 73 74 20 69 6d 70 6f 72 |ges..XMo|st impor|
|00004080| 74 61 6e 74 6c 79 2c 20 | 70 72 69 76 69 6c 65 67 |tantly, |privileg|
|00004090| 65 64 20 70 72 6f 67 72 | 61 6d 73 20 63 61 6e 20 |ed progr|ams can |
|000040a0| 70 72 65 63 69 73 65 6c | 79 20 63 6f 6e 74 72 6f |precisel|y contro|
|000040b0| 6c 20 61 63 63 65 73 73 | 0a 58 74 6f 20 61 20 73 |l access|.Xto a s|
|000040c0| 68 61 72 65 64 20 72 65 | 73 6f 75 72 63 65 2e 20 |hared re|source. |
|000040d0| 70 74 79 20 73 75 70 70 | 6f 72 74 73 20 61 6e 20 |pty supp|orts an |
|000040e0| 69 6e 74 65 72 61 63 74 | 69 76 65 20 75 73 65 72 |interact|ive user|
|000040f0| 20 6c 69 73 74 20 69 6e | 0a 58 2f 65 74 63 2f 75 | list in|.X/etc/u|
|00004100| 74 6d 70 2c 20 61 20 6c | 6f 67 69 6e 2d 6c 6f 67 |tmp, a l|ogin-log|
|00004110| 6f 75 74 20 72 65 63 6f | 72 64 20 69 6e 20 2f 75 |out reco|rd in /u|
|00004120| 73 72 2f 61 64 6d 2f 77 | 74 6d 70 2c 20 61 6e 64 |sr/adm/w|tmp, and|
|00004130| 20 63 6f 6e 74 72 6f 6c | 6c 65 64 0a 58 61 63 63 | control|led.Xacc|
|00004140| 65 73 73 20 74 6f 20 74 | 68 65 20 70 73 65 75 64 |ess to t|he pseud|
|00004150| 6f 2d 74 65 72 6d 69 6e | 61 6c 20 66 69 6c 65 73 |o-termin|al files|
|00004160| 20 74 68 65 6d 73 65 6c | 76 65 73 2c 20 69 6e 63 | themsel|ves, inc|
|00004170| 6c 75 64 69 6e 67 20 73 | 65 63 75 72 69 74 79 20 |luding s|ecurity |
|00004180| 61 6e 64 0a 58 6d 6f 64 | 65 20 63 68 61 6e 67 69 |and.Xmod|e changi|
|00004190| 6e 67 2e 20 4e 6f 6e 65 | 20 6f 66 20 74 68 65 73 |ng. None| of thes|
|000041a0| 65 20 61 72 65 20 70 6f | 73 73 69 62 6c 65 20 69 |e are po|ssible i|
|000041b0| 66 20 70 74 79 20 69 73 | 6e 27 5c 27 27 74 20 73 |f pty is|n'\''t s|
|000041c0| 65 74 75 69 64 2e 0a 58 | 0a 58 49 66 20 79 6f 75 |etuid..X|.XIf you|
|000041d0| 72 20 73 79 73 74 65 6d | 20 68 61 73 20 61 20 6c |r system| has a l|
|000041e0| 6f 74 20 6d 6f 72 65 20 | 74 74 79 20 73 65 63 75 |ot more |tty secu|
|000041f0| 72 69 74 79 20 74 68 61 | 6e 20 75 73 75 61 6c 2c |rity tha|n usual,|
|00004200| 20 79 6f 75 20 70 72 6f | 62 61 62 6c 79 0a 58 77 | you pro|bably.Xw|
|00004210| 6f 6e 27 5c 27 27 74 20 | 62 65 20 61 62 6c 65 20 |on'\''t |be able |
|00004220| 74 6f 20 72 75 6e 20 70 | 74 79 20 77 69 74 68 6f |to run p|ty witho|
|00004230| 75 74 20 70 72 69 76 69 | 6c 65 67 65 73 2e 20 28 |ut privi|leges. (|
|00004240| 48 6f 77 65 76 65 72 2c | 20 69 66 20 79 6f 75 72 |However,| if your|
|00004250| 20 73 79 73 74 65 6d 0a | 58 68 61 73 20 61 20 6c | system.|Xhas a l|
|00004260| 6f 74 20 6d 6f 72 65 20 | 74 74 79 20 73 65 63 75 |ot more |tty secu|
|00004270| 72 69 74 79 20 74 68 61 | 6e 20 75 73 75 61 6c 2c |rity tha|n usual,|
|00004280| 20 69 74 27 5c 27 27 73 | 20 61 6c 6d 6f 73 74 20 | it'\''s| almost |
|00004290| 63 65 72 74 61 69 6e 6c | 79 20 72 75 6e 6e 69 6e |certainl|y runnin|
|000042a0| 67 0a 58 70 74 79 20 61 | 6e 79 77 61 79 2e 29 0a |g.Xpty a|nyway.).|
|000042b0| 58 27 0a 58 0a 58 65 63 | 68 6f 20 27 2d 2d 2d 2d |X'.X.Xec|ho '----|
|000042c0| 2d 20 50 72 65 73 73 20 | 72 65 74 75 72 6e 20 74 |- Press |return t|
|000042d0| 6f 20 63 6f 6e 74 69 6e | 75 65 2e 20 27 20 7c 20 |o contin|ue. ' | |
|000042e0| 74 72 20 2d 64 20 27 5c | 30 31 32 27 3b 20 72 65 |tr -d '\|012'; re|
|000042f0| 61 64 20 63 6f 6e 74 6c | 69 6e 65 0a 58 0a 58 65 |ad contl|ine.X.Xe|
|00004300| 63 68 6f 20 27 0a 58 49 | 66 20 79 6f 75 20 64 6f |cho '.XI|f you do|
|00004310| 20 77 61 6e 74 20 70 74 | 79 20 74 6f 20 68 61 76 | want pt|y to hav|
|00004320| 65 20 70 72 69 76 69 6c | 65 67 65 73 2c 20 79 6f |e privil|eges, yo|
|00004330| 75 20 68 61 76 65 20 74 | 6f 20 64 65 63 69 64 65 |u have t|o decide|
|00004340| 20 62 65 74 77 65 65 6e | 0a 58 73 65 74 74 69 6e | between|.Xsettin|
|00004350| 67 20 75 70 20 70 74 79 | 20 61 73 20 72 6f 6f 74 |g up pty| as root|
|00004360| 20 28 43 61 73 65 20 52 | 4f 4f 54 29 20 6f 72 20 | (Case R|OOT) or |
|00004370| 61 73 20 73 6f 6d 65 20 | 6f 74 68 65 72 20 75 73 |as some |other us|
|00004380| 65 72 2c 20 73 61 79 20 | 60 60 70 74 79 27 5c 27 |er, say |``pty'\'|
|00004390| 5c 27 27 0a 58 28 43 61 | 73 65 20 50 54 59 29 2e |\''.X(Ca|se PTY).|
|000043a0| 20 53 74 61 79 69 6e 67 | 20 61 77 61 79 20 66 72 | Staying| away fr|
|000043b0| 6f 6d 20 72 6f 6f 74 20 | 68 61 73 20 74 68 65 20 |om root |has the |
|000043c0| 61 64 76 61 6e 74 61 67 | 65 20 74 68 61 74 20 70 |advantag|e that p|
|000043d0| 72 6f 62 6c 65 6d 73 0a | 58 63 61 6e 27 5c 27 27 |roblems.|Xcan'\''|
|000043e0| 74 20 70 6f 73 73 69 62 | 6c 79 20 64 65 73 74 72 |t possib|ly destr|
|000043f0| 6f 79 20 61 6c 6c 20 73 | 65 63 75 72 69 74 79 20 |oy all s|ecurity |
|00004400| 69 6e 20 6f 6e 65 20 62 | 6c 6f 77 2e 20 48 6f 77 |in one b|low. How|
|00004410| 65 76 65 72 2c 20 72 6f | 6f 74 20 68 61 73 0a 58 |ever, ro|ot has.X|
|00004420| 73 65 76 65 72 61 6c 20 | 61 64 76 61 6e 74 61 67 |several |advantag|
|00004430| 65 73 2c 20 6d 61 69 6e | 6c 79 20 62 65 63 61 75 |es, main|ly becau|
|00004440| 73 65 20 6f 66 20 42 53 | 44 20 6c 69 6d 69 74 61 |se of BS|D limita|
|00004450| 74 69 6f 6e 73 3a 20 31 | 2e 20 41 20 70 72 6f 63 |tions: 1|. A proc|
|00004460| 65 73 73 0a 58 63 61 6e | 27 5c 27 27 74 20 63 68 |ess.Xcan|'\''t ch|
|00004470| 61 6e 67 65 20 6f 77 6e | 65 72 73 68 69 70 20 6f |ange own|ership o|
|00004480| 66 20 61 20 66 69 6c 65 | 20 62 65 74 77 65 65 6e |f a file| between|
|00004490| 20 69 74 73 20 65 75 69 | 64 20 61 6e 64 20 75 69 | its eui|d and ui|
|000044a0| 64 2e 20 4f 6e 6c 79 20 | 72 6f 6f 74 0a 58 63 61 |d. Only |root.Xca|
|000044b0| 6e 20 63 68 61 6e 67 65 | 20 6f 77 6e 65 72 73 68 |n change| ownersh|
|000044c0| 69 70 2e 20 49 74 20 73 | 68 6f 75 6c 64 6e 27 5c |ip. It s|houldn'\|
|000044d0| 27 27 74 20 62 65 20 6e | 65 63 65 73 73 61 72 79 |''t be n|ecessary|
|000044e0| 20 74 6f 20 63 68 61 6e | 67 65 20 6f 77 6e 65 72 | to chan|ge owner|
|000044f0| 73 68 69 70 0a 58 6f 66 | 20 70 74 79 73 20 61 6e |ship.Xof| ptys an|
|00004500| 79 77 61 79 2c 20 62 75 | 74 20 74 68 61 74 27 5c |yway, bu|t that'\|
|00004510| 27 27 73 20 77 68 61 74 | 20 6d 61 6e 79 20 70 72 |''s what| many pr|
|00004520| 6f 67 72 61 6d 73 20 61 | 73 73 75 6d 65 2e 20 32 |ograms a|ssume. 2|
|00004530| 2e 20 4d 41 58 55 50 52 | 43 20 69 6e 0a 58 3c 73 |. MAXUPR|C in.X<s|
|00004540| 79 73 2f 70 61 72 61 6d | 2e 68 3e 20 6c 69 6d 69 |ys/param|.h> limi|
|00004550| 74 73 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |ts the n|umber of|
|00004560| 20 70 72 6f 63 65 73 73 | 65 73 20 75 6e 64 65 72 | process|es under|
|00004570| 20 61 20 67 69 76 65 6e | 20 2a 65 66 66 65 63 74 | a given| *effect|
|00004580| 69 76 65 2a 0a 58 75 69 | 64 2e 20 54 68 69 73 20 |ive*.Xui|d. This |
|00004590| 61 62 73 6f 6c 75 74 65 | 6c 79 20 69 64 69 6f 74 |absolute|ly idiot|
|000045a0| 69 63 20 62 65 68 61 76 | 69 6f 72 20 69 73 20 61 |ic behav|ior is a|
|000045b0| 20 73 65 72 69 6f 75 73 | 20 70 72 6f 62 6c 65 6d | serious| problem|
|000045c0| 20 66 6f 72 20 70 72 6f | 67 72 61 6d 73 0a 58 73 | for pro|grams.Xs|
|000045d0| 65 74 75 69 64 20 74 6f | 20 61 6e 79 74 68 69 6e |etuid to| anythin|
|000045e0| 67 20 6f 74 68 65 72 20 | 74 68 61 6e 20 72 6f 6f |g other |than roo|
|000045f0| 74 2e 20 70 74 79 20 74 | 72 69 65 73 20 74 6f 20 |t. pty t|ries to |
|00004600| 77 6f 72 6b 20 61 72 6f | 75 6e 64 20 74 68 69 73 |work aro|und this|
|00004610| 0a 58 70 72 6f 62 6c 65 | 6d 2c 20 62 75 74 20 74 |.Xproble|m, but t|
|00004620| 68 65 72 65 20 61 72 65 | 20 6e 6f 20 74 72 75 65 |here are| no true|
|00004630| 20 73 6f 6c 75 74 69 6f | 6e 73 2e 20 33 2e 20 44 | solutio|ns. 3. D|
|00004640| 65 73 70 69 74 65 20 74 | 68 65 20 64 6f 63 75 6d |espite t|he docum|
|00004650| 65 6e 74 61 74 69 6f 6e | 0a 58 69 6e 20 6b 69 6c |entation|.Xin kil|
|00004660| 6c 28 32 29 2c 20 6d 61 | 6e 79 20 6d 61 63 68 69 |l(2), ma|ny machi|
|00004670| 6e 65 73 20 64 6f 6e 27 | 5c 27 27 74 20 61 6c 6c |nes don'|\''t all|
|00004680| 6f 77 20 6e 6f 6e 2d 72 | 6f 6f 74 20 70 72 6f 63 |ow non-r|oot proc|
|00004690| 65 73 73 65 73 20 74 6f | 20 73 65 6e 64 0a 58 43 |esses to| send.XC|
|000046a0| 4f 4e 54 20 74 6f 20 63 | 68 69 6c 64 72 65 6e 20 |ONT to c|hildren |
|000046b0| 77 69 74 68 20 61 20 64 | 69 66 66 65 72 65 6e 74 |with a d|ifferent|
|000046c0| 20 75 69 64 2e 20 55 6e | 6c 69 6b 65 20 61 6c 6d | uid. Un|like alm|
|000046d0| 6f 73 74 20 61 6c 6c 20 | 6f 74 68 65 72 20 70 72 |ost all |other pr|
|000046e0| 6f 67 72 61 6d 73 2c 0a | 58 70 74 79 20 73 65 6e |ograms,.|Xpty sen|
|000046f0| 73 69 62 6c 79 20 68 61 | 6e 64 6c 65 73 20 69 74 |sibly ha|ndles it|
|00004700| 73 20 63 68 69 6c 64 20 | 73 74 6f 70 70 69 6e 67 |s child |stopping|
|00004710| 20 61 6e 64 20 72 65 73 | 74 61 72 74 69 6e 67 3b | and res|tarting;|
|00004720| 20 62 75 74 20 74 68 69 | 73 20 77 6f 6e 27 5c 27 | but thi|s won'\'|
|00004730| 27 74 0a 58 77 6f 72 6b | 20 6f 6e 20 74 68 6f 73 |'t.Xwork| on thos|
|00004740| 65 20 6d 61 63 68 69 6e | 65 73 20 69 66 20 70 74 |e machin|es if pt|
|00004750| 79 20 69 73 6e 27 5c 27 | 27 74 20 72 6f 6f 74 2e |y isn'\'|'t root.|
|00004760| 0a 58 0a 58 59 6f 75 20 | 73 68 6f 75 6c 64 20 64 |.X.XYou |should d|
|00004770| 65 63 69 64 65 20 6e 6f | 77 20 62 65 74 77 65 65 |ecide no|w betwee|
|00004780| 6e 20 43 61 73 65 20 52 | 4f 4f 54 20 61 6e 64 20 |n Case R|OOT and |
|00004790| 43 61 73 65 20 50 54 59 | 2e 0a 58 27 0a 58 0a 58 |Case PTY|..X'.X.X|
|000047a0| 65 63 68 6f 20 27 2d 2d | 2d 2d 2d 20 50 72 65 73 |echo '--|--- Pres|
|000047b0| 73 20 72 65 74 75 72 6e | 20 74 6f 20 63 6f 6e 74 |s return| to cont|
|000047c0| 69 6e 75 65 2e 20 27 20 | 7c 20 74 72 20 2d 64 20 |inue. ' || tr -d |
|000047d0| 27 5c 30 31 32 27 3b 20 | 72 65 61 64 20 63 6f 6e |'\012'; |read con|
|000047e0| 74 6c 69 6e 65 0a 58 0a | 58 65 63 68 6f 20 27 0a |tline.X.|Xecho '.|
|000047f0| 58 57 68 65 74 68 65 72 | 20 79 6f 75 27 5c 27 27 |XWhether| you'\''|
|00004800| 76 65 20 64 65 63 69 64 | 65 64 20 6f 6e 20 52 4f |ve decid|ed on RO|
|00004810| 4f 54 2c 20 50 54 59 2c | 20 6f 72 20 55 4e 2c 0a |OT, PTY,| or UN,.|
|00004820| 58 6e 6f 77 20 69 73 20 | 74 68 65 20 74 69 6d 65 |Xnow is |the time|
|00004830| 20 74 6f 20 63 68 65 63 | 6b 20 74 68 65 20 73 65 | to chec|k the se|
|00004840| 63 75 72 69 74 79 20 6f | 66 20 74 68 65 20 65 6e |curity o|f the en|
|00004850| 74 69 72 65 20 70 74 79 | 20 70 61 63 6b 61 67 65 |tire pty| package|
|00004860| 2e 0a 58 49 74 27 5c 27 | 27 64 20 62 65 20 64 69 |..XIt'\'|'d be di|
|00004870| 66 66 69 63 75 6c 74 20 | 66 6f 72 20 61 6e 79 74 |fficult |for anyt|
|00004880| 68 69 6e 67 20 74 6f 20 | 73 6c 69 70 20 74 68 72 |hing to |slip thr|
|00004890| 6f 75 67 68 20 74 68 65 | 20 63 68 65 63 6b 73 20 |ough the| checks |
|000048a0| 62 79 20 74 68 65 0a 58 | 61 75 74 68 6f 72 2c 20 |by the.X|author, |
|000048b0| 74 65 73 74 65 72 73 2c | 20 61 6e 64 20 73 6f 75 |testers,| and sou|
|000048c0| 72 63 65 20 67 72 6f 75 | 70 20 6d 6f 64 65 72 61 |rce grou|p modera|
|000048d0| 74 6f 72 2c 20 62 75 74 | 20 79 6f 75 20 73 68 6f |tor, but| you sho|
|000048e0| 75 6c 64 20 74 61 6b 65 | 0a 58 61 74 20 6c 65 61 |uld take|.Xat lea|
|000048f0| 73 74 20 61 20 6d 6f 6d | 65 6e 74 20 74 6f 20 6c |st a mom|ent to l|
|00004900| 6f 6f 6b 20 66 6f 72 20 | 79 6f 75 72 20 70 65 74 |ook for |your pet|
|00004910| 20 73 65 63 75 72 69 74 | 79 20 70 65 65 76 65 73 | securit|y peeves|
|00004920| 2e 0a 58 0a 58 41 20 63 | 6f 75 70 6c 65 20 6f 66 |..X.XA c|ouple of|
|00004930| 20 73 65 63 75 72 69 74 | 79 20 6e 6f 74 65 73 3a | securit|y notes:|
|00004940| 20 54 68 65 20 6f 6e 6c | 79 20 6f 70 65 6e 28 2c | The onl|y open(,|
|00004950| 4f 5f 43 52 45 41 54 29 | 20 69 6e 20 70 74 79 20 |O_CREAT)| in pty |
|00004960| 69 73 20 69 6e 0a 58 6d | 61 73 74 65 72 2e 63 2c |is in.Xm|aster.c,|
|00004970| 20 61 74 20 74 68 65 20 | 74 6f 70 20 6f 66 20 6d | at the |top of m|
|00004980| 61 73 74 65 72 28 29 2c | 20 6f 66 20 61 20 66 69 |aster(),| of a fi|
|00004990| 6c 65 20 77 69 74 68 20 | 61 20 76 65 72 79 20 72 |le with |a very r|
|000049a0| 65 73 74 72 69 63 74 65 | 64 0a 58 66 6f 72 6d 20 |estricte|d.Xform |
|000049b0| 63 6f 6e 73 74 72 75 63 | 74 65 64 20 66 72 6f 6d |construc|ted from|
|000049c0| 20 74 68 65 20 66 69 6c | 65 6e 61 6d 65 20 6f 66 | the fil|ename of|
|000049d0| 20 61 20 2f 64 65 76 2f | 74 74 79 78 78 2e 20 54 | a /dev/|ttyxx. T|
|000049e0| 68 65 72 65 20 61 72 65 | 20 6e 6f 0a 58 63 72 65 |here are| no.Xcre|
|000049f0| 61 74 28 29 73 2e 20 54 | 68 65 20 6f 6e 6c 79 20 |at()s. T|he only |
|00004a00| 62 69 6e 64 28 29 20 69 | 73 20 69 6e 20 73 6f 63 |bind() i|s in soc|
|00004a10| 6b 2e 63 27 5c 27 27 73 | 20 70 74 79 5f 72 65 61 |k.c'\''s| pty_rea|
|00004a20| 64 73 6f 63 6b 28 29 2c | 20 77 68 69 63 68 20 69 |dsock(),| which i|
|00004a30| 73 0a 58 63 61 6c 6c 65 | 64 20 6f 6e 6c 79 20 66 |s.Xcalle|d only f|
|00004a40| 72 6f 6d 20 6d 61 73 74 | 65 72 2e 63 27 5c 27 27 |rom mast|er.c'\''|
|00004a50| 73 20 6d 61 73 74 65 72 | 28 29 20 74 6f 20 63 72 |s master|() to cr|
|00004a60| 65 61 74 65 20 61 20 73 | 6f 63 6b 65 74 20 77 69 |eate a s|ocket wi|
|00004a70| 74 68 20 61 0a 58 73 69 | 6d 69 6c 61 72 6c 79 20 |th a.Xsi|milarly |
|00004a80| 72 65 73 74 72 69 63 74 | 65 64 20 6e 61 6d 65 2e |restrict|ed name.|
|00004a90| 20 28 66 6e 73 74 79 20 | 69 73 20 63 68 61 6e 67 | (fnsty |is chang|
|00004aa0| 65 64 20 69 6e 20 73 69 | 67 6c 65 72 20 62 75 74 |ed in si|gler but|
|00004ab0| 20 6e 6f 74 20 69 6e 0a | 58 6d 61 73 74 65 72 2e | not in.|Xmaster.|
|00004ac0| 29 20 54 68 65 20 6f 6e | 6c 79 20 65 78 65 63 28 |) The on|ly exec(|
|00004ad0| 29 20 69 73 20 69 6e 20 | 73 6c 61 76 65 2e 63 2c |) is in |slave.c,|
|00004ae0| 20 61 66 74 65 72 20 61 | 20 66 6f 72 63 65 64 20 | after a| forced |
|00004af0| 73 65 74 72 65 75 69 64 | 28 29 0a 58 74 6f 20 61 |setreuid|().Xto a|
|00004b00| 20 75 69 64 20 74 68 61 | 74 20 69 73 20 6f 6e 6c | uid tha|t is onl|
|00004b10| 79 20 73 65 74 20 74 6f | 20 67 65 74 75 69 64 28 |y set to| getuid(|
|00004b20| 29 2e 20 75 6e 6c 69 6e | 6b 28 29 2c 20 6d 6b 64 |). unlin|k(), mkd|
|00004b30| 69 72 28 29 2c 20 61 6e | 64 20 72 65 6e 61 6d 65 |ir(), an|d rename|
|00004b40| 28 29 0a 58 61 72 65 20 | 6f 6e 6c 79 20 75 73 65 |().Xare |only use|
|00004b50| 64 20 77 69 74 68 20 72 | 65 73 74 72 69 63 74 65 |d with r|estricte|
|00004b60| 64 20 70 61 74 68 6e 61 | 6d 65 73 2e 0a 58 27 0a |d pathna|mes..X'.|
|00004b70| 58 0a 58 65 63 68 6f 20 | 27 2d 2d 2d 2d 2d 20 50 |X.Xecho |'----- P|
|00004b80| 72 65 73 73 20 72 65 74 | 75 72 6e 20 74 6f 20 63 |ress ret|urn to c|
|00004b90| 6f 6e 74 69 6e 75 65 2e | 20 27 20 7c 20 74 72 20 |ontinue.| ' | tr |
|00004ba0| 2d 64 20 27 5c 30 31 32 | 27 3b 20 72 65 61 64 20 |-d '\012|'; read |
|00004bb0| 63 6f 6e 74 6c 69 6e 65 | 0a 58 0a 58 65 63 68 6f |contline|.X.Xecho|
|00004bc0| 20 27 0a 58 49 6e 20 43 | 61 73 65 20 50 54 59 2c | '.XIn C|ase PTY,|
|00004bd0| 20 79 6f 75 20 68 61 76 | 65 20 74 6f 20 73 65 74 | you hav|e to set|
|00004be0| 20 75 70 20 61 20 6e 65 | 77 20 75 69 64 2c 20 73 | up a ne|w uid, s|
|00004bf0| 61 79 20 60 60 70 74 79 | 27 5c 27 5c 27 27 20 28 |ay ``pty|'\'\'' (|
|00004c00| 6f 72 20 77 68 61 74 65 | 76 65 72 0a 58 75 73 65 |or whate|ver.Xuse|
|00004c10| 72 6e 61 6d 65 20 79 6f | 75 20 77 61 6e 74 29 2e |rname yo|u want).|
|00004c20| 20 70 74 79 20 73 68 6f | 75 6c 64 20 6e 6f 74 20 | pty sho|uld not |
|00004c30| 61 6c 6c 6f 77 20 6c 6f | 67 69 6e 73 2e 20 49 74 |allow lo|gins. It|
|00004c40| 73 20 70 61 73 73 77 6f | 72 64 20 73 68 6f 75 6c |s passwo|rd shoul|
|00004c50| 64 0a 58 62 65 20 61 6e | 20 61 73 74 65 72 69 73 |d.Xbe an| asteris|
|00004c60| 6b 3b 20 69 74 73 20 68 | 6f 6d 65 20 64 69 72 65 |k; its h|ome dire|
|00004c70| 63 74 6f 72 79 20 73 68 | 6f 75 6c 64 20 62 65 20 |ctory sh|ould be |
|00004c80| 2f 6e 6f 6e 65 78 69 73 | 74 65 6e 74 3b 20 69 74 |/nonexis|tent; it|
|00004c90| 73 20 73 68 65 6c 6c 0a | 58 73 68 6f 75 6c 64 20 |s shell.|Xshould |
|00004ca0| 62 65 20 2f 62 69 6e 2f | 74 72 75 65 2e 20 49 6e |be /bin/|true. In|
|00004cb0| 20 6f 74 68 65 72 20 77 | 6f 72 64 73 2c 20 74 68 | other w|ords, th|
|00004cc0| 65 20 6f 6e 6c 79 20 61 | 63 63 65 73 73 20 74 6f |e only a|ccess to|
|00004cd0| 20 75 73 65 72 20 70 74 | 79 0a 58 73 68 6f 75 6c | user pt|y.Xshoul|
|00004ce0| 64 20 62 65 20 74 68 72 | 6f 75 67 68 20 74 68 65 |d be thr|ough the|
|00004cf0| 73 65 20 73 65 74 75 69 | 64 20 70 72 6f 67 72 61 |se setui|d progra|
|00004d00| 6d 73 2e 0a 58 0a 58 49 | 6e 20 61 6e 79 20 70 72 |ms..X.XI|n any pr|
|00004d10| 69 76 69 6c 65 67 65 64 | 20 63 61 73 65 20 79 6f |ivileged| case yo|
|00004d20| 75 20 73 68 6f 75 6c 64 | 20 68 61 76 65 20 67 72 |u should| have gr|
|00004d30| 6f 75 70 20 74 74 79 2c | 0a 58 77 68 69 63 68 20 |oup tty,|.Xwhich |
|00004d40| 6d 6f 73 74 20 42 53 44 | 20 34 2e 33 20 73 79 73 |most BSD| 4.3 sys|
|00004d50| 74 65 6d 73 20 68 61 76 | 65 20 61 73 20 67 69 64 |tems hav|e as gid|
|00004d60| 20 34 2e 20 0a 58 27 0a | 58 0a 58 65 63 68 6f 20 | 4. .X'.|X.Xecho |
|00004d70| 27 52 75 6e 6e 69 6e 67 | 20 27 5c 0a 58 27 24 20 |'Running| '\.X'$ |
|00004d80| 74 74 79 67 72 6f 75 70 | 3d 22 60 73 65 64 20 2d |ttygroup|="`sed -|
|00004d90| 6e 20 27 5c 27 27 73 2f | 5e 74 74 79 3a 5b 5e 3a |n '\''s/|^tty:[^:|
|00004da0| 5d 2a 3a 5c 28 2e 2a 5c | 29 3a 2e 2a 2f 5c 31 2f |]*:\(.*\|):.*/\1/|
|00004db0| 70 27 5c 27 27 20 3c 20 | 2f 65 74 63 2f 67 72 6f |p'\'' < |/etc/gro|
|00004dc0| 75 70 60 22 20 2e 2e 2e | 27 0a 58 74 74 79 67 72 |up`" ...|'.Xttygr|
|00004dd0| 6f 75 70 3d 22 60 73 65 | 64 20 2d 6e 20 27 73 2f |oup="`se|d -n 's/|
|00004de0| 5e 74 74 79 3a 5b 5e 3a | 5d 2a 3a 5c 28 2e 2a 5c |^tty:[^:|]*:\(.*\|
|00004df0| 29 3a 2e 2a 2f 5c 31 2f | 70 27 20 3c 20 2f 65 74 |):.*/\1/|p' < /et|
|00004e00| 63 2f 67 72 6f 75 70 60 | 22 0a 58 0a 58 63 61 73 |c/group`|".X.Xcas|
|00004e10| 65 20 22 24 74 74 79 67 | 72 6f 75 70 22 20 69 6e |e "$ttyg|roup" in|
|00004e20| 0a 58 34 29 20 65 63 68 | 6f 20 27 0a 58 49 20 73 |.X4) ech|o '.XI s|
|00004e30| 65 65 20 74 68 61 74 20 | 79 6f 75 20 68 61 76 65 |ee that |you have|
|00004e40| 20 61 20 74 74 79 20 67 | 72 6f 75 70 2c 20 34 20 | a tty g|roup, 4 |
|00004e50| 61 73 20 75 73 75 61 6c | 2e 20 47 6f 6f 64 2e 0a |as usual|. Good..|
|00004e60| 58 27 20 3b 3b 0a 58 27 | 27 29 20 65 63 68 6f 20 |X' ;;.X'|') echo |
|00004e70| 27 0a 58 59 6f 75 20 64 | 6f 6e 27 5c 27 27 74 20 |'.XYou d|on'\''t |
|00004e80| 68 61 76 65 20 61 20 74 | 74 79 20 67 72 6f 75 70 |have a t|ty group|
|00004e90| 2e 20 55 6e 6c 65 73 73 | 20 79 6f 75 20 68 61 76 |. Unless| you hav|
|00004ea0| 65 20 61 20 73 75 69 74 | 61 62 6c 65 20 67 72 6f |e a suit|able gro|
|00004eb0| 75 70 20 75 6e 64 65 72 | 20 61 0a 58 64 69 66 66 |up under| a.Xdiff|
|00004ec0| 65 72 65 6e 74 20 6e 61 | 6d 65 2c 20 79 6f 75 20 |erent na|me, you |
|00004ed0| 73 68 6f 75 6c 64 20 61 | 64 64 20 74 68 65 20 6c |should a|dd the l|
|00004ee0| 69 6e 65 0a 58 74 74 79 | 3a 2a 3a 34 3a 72 6f 6f |ine.Xtty|:*:4:roo|
|00004ef0| 74 0a 58 74 6f 20 2f 65 | 74 63 2f 67 72 6f 75 70 |t.Xto /e|tc/group|
|00004f00| 2e 0a 58 27 20 3b 3b 0a | 58 2a 29 20 65 63 68 6f |..X' ;;.|X*) echo|
|00004f10| 20 27 0a 58 49 20 73 65 | 65 20 74 68 61 74 20 79 | '.XI se|e that y|
|00004f20| 6f 75 20 68 61 76 65 20 | 61 20 74 74 79 20 67 72 |ou have |a tty gr|
|00004f30| 6f 75 70 2c 20 67 69 64 | 20 27 22 24 74 74 79 67 |oup, gid| '"$ttyg|
|00004f40| 72 6f 75 70 22 27 20 72 | 61 74 68 65 72 20 74 68 |roup"' r|ather th|
|00004f50| 61 6e 20 34 2e 20 4f 6b | 61 79 2e 0a 58 27 20 3b |an 4. Ok|ay..X' ;|
|00004f60| 3b 0a 58 65 73 61 63 0a | 58 0a 58 65 63 68 6f 20 |;.Xesac.|X.Xecho |
|00004f70| 27 2d 2d 2d 2d 2d 20 50 | 72 65 73 73 20 72 65 74 |'----- P|ress ret|
|00004f80| 75 72 6e 20 74 6f 20 63 | 6f 6e 74 69 6e 75 65 2e |urn to c|ontinue.|
|00004f90| 20 27 20 7c 20 74 72 20 | 2d 64 20 27 5c 30 31 32 | ' | tr |-d '\012|
|00004fa0| 27 3b 20 72 65 61 64 20 | 63 6f 6e 74 6c 69 6e 65 |'; read |contline|
|00004fb0| 0a 58 0a 58 65 63 68 6f | 20 27 0a 58 4e 65 78 74 |.X.Xecho| '.XNext|
|00004fc0| 2c 20 77 65 27 5c 27 27 | 72 65 20 67 6f 69 6e 67 |, we'\''|re going|
|00004fd0| 20 74 6f 20 64 72 75 64 | 67 65 20 74 68 72 6f 75 | to drud|ge throu|
|00004fe0| 67 68 20 74 68 65 20 63 | 6f 6e 66 69 67 2e 68 20 |gh the c|onfig.h |
|00004ff0| 66 69 6c 65 2e 0a 58 0a | 58 49 6e 20 43 61 73 65 |file..X.|XIn Case|
|00005000| 73 20 52 4f 4f 54 20 6f | 72 20 50 54 59 2c 20 79 |s ROOT o|r PTY, y|
|00005010| 6f 75 20 68 61 76 65 20 | 74 6f 20 73 65 74 20 75 |ou have |to set u|
|00005020| 70 20 61 20 73 79 73 74 | 65 6d 2d 77 69 64 65 20 |p a syst|em-wide |
|00005030| 64 69 72 65 63 74 6f 72 | 79 0a 58 66 6f 72 20 73 |director|y.Xfor s|
|00005040| 74 6f 72 69 6e 67 20 69 | 6e 66 6f 72 6d 61 74 69 |toring i|nformati|
|00005050| 6f 6e 20 61 62 6f 75 74 | 20 70 74 79 20 73 65 73 |on about| pty ses|
|00005060| 73 69 6f 6e 73 2e 20 28 | 41 20 73 65 73 73 69 6f |sions. (|A sessio|
|00005070| 6e 20 69 73 20 61 20 70 | 72 6f 67 72 61 6d 0a 58 |n is a p|rogram.X|
|00005080| 73 74 75 63 6b 20 75 6e | 64 65 72 20 61 20 70 74 |stuck un|der a pt|
|00005090| 79 20 74 68 61 74 20 79 | 6f 75 20 63 61 6e 20 64 |y that y|ou can d|
|000050a0| 69 73 63 6f 6e 6e 65 63 | 74 20 61 6e 64 20 72 65 |isconnec|t and re|
|000050b0| 63 6f 6e 6e 65 63 74 2e | 29 20 55 73 65 72 73 20 |connect.|) Users |
|000050c0| 63 61 6e 0a 58 67 65 74 | 20 61 72 6f 75 6e 64 20 |can.Xget| around |
|000050d0| 74 68 69 73 20 64 69 72 | 65 63 74 6f 72 79 2c 20 |this dir|ectory, |
|000050e0| 73 74 6f 72 69 6e 67 20 | 74 68 65 20 69 6e 66 6f |storing |the info|
|000050f0| 72 6d 61 74 69 6f 6e 20 | 69 6e 20 7e 2f 2e 70 74 |rmation |in ~/.pt|
|00005100| 79 20 61 6e 64 0a 58 72 | 65 76 6f 6b 69 6e 67 20 |y and.Xr|evoking |
|00005110| 61 6e 79 20 70 72 69 76 | 69 6c 65 67 65 73 2c 20 |any priv|ileges, |
|00005120| 77 69 74 68 20 70 74 79 | 20 2d 78 53 3b 20 79 6f |with pty| -xS; yo|
|00005130| 75 20 63 61 6e 20 65 76 | 65 6e 20 6d 61 6b 65 20 |u can ev|en make |
|00005140| 74 68 69 73 20 64 65 66 | 61 75 6c 74 0a 58 62 79 |this def|ault.Xby|
|00005150| 20 73 65 74 74 69 6e 67 | 20 66 6c 61 67 78 73 65 | setting| flagxse|
|00005160| 74 75 69 64 20 3d 20 30 | 20 69 6e 20 67 6c 6f 62 |tuid = 0| in glob|
|00005170| 61 6c 73 2e 63 2e 20 48 | 6f 77 65 76 65 72 2c 20 |als.c. H|owever, |
|00005180| 61 20 73 69 6e 67 6c 65 | 20 73 79 73 74 65 6d 2d |a single| system-|
|00005190| 77 69 64 65 0a 58 64 69 | 72 65 63 74 6f 72 79 20 |wide.Xdi|rectory |
|000051a0| 69 73 20 73 61 66 65 72 | 2e 0a 58 0a 58 41 6e 79 |is safer|..X.XAny|
|000051b0| 77 61 79 2c 20 74 68 61 | 74 20 64 69 72 65 63 74 |way, tha|t direct|
|000051c0| 6f 72 79 2c 20 50 54 59 | 44 49 52 2c 20 73 68 6f |ory, PTY|DIR, sho|
|000051d0| 75 6c 64 20 62 65 20 6d | 6f 64 65 20 30 37 30 30 |uld be m|ode 0700|
|000051e0| 2c 20 6f 77 6e 65 72 20 | 72 6f 6f 74 20 69 6e 20 |, owner |root in |
|000051f0| 63 61 73 65 0a 58 52 4f | 4f 54 20 6f 72 20 70 74 |case.XRO|OT or pt|
|00005200| 79 20 69 6e 20 63 61 73 | 65 20 50 54 59 2c 20 67 |y in cas|e PTY, g|
|00005210| 72 6f 75 70 20 69 72 72 | 65 6c 65 76 61 6e 74 2e |roup irr|elevant.|
|00005220| 20 50 54 59 44 49 52 20 | 69 73 20 64 65 66 69 6e | PTYDIR |is defin|
|00005230| 65 64 20 69 6e 20 63 6f | 6e 66 69 67 2e 68 0a 58 |ed in co|nfig.h.X|
|00005240| 61 73 20 2f 75 73 72 2f | 65 74 63 2f 70 74 79 20 |as /usr/|etc/pty |
|00005250| 62 79 20 64 65 66 61 75 | 6c 74 3b 20 69 66 20 79 |by defau|lt; if y|
|00005260| 6f 75 20 63 68 6f 6f 73 | 65 20 61 20 64 69 66 66 |ou choos|e a diff|
|00005270| 65 72 65 6e 74 20 64 69 | 72 65 63 74 6f 72 79 2c |erent di|rectory,|
|00005280| 20 61 64 64 0a 58 2d 44 | 50 54 59 44 49 52 3d 5c | add.X-D|PTYDIR=\|
|00005290| 22 2f 77 68 61 74 2f 65 | 76 65 72 2f 64 69 72 2f |"/what/e|ver/dir/|
|000052a0| 65 63 74 2f 6f 72 79 5c | 22 20 74 6f 20 43 43 4f |ect/ory\|" to CCO|
|000052b0| 50 54 53 20 69 6e 20 74 | 68 65 20 4d 61 6b 65 66 |PTS in t|he Makef|
|000052c0| 69 6c 65 2e 0a 58 0a 58 | 49 6e 20 43 61 73 65 20 |ile..X.X|In Case |
|000052d0| 55 4e 2c 20 79 6f 75 20 | 6d 61 79 20 77 61 6e 74 |UN, you |may want|
|000052e0| 20 74 6f 20 73 65 74 20 | 75 70 20 61 20 64 69 72 | to set |up a dir|
|000052f0| 65 63 74 6f 72 79 20 7e | 2f 50 54 59 20 69 6e 73 |ectory ~|/PTY ins|
|00005300| 69 64 65 20 79 6f 75 72 | 20 68 6f 6d 65 0a 58 64 |ide your| home.Xd|
|00005310| 69 72 65 63 74 6f 72 79 | 2c 20 61 6e 64 20 73 65 |irectory|, and se|
|00005320| 74 20 50 54 59 44 49 52 | 20 74 6f 20 74 68 61 74 |t PTYDIR| to that|
|00005330| 3b 20 79 6f 75 20 6d 61 | 79 20 77 61 6e 74 20 74 |; you ma|y want t|
|00005340| 6f 20 73 65 74 20 66 6c | 61 67 78 73 65 74 75 69 |o set fl|agxsetui|
|00005350| 64 20 3d 20 30 0a 58 69 | 6e 20 67 6c 6f 62 61 6c |d = 0.Xi|n global|
|00005360| 73 2e 63 3b 20 6f 72 20 | 79 6f 75 20 6d 61 79 20 |s.c; or |you may |
|00005370| 77 61 6e 74 20 74 6f 20 | 6a 75 73 74 20 74 79 70 |want to |just typ|
|00005380| 65 20 2d 78 53 20 74 6f | 20 70 74 79 20 61 6c 6c |e -xS to| pty all|
|00005390| 20 74 68 65 20 74 69 6d | 65 2e 20 49 0a 58 72 65 | the tim|e. I.Xre|
|000053a0| 63 6f 6d 6d 65 6e 64 20 | 74 68 65 20 66 69 72 73 |commend |the firs|
|000053b0| 74 20 73 74 72 61 74 65 | 67 79 2e 0a 58 27 0a 58 |t strate|gy..X'.X|
|000053c0| 0a 58 65 63 68 6f 20 27 | 2d 2d 2d 2d 2d 20 50 72 |.Xecho '|----- Pr|
|000053d0| 65 73 73 20 72 65 74 75 | 72 6e 20 74 6f 20 63 6f |ess retu|rn to co|
|000053e0| 6e 74 69 6e 75 65 2e 20 | 27 20 7c 20 74 72 20 2d |ntinue. |' | tr -|
|000053f0| 64 20 27 5c 30 31 32 27 | 3b 20 72 65 61 64 20 63 |d '\012'|; read c|
|00005400| 6f 6e 74 6c 69 6e 65 0a | 58 0a 58 65 63 68 6f 20 |ontline.|X.Xecho |
|00005410| 27 0a 58 4e 65 78 74 20 | 63 6f 6d 65 20 70 73 65 |'.XNext |come pse|
|00005420| 75 64 6f 2d 74 65 72 6d | 69 6e 61 6c 20 70 61 74 |udo-term|inal pat|
|00005430| 68 6e 61 6d 65 73 2e 20 | 49 20 61 73 73 75 6d 65 |hnames. |I assume|
|00005440| 20 74 68 61 74 20 79 6f | 75 72 20 70 74 79 73 20 | that yo|ur ptys |
|00005450| 61 72 65 0a 58 6c 61 62 | 65 6c 6c 65 64 20 61 73 |are.Xlab|elled as|
|00005460| 20 2f 64 65 76 2f 70 74 | 79 78 78 20 61 6e 64 20 | /dev/pt|yxx and |
|00005470| 2f 64 65 76 2f 74 74 79 | 78 78 2c 20 77 68 65 72 |/dev/tty|xx, wher|
|00005480| 65 20 78 78 20 69 73 20 | 61 6e 79 20 74 77 6f 2d |e xx is |any two-|
|00005490| 6c 65 74 74 65 72 0a 58 | 65 78 74 65 6e 73 69 6f |letter.X|extensio|
|000054a0| 6e 2e 20 70 74 79 20 63 | 61 6e 20 73 75 70 70 6f |n. pty c|an suppo|
|000054b0| 72 74 20 61 6e 79 20 69 | 6e 69 74 69 61 6c 20 73 |rt any i|nitial s|
|000054c0| 74 72 69 6e 67 73 20 69 | 6e 73 74 65 61 64 20 6f |trings i|nstead o|
|000054d0| 66 20 74 68 65 73 65 2c | 0a 58 62 75 74 20 73 6f |f these,|.Xbut so|
|000054e0| 6d 65 20 6f 66 20 74 68 | 65 20 75 74 69 6c 69 74 |me of th|e utilit|
|000054f0| 69 65 73 20 68 61 76 65 | 20 2f 64 65 76 2f 74 74 |ies have| /dev/tt|
|00005500| 79 20 68 61 72 64 63 6f | 64 65 64 2c 20 61 6e 64 |y hardco|ded, and|
|00005510| 20 6c 6f 74 73 20 6f 66 | 20 6f 74 68 65 72 0a 58 | lots of| other.X|
|00005520| 70 72 6f 67 72 61 6d 73 | 20 72 75 6e 6e 69 6e 67 |programs| running|
|00005530| 20 61 72 6f 75 6e 64 20 | 61 73 73 75 6d 65 20 74 | around |assume t|
|00005540| 68 6f 73 65 20 6e 61 6d | 65 73 2e 20 49 66 20 79 |hose nam|es. If y|
|00005550| 6f 75 27 5c 27 27 72 65 | 20 64 65 73 70 65 72 61 |ou'\''re| despera|
|00005560| 74 65 2c 0a 58 64 65 66 | 69 6e 65 20 44 45 56 4d |te,.Xdef|ine DEVM|
|00005570| 54 59 20 61 6e 64 20 44 | 45 56 53 54 59 20 69 6e |TY and D|EVSTY in|
|00005580| 20 74 68 65 20 4d 61 6b | 65 66 69 6c 65 2c 20 61 | the Mak|efile, a|
|00005590| 6e 64 20 66 69 67 75 72 | 65 20 6f 75 74 20 77 68 |nd figur|e out wh|
|000055a0| 61 74 20 68 61 73 20 74 | 6f 0a 58 62 65 20 63 68 |at has t|o.Xbe ch|
|000055b0| 61 6e 67 65 64 20 69 6e | 20 75 74 69 6c 2f 2a 2e |anged in| util/*.|
|000055c0| 20 28 53 6f 72 72 79 2e | 29 0a 58 27 0a 58 0a 58 | (Sorry.|).X'.X.X|
|000055d0| 65 63 68 6f 20 27 2d 2d | 2d 2d 2d 20 50 72 65 73 |echo '--|--- Pres|
|000055e0| 73 20 72 65 74 75 72 6e | 20 74 6f 20 63 6f 6e 74 |s return| to cont|
|000055f0| 69 6e 75 65 2e 20 27 20 | 7c 20 74 72 20 2d 64 20 |inue. ' || tr -d |
|00005600| 27 5c 30 31 32 27 3b 20 | 72 65 61 64 20 63 6f 6e |'\012'; |read con|
|00005610| 74 6c 69 6e 65 0a 58 0a | 58 65 63 68 6f 20 27 0a |tline.X.|Xecho '.|
|00005620| 58 54 68 65 20 65 78 74 | 65 6e 73 69 6f 6e 20 69 |XThe ext|ension i|
|00005630| 73 20 74 72 61 64 69 74 | 69 6f 6e 61 6c 6c 79 20 |s tradit|ionally |
|00005640| 5b 70 2d 7a 61 2d 6f 5d | 5b 30 2d 39 61 2d 66 5d |[p-za-o]|[0-9a-f]|
|00005650| 2e 20 54 68 65 20 66 69 | 72 73 74 20 6c 65 74 74 |. The fi|rst lett|
|00005660| 65 72 20 6f 66 20 74 68 | 65 0a 58 73 65 63 6f 6e |er of th|e.Xsecon|
|00005670| 64 20 73 74 72 69 6e 67 | 20 69 73 20 73 70 65 63 |d string| is spec|
|00005680| 69 61 6c 3a 20 69 66 20 | 2f 64 65 76 2f 74 74 79 |ial: if |/dev/tty|
|00005690| 71 30 20 64 6f 65 73 6e | 27 5c 27 27 74 20 65 78 |q0 doesn|'\''t ex|
|000056a0| 69 73 74 2c 20 66 6f 72 | 20 65 78 61 6d 70 6c 65 |ist, for| example|
|000056b0| 2c 20 74 68 65 6e 0a 58 | 6e 6f 6e 65 20 6f 66 20 |, then.X|none of |
|000056c0| 2f 64 65 76 2f 74 74 79 | 71 5b 30 2d 39 61 2d 66 |/dev/tty|q[0-9a-f|
|000056d0| 5d 20 77 69 6c 6c 20 62 | 65 20 75 73 65 64 2e 20 |] will b|e used. |
|000056e0| 28 54 68 61 74 27 5c 27 | 27 73 20 63 61 6c 6c 65 |(That'\'|'s calle|
|000056f0| 64 20 61 20 70 74 79 20 | 62 61 6e 6b 2e 29 0a 58 |d a pty |bank.).X|
|00005700| 0a 58 59 6f 75 20 63 61 | 6e 20 63 68 61 6e 67 65 |.XYou ca|n change|
|00005710| 20 74 68 6f 73 65 20 73 | 74 72 69 6e 67 73 20 62 | those s|trings b|
|00005720| 79 20 64 65 66 69 6e 69 | 6e 67 2c 20 65 2e 67 2e |y defini|ng, e.g.|
|00005730| 2c 20 50 54 59 31 3d 5c | 22 41 42 43 44 45 46 47 |, PTY1=\|"ABCDEFG|
|00005740| 5c 22 20 6f 72 0a 58 50 | 54 59 32 3d 5c 22 30 32 |\" or.XP|TY2=\"02|
|00005750| 34 36 38 61 62 66 71 5c | 22 20 69 6e 20 74 68 65 |468abfq\|" in the|
|00005760| 20 4d 61 6b 65 66 69 6c | 65 2e 20 59 6f 75 20 68 | Makefil|e. You h|
|00005770| 61 76 65 20 61 74 20 6c | 65 61 73 74 20 66 6f 75 |ave at l|east fou|
|00005780| 72 20 63 68 6f 69 63 65 | 73 20 68 65 72 65 3a 0a |r choice|s here:.|
|00005790| 58 31 2e 20 47 69 76 65 | 20 70 74 79 20 69 74 73 |X1. Give| pty its|
|000057a0| 20 6f 77 6e 2c 20 6e 65 | 77 2c 20 62 61 6e 6b 73 | own, ne|w, banks|
|000057b0| 20 6f 66 20 6e 65 77 20 | 70 73 65 75 64 6f 2d 74 | of new |pseudo-t|
|000057c0| 65 72 6d 69 6e 61 6c 73 | 20 77 69 74 68 20 77 65 |erminals| with we|
|000057d0| 69 72 64 20 62 61 6e 6b | 0a 58 6e 61 6d 65 73 20 |ird bank|.Xnames |
|000057e0| 6e 6f 74 20 69 6e 63 6c | 75 64 69 6e 67 20 61 20 |not incl|uding a |
|000057f0| 74 68 72 6f 75 67 68 20 | 7a 2c 20 61 6e 64 20 64 |through |z, and d|
|00005800| 65 66 69 6e 65 20 50 54 | 59 31 20 61 70 70 72 6f |efine PT|Y1 appro|
|00005810| 70 72 69 61 74 65 6c 79 | 2e 20 70 74 79 20 77 69 |priately|. pty wi|
|00005820| 6c 6c 0a 58 6f 6e 6c 79 | 20 75 73 65 20 74 68 6f |ll.Xonly| use tho|
|00005830| 73 65 20 6e 65 77 20 70 | 74 79 73 2c 20 61 6e 64 |se new p|tys, and|
|00005840| 20 6f 6c 64 65 72 20 70 | 72 6f 67 72 61 6d 73 20 | older p|rograms |
|00005850| 77 69 6c 6c 20 6a 75 73 | 74 20 75 73 65 20 74 68 |will jus|t use th|
|00005860| 65 20 6f 6c 64 20 70 74 | 79 73 2e 0a 58 54 68 69 |e old pt|ys..XThi|
|00005870| 73 20 6d 61 79 20 72 65 | 71 75 69 72 65 20 72 65 |s may re|quire re|
|00005880| 63 6f 6e 66 69 67 75 72 | 69 6e 67 20 79 6f 75 72 |configur|ing your|
|00005890| 20 73 79 73 74 65 6d 20 | 66 6f 72 20 74 68 65 20 | system |for the |
|000058a0| 6c 61 72 67 65 72 20 6e | 75 6d 62 65 72 20 6f 66 |larger n|umber of|
|000058b0| 0a 58 74 65 72 6d 69 6e | 61 6c 73 2e 20 32 2e 20 |.Xtermin|als. 2. |
|000058c0| 47 69 76 65 20 70 74 79 | 20 73 6f 6d 65 20 6e 65 |Give pty| some ne|
|000058d0| 77 20 62 61 6e 6b 73 2c | 20 61 6e 64 20 74 61 6b |w banks,| and tak|
|000058e0| 65 20 6f 75 74 20 73 6f | 6d 65 20 6f 6c 64 20 6f |e out so|me old o|
|000058f0| 6e 65 73 20 74 6f 0a 58 | 6d 61 6b 65 20 75 70 20 |nes to.X|make up |
|00005900| 66 6f 72 20 69 74 2e 20 | 33 2e 20 47 69 76 65 20 |for it. |3. Give |
|00005910| 70 74 79 20 61 20 63 68 | 75 6e 6b 20 6f 66 20 74 |pty a ch|unk of t|
|00005920| 68 65 20 6f 6c 64 20 62 | 61 6e 6b 73 2e 20 34 2e |he old b|anks. 4.|
|00005930| 20 47 69 76 65 20 70 74 | 79 20 61 6c 6c 0a 58 74 | Give pt|y all.Xt|
|00005940| 68 65 20 6f 6c 64 20 62 | 61 6e 6b 73 2e 0a 58 0a |he old b|anks..X.|
|00005950| 58 4e 6f 74 65 20 74 68 | 61 74 20 70 74 79 20 73 |XNote th|at pty s|
|00005960| 65 61 72 63 68 65 73 20 | 72 61 6e 64 6f 6d 6c 79 |earches |randomly|
|00005970| 20 74 68 72 6f 75 67 68 | 20 50 54 59 31 20 61 6e | through| PTY1 an|
|00005980| 64 20 50 54 59 32 20 62 | 79 20 64 65 66 61 75 6c |d PTY2 b|y defaul|
|00005990| 74 3b 20 66 6f 72 0a 58 | 65 66 66 69 63 69 65 6e |t; for.X|efficien|
|000059a0| 63 79 2c 20 50 54 59 31 | 20 72 65 61 6c 6c 79 20 |cy, PTY1| really |
|000059b0| 73 68 6f 75 6c 64 20 72 | 65 66 6c 65 63 74 20 65 |should r|eflect e|
|000059c0| 78 61 63 74 6c 79 20 74 | 68 65 20 70 74 79 20 62 |xactly t|he pty b|
|000059d0| 61 6e 6b 73 20 79 6f 75 | 20 68 61 76 65 2e 0a 58 |anks you| have..X|
|000059e0| 27 0a 58 0a 58 65 63 68 | 6f 20 27 2d 2d 2d 2d 2d |'.X.Xech|o '-----|
|000059f0| 20 50 72 65 73 73 20 72 | 65 74 75 72 6e 20 74 6f | Press r|eturn to|
|00005a00| 20 63 6f 6e 74 69 6e 75 | 65 2e 20 27 20 7c 20 74 | continu|e. ' | t|
|00005a10| 72 20 2d 64 20 27 5c 30 | 31 32 27 3b 20 72 65 61 |r -d '\0|12'; rea|
|00005a20| 64 20 63 6f 6e 74 6c 69 | 6e 65 0a 58 0a 58 65 63 |d contli|ne.X.Xec|
|00005a30| 68 6f 20 27 0a 58 53 6f | 20 6e 6f 77 20 79 6f 75 |ho '.XSo| now you|
|00005a40| 27 5c 27 27 76 65 20 64 | 65 63 69 64 65 64 20 6f |'\''ve d|ecided o|
|00005a50| 6e 20 6e 65 77 20 70 74 | 79 73 2c 20 6f 72 20 73 |n new pt|ys, or s|
|00005a60| 65 74 20 61 73 69 64 65 | 20 73 6f 6d 65 20 6f 72 |et aside| some or|
|00005a70| 20 61 6c 6c 20 6f 66 20 | 79 6f 75 72 0a 58 6f 6c | all of |your.Xol|
|00005a80| 64 20 70 74 79 73 2c 20 | 61 6e 64 20 63 68 61 6e |d ptys, |and chan|
|00005a90| 67 65 64 20 50 54 59 31 | 20 61 6e 64 20 50 54 59 |ged PTY1| and PTY|
|00005aa0| 32 20 61 70 70 72 6f 70 | 72 69 61 74 65 6c 79 2e |2 approp|riately.|
|00005ab0| 20 42 65 63 61 75 73 65 | 20 42 53 44 20 67 69 76 | Because| BSD giv|
|00005ac0| 65 73 20 61 0a 58 70 72 | 6f 63 65 73 73 20 76 65 |es a.Xpr|ocess ve|
|00005ad0| 72 79 20 6c 69 74 74 6c | 65 20 63 6f 6e 74 72 6f |ry littl|e contro|
|00005ae0| 6c 20 6f 76 65 72 20 69 | 74 73 20 63 6f 6e 74 72 |l over i|ts contr|
|00005af0| 6f 6c 6c 69 6e 67 20 74 | 65 72 6d 69 6e 61 6c 2c |olling t|erminal,|
|00005b00| 20 70 74 79 20 68 61 73 | 20 74 6f 0a 58 70 61 73 | pty has| to.Xpas|
|00005b10| 73 20 61 20 74 65 72 6d | 69 6e 61 6c 20 6e 61 6d |s a term|inal nam|
|00005b20| 65 20 65 78 70 6c 69 63 | 69 74 6c 79 20 77 68 65 |e explic|itly whe|
|00005b30| 6e 20 69 74 20 72 65 63 | 6f 6e 6e 65 63 74 73 2e |n it rec|onnects.|
|00005b40| 20 49 66 20 61 6e 79 20 | 6f 66 20 79 6f 75 72 20 | If any |of your |
|00005b50| 74 74 79 0a 58 28 6e 6f | 74 20 6a 75 73 74 20 70 |tty.X(no|t just p|
|00005b60| 73 65 75 64 6f 2d 74 74 | 79 21 29 20 66 69 6c 65 |seudo-tt|y!) file|
|00005b70| 6e 61 6d 65 73 20 61 72 | 65 20 6c 6f 6e 67 65 72 |names ar|e longer|
|00005b80| 20 74 68 61 6e 20 33 30 | 20 63 68 61 72 61 63 74 | than 30| charact|
|00005b90| 65 72 73 2c 20 79 6f 75 | 20 68 61 76 65 0a 58 74 |ers, you| have.Xt|
|00005ba0| 6f 20 73 65 74 20 2d 44 | 54 54 59 4e 41 4d 45 4c |o set -D|TTYNAMEL|
|00005bb0| 45 4e 3d 36 30 20 28 6f | 72 20 77 68 61 74 65 76 |EN=60 (o|r whatev|
|00005bc0| 65 72 29 20 69 6e 20 74 | 68 65 20 4d 61 6b 65 66 |er) in t|he Makef|
|00005bd0| 69 6c 65 2e 0a 58 27 0a | 58 0a 58 65 63 68 6f 20 |ile..X'.|X.Xecho |
|00005be0| 27 2d 2d 2d 2d 2d 20 50 | 72 65 73 73 20 72 65 74 |'----- P|ress ret|
|00005bf0| 75 72 6e 20 74 6f 20 63 | 6f 6e 74 69 6e 75 65 2e |urn to c|ontinue.|
|00005c00| 20 27 20 7c 20 74 72 20 | 2d 64 20 27 5c 30 31 32 | ' | tr |-d '\012|
|00005c10| 27 3b 20 72 65 61 64 20 | 63 6f 6e 74 6c 69 6e 65 |'; read |contline|
|00005c20| 0a 58 0a 58 65 63 68 6f | 20 27 0a 58 2f 65 74 63 |.X.Xecho| '.X/etc|
|00005c30| 2f 75 74 6d 70 20 68 61 | 73 20 74 72 61 64 69 74 |/utmp ha|s tradit|
|00005c40| 69 6f 6e 61 6c 6c 79 20 | 6c 69 73 74 65 64 20 61 |ionally |listed a|
|00005c50| 6c 6c 20 75 73 65 72 73 | 20 6c 6f 67 67 65 64 20 |ll users| logged |
|00005c60| 6f 6e 2e 0a 58 54 68 69 | 73 20 6e 65 62 75 6c 6f |on..XThi|s nebulo|
|00005c70| 75 73 20 63 6f 6e 63 65 | 70 74 20 68 61 73 20 65 |us conce|pt has e|
|00005c80| 76 6f 6c 76 65 64 20 74 | 68 72 6f 75 67 68 20 74 |volved t|hrough t|
|00005c90| 68 65 20 79 65 61 72 73 | 3b 20 67 69 76 65 6e 20 |he years|; given |
|00005ca0| 74 68 65 20 77 61 79 0a | 58 74 68 61 74 20 6d 6f |the way.|Xthat mo|
|00005cb0| 73 74 20 70 72 6f 67 72 | 61 6d 73 20 75 73 65 20 |st progr|ams use |
|00005cc0| 75 74 6d 70 2c 20 75 74 | 6d 70 20 69 73 20 70 72 |utmp, ut|mp is pr|
|00005cd0| 6f 62 61 62 6c 79 20 62 | 65 74 74 65 72 20 64 65 |obably b|etter de|
|00005ce0| 66 69 6e 65 64 20 61 73 | 20 61 0a 58 6c 69 73 74 |fined as| a.Xlist|
|00005cf0| 20 6f 66 20 61 6c 6c 20 | 69 6e 74 65 72 61 63 74 | of all |interact|
|00005d00| 69 76 65 20 73 65 73 73 | 69 6f 6e 73 2e 20 41 6e |ive sess|ions. An|
|00005d10| 79 77 61 79 2c 20 70 74 | 79 20 73 75 70 70 6f 72 |yway, pt|y suppor|
|00005d20| 74 73 20 74 68 69 73 20 | 66 69 6c 65 2c 0a 58 61 |ts this |file,.Xa|
|00005d30| 6e 64 20 77 69 6c 6c 20 | 6d 61 6b 65 20 61 6e 20 |nd will |make an |
|00005d40| 65 6e 74 72 79 20 69 6e | 20 69 74 20 77 68 65 6e |entry in| it when|
|00005d50| 20 67 69 76 65 6e 20 2d | 78 75 2e 20 49 66 20 79 | given -|xu. If y|
|00005d60| 6f 75 20 68 61 76 65 20 | 61 20 64 69 66 66 65 72 |ou have |a differ|
|00005d70| 65 6e 74 0a 58 66 69 6c | 65 2c 20 61 64 64 20 2d |ent.Xfil|e, add -|
|00005d80| 44 50 54 59 55 54 4d 50 | 5f 46 49 4c 45 3d 5c 22 |DPTYUTMP|_FILE=\"|
|00005d90| 2f 66 6f 6f 2f 62 61 72 | 2f 75 74 6d 70 5c 22 20 |/foo/bar|/utmp\" |
|00005da0| 74 6f 20 44 45 46 49 4e | 45 53 20 69 6e 20 74 68 |to DEFIN|ES in th|
|00005db0| 65 20 4d 61 6b 65 66 69 | 6c 65 2e 0a 58 0a 58 4e |e Makefi|le..X.XN|
|00005dc0| 6f 74 65 20 74 68 61 74 | 20 2f 65 74 63 2f 75 74 |ote that| /etc/ut|
|00005dd0| 6d 70 20 69 73 20 75 6e | 70 72 6f 74 65 63 74 65 |mp is un|protecte|
|00005de0| 64 20 28 6d 6f 64 65 20 | 36 36 36 29 20 6f 6e 20 |d (mode |666) on |
|00005df0| 53 75 6e 73 2e 20 54 68 | 69 73 20 77 61 73 20 53 |Suns. Th|is was S|
|00005e00| 75 6e 27 5c 27 27 73 0a | 58 61 74 74 65 6d 70 74 |un'\''s.|Xattempt|
|00005e10| 20 74 6f 20 6c 65 74 20 | 75 6e 70 72 69 76 69 6c | to let |unprivil|
|00005e20| 65 67 65 64 20 70 72 6f | 67 72 61 6d 73 20 6d 61 |eged pro|grams ma|
|00005e30| 6e 61 67 65 20 74 68 65 | 20 66 69 6c 65 2e 20 55 |nage the| file. U|
|00005e40| 6e 66 6f 72 75 6e 61 74 | 65 6c 79 2c 20 74 68 69 |nforunat|ely, thi|
|00005e50| 73 0a 58 65 72 72 6f 72 | 20 69 6e 20 6a 75 64 67 |s.Xerror| in judg|
|00005e60| 6d 65 6e 74 20 6f 70 65 | 6e 73 20 75 70 20 61 20 |ment ope|ns up a |
|00005e70| 68 75 67 65 20 73 65 63 | 75 72 69 74 79 20 68 6f |huge sec|urity ho|
|00005e80| 6c 65 2c 20 77 68 69 63 | 68 20 65 76 65 6e 20 6f |le, whic|h even o|
|00005e90| 6e 0a 58 73 69 6e 67 6c | 65 2d 75 73 65 72 20 6d |n.Xsingl|e-user m|
|00005ea0| 61 63 68 69 6e 65 73 20 | 69 73 20 61 6e 20 69 6e |achines |is an in|
|00005eb0| 76 69 74 61 74 69 6f 6e | 20 74 6f 20 6d 61 6b 65 |vitation| to make|
|00005ec0| 20 6d 69 73 74 61 6b 65 | 73 2e 20 49 20 61 64 76 | mistake|s. I adv|
|00005ed0| 69 73 65 20 79 6f 75 20 | 74 6f 0a 58 6d 61 6b 65 |ise you |to.Xmake|
|00005ee0| 20 2f 65 74 63 2f 75 74 | 6d 70 20 6f 77 6e 65 64 | /etc/ut|mp owned|
|00005ef0| 20 62 79 20 72 6f 6f 74 | 20 69 6e 20 43 61 73 65 | by root| in Case|
|00005f00| 20 52 4f 4f 54 20 6f 72 | 20 70 74 79 20 69 6e 20 | ROOT or| pty in |
|00005f10| 43 61 73 65 20 50 54 59 | 2c 20 6d 6f 64 65 20 36 |Case PTY|, mode 6|
|00005f20| 34 34 2e 0a 58 54 68 65 | 72 65 20 61 72 65 6e 27 |44..XThe|re aren'|
|00005f30| 5c 27 27 74 20 6d 61 6e | 79 20 75 6e 70 72 69 76 |\''t man|y unpriv|
|00005f40| 69 6c 65 67 65 64 20 70 | 72 6f 67 72 61 6d 73 20 |ileged p|rograms |
|00005f50| 74 68 61 74 20 64 6f 6e | 27 5c 27 27 74 20 75 6e |that don|'\''t un|
|00005f60| 64 65 72 73 74 61 6e 64 | 20 74 68 65 0a 58 70 74 |derstand| the.Xpt|
|00005f70| 79 20 69 6e 74 65 72 66 | 61 63 65 3b 20 70 65 6f |y interf|ace; peo|
|00005f80| 70 6c 65 20 6f 6e 20 6e | 6f 6e 2d 53 75 6e 73 20 |ple on n|on-Suns |
|00005f90| 68 61 76 65 20 73 75 72 | 76 69 76 65 64 20 73 6f |have sur|vived so|
|00005fa0| 20 66 61 72 2c 20 61 6e | 64 20 74 68 65 72 65 27 | far, an|d there'|
|00005fb0| 5c 27 27 73 0a 58 6e 6f | 20 72 65 61 73 6f 6e 20 |\''s.Xno| reason |
|00005fc0| 66 6f 72 20 79 6f 75 20 | 74 6f 20 6b 65 65 70 20 |for you |to keep |
|00005fd0| 73 75 62 73 63 72 69 62 | 69 6e 67 20 74 6f 20 61 |subscrib|ing to a|
|00005fe0| 6e 20 69 6e 73 65 63 75 | 72 65 20 6d 6f 64 65 6c |n insecu|re model|
|00005ff0| 20 6f 66 20 72 65 73 6f | 75 72 63 65 0a 58 73 68 | of reso|urce.Xsh|
|00006000| 61 72 69 6e 67 2e 0a 58 | 27 0a 58 0a 58 65 63 68 |aring..X|'.X.Xech|
|00006010| 6f 20 27 2d 2d 2d 2d 2d | 20 50 72 65 73 73 20 72 |o '-----| Press r|
|00006020| 65 74 75 72 6e 20 74 6f | 20 63 6f 6e 74 69 6e 75 |eturn to| continu|
|00006030| 65 2e 20 27 20 7c 20 74 | 72 20 2d 64 20 27 5c 30 |e. ' | t|r -d '\0|
|00006040| 31 32 27 3b 20 72 65 61 | 64 20 63 6f 6e 74 6c 69 |12'; rea|d contli|
|00006050| 6e 65 0a 58 0a 58 65 63 | 68 6f 20 27 0a 58 41 6c |ne.X.Xec|ho '.XAl|
|00006060| 74 68 6f 75 67 68 20 70 | 74 79 20 77 69 6c 6c 20 |though p|ty will |
|00006070| 70 75 74 20 61 6e 20 65 | 6e 74 72 79 20 69 6e 74 |put an e|ntry int|
|00006080| 6f 20 75 74 6d 70 2c 20 | 69 74 20 64 6f 65 73 6e |o utmp, |it doesn|
|00006090| 27 5c 27 27 74 20 72 65 | 61 6c 6c 79 20 73 75 70 |'\''t re|ally sup|
|000060a0| 70 6f 72 74 0a 58 74 68 | 65 20 72 65 6d 6f 74 65 |port.Xth|e remote|
|000060b0| 2d 68 6f 73 74 20 66 69 | 65 6c 64 2e 20 54 68 65 |-host fi|eld. The|
|000060c0| 72 65 20 69 73 20 6e 6f | 20 6c 6f 67 69 63 61 6c |re is no| logical|
|000060d0| 20 61 73 73 6f 63 69 61 | 74 69 6f 6e 20 62 65 74 | associa|tion bet|
|000060e0| 77 65 65 6e 20 73 65 73 | 73 69 6f 6e 73 0a 58 61 |ween ses|sions.Xa|
|000060f0| 6e 64 20 63 6f 6e 6e 65 | 63 74 69 6f 6e 73 3b 20 |nd conne|ctions; |
|00006100| 77 68 79 20 73 68 6f 75 | 6c 64 20 61 20 6c 6f 67 |why shou|ld a log|
|00006110| 69 6e 20 72 65 71 75 69 | 72 65 20 61 20 70 74 79 |in requi|re a pty|
|00006120| 2c 20 61 6e 64 20 77 68 | 79 20 73 68 6f 75 6c 64 |, and wh|y should|
|00006130| 20 61 0a 58 73 65 73 73 | 69 6f 6e 20 6f 6e 6c 79 | a.Xsess|ion only|
|00006140| 20 73 74 69 63 6b 20 61 | 72 6f 75 6e 64 20 66 6f | stick a|round fo|
|00006150| 72 20 6f 6e 65 20 63 6f | 6e 6e 65 63 74 69 6f 6e |r one co|nnection|
|00006160| 3f 20 53 6f 20 70 74 79 | 20 6a 75 73 74 20 70 75 |? So pty| just pu|
|00006170| 74 73 20 22 70 74 79 22 | 20 69 6e 0a 58 74 68 65 |ts "pty"| in.Xthe|
|00006180| 20 68 6f 73 74 20 66 69 | 65 6c 64 2e 20 59 6f 75 | host fi|eld. You|
|00006190| 20 63 61 6e 20 63 68 61 | 6e 67 65 20 74 68 69 73 | can cha|nge this|
|000061a0| 20 77 69 74 68 20 2d 44 | 50 54 59 55 54 4d 50 5f | with -D|PTYUTMP_|
|000061b0| 48 4f 53 54 3d 5c 22 66 | 6f 6f 5c 22 3b 20 79 6f |HOST=\"f|oo\"; yo|
|000061c0| 75 20 6d 61 79 0a 58 65 | 76 65 6e 20 77 61 6e 74 |u may.Xe|ven want|
|000061d0| 20 74 6f 20 6d 61 6b 65 | 20 50 54 59 5f 55 54 4d | to make| PTY_UTM|
|000061e0| 50 48 4f 53 54 20 63 61 | 6c 6c 20 61 20 66 75 6e |PHOST ca|ll a fun|
|000061f0| 63 74 69 6f 6e 20 74 68 | 61 74 20 79 6f 75 20 64 |ction th|at you d|
|00006200| 65 66 69 6e 65 2e 0a 58 | 0a 58 28 53 69 6d 69 6c |efine..X|.X(Simil|
|00006210| 61 72 20 63 6f 6d 6d 65 | 6e 74 73 20 61 70 70 6c |ar comme|nts appl|
|00006220| 79 20 74 6f 20 50 54 59 | 57 54 4d 50 5f 48 4f 53 |y to PTY|WTMP_HOS|
|00006230| 54 2e 20 54 68 65 72 65 | 20 61 72 65 20 61 6c 73 |T. There| are als|
|00006240| 6f 20 50 54 59 55 54 4d | 50 5f 53 57 48 4f 53 54 |o PTYUTM|P_SWHOST|
|00006250| 0a 58 61 6e 64 20 50 54 | 59 57 54 4d 50 5f 53 57 |.Xand PT|YWTMP_SW|
|00006260| 48 4f 53 54 2c 20 64 65 | 66 61 75 6c 74 73 20 50 |HOST, de|faults P|
|00006270| 54 59 55 54 4d 50 5f 48 | 4f 53 54 20 61 6e 64 20 |TYUTMP_H|OST and |
|00006280| 22 70 74 79 2d 73 65 73 | 73 75 73 65 72 22 0a 58 |"pty-ses|suser".X|
|00006290| 72 65 73 70 65 63 74 69 | 76 65 6c 79 3b 20 73 65 |respecti|vely; se|
|000062a0| 65 20 75 74 69 6c 2f 73 | 65 73 73 75 73 65 72 2e |e util/s|essuser.|
|000062b0| 31 20 66 6f 72 20 6d 6f | 72 65 20 69 6e 66 6f 72 |1 for mo|re infor|
|000062c0| 6d 61 74 69 6f 6e 2e 29 | 0a 58 27 0a 58 0a 58 65 |mation.)|.X'.X.Xe|
|000062d0| 63 68 6f 20 27 2d 2d 2d | 2d 2d 20 50 72 65 73 73 |cho '---|-- Press|
|000062e0| 20 72 65 74 75 72 6e 20 | 74 6f 20 63 6f 6e 74 69 | return |to conti|
|000062f0| 6e 75 65 2e 20 27 20 7c | 20 74 72 20 2d 64 20 27 |nue. ' || tr -d '|
|00006300| 5c 30 31 32 27 3b 20 72 | 65 61 64 20 63 6f 6e 74 |\012'; r|ead cont|
|00006310| 6c 69 6e 65 0a 58 0a 58 | 65 63 68 6f 20 27 0a 58 |line.X.X|echo '.X|
|00006320| 2f 75 73 72 2f 61 64 6d | 2f 77 74 6d 70 20 68 61 |/usr/adm|/wtmp ha|
|00006330| 73 20 74 72 61 64 69 74 | 69 6f 6e 61 6c 6c 79 20 |s tradit|ionally |
|00006340| 72 65 63 6f 72 64 65 64 | 20 61 6c 6c 20 6c 6f 67 |recorded| all log|
|00006350| 69 6e 73 2c 20 6c 6f 67 | 6f 75 74 73 2c 20 72 65 |ins, log|outs, re|
|00006360| 62 6f 6f 74 73 2c 0a 58 | 66 74 70 20 73 65 73 73 |boots,.X|ftp sess|
|00006370| 69 6f 6e 73 2c 20 61 6e | 64 20 76 61 72 69 6f 75 |ions, an|d variou|
|00006380| 73 20 6f 74 68 65 72 20 | 69 6e 74 65 72 65 73 74 |s other |interest|
|00006390| 69 6e 67 20 65 76 65 6e | 74 73 2e 20 28 54 68 65 |ing even|ts. (The|
|000063a0| 20 65 6e 74 72 79 20 66 | 6f 72 20 61 0a 58 6c 69 | entry f|or a.Xli|
|000063b0| 6e 65 20 69 6e 20 75 74 | 6d 70 20 69 73 20 74 68 |ne in ut|mp is th|
|000063c0| 65 20 6c 61 73 74 20 65 | 6e 74 72 79 20 66 6f 72 |e last e|ntry for|
|000063d0| 20 74 68 61 74 20 6c 69 | 6e 65 20 69 6e 20 77 74 | that li|ne in wt|
|000063e0| 6d 70 2e 29 20 70 74 79 | 20 73 75 70 70 6f 72 74 |mp.) pty| support|
|000063f0| 73 20 77 74 6d 70 0a 58 | 66 75 6c 6c 79 2c 20 69 |s wtmp.X|fully, i|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.