home *** CD-ROM | disk | FTP | other *** search
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).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| ASCII text
| 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)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 73 6f 75 72 63 65 73 | 2e 6d 69 73 63 0a 46 72 |.sources|.misc.Fr|
|00000020| 6f 6d 3a 20 77 69 65 74 | 73 65 40 77 7a 76 2e 77 |om: wiet|se@wzv.w|
|00000030| 69 6e 2e 74 75 65 2e 6e | 6c 20 28 57 69 65 74 73 |in.tue.n|l (Wiets|
|00000040| 65 20 56 65 6e 65 6d 61 | 29 0a 53 75 62 6a 65 63 |e Venema|).Subjec|
|00000050| 74 3a 20 76 33 36 69 30 | 30 36 3a 20 20 6c 6f 67 |t: v36i0|06: log|
|00000060| 5f 74 63 70 20 2d 20 54 | 43 50 2f 49 50 20 64 61 |_tcp - T|CP/IP da|
|00000070| 65 6d 6f 6e 20 77 72 61 | 70 70 65 72 2c 20 76 35 |emon wra|pper, v5|
|00000080| 2e 30 2c 20 50 61 72 74 | 30 33 2f 30 33 0a 4d 65 |.0, Part|03/03.Me|
|00000090| 73 73 61 67 65 2d 49 44 | 3a 20 3c 31 39 39 33 4d |ssage-ID|: <1993M|
|000000a0| 61 72 38 2e 30 34 31 34 | 32 35 2e 32 32 35 37 30 |ar8.0414|25.22570|
|000000b0| 40 73 70 61 72 6b 79 2e | 69 6d 64 2e 73 74 65 72 |@sparky.|imd.ster|
|000000c0| 6c 69 6e 67 2e 63 6f 6d | 3e 0a 58 2d 4d 64 34 2d |ling.com|>.X-Md4-|
|000000d0| 53 69 67 6e 61 74 75 72 | 65 3a 20 61 64 34 62 36 |Signatur|e: ad4b6|
|000000e0| 31 34 32 31 30 61 63 39 | 65 63 31 63 62 65 65 62 |14210ac9|ec1cbeeb|
|000000f0| 64 36 66 35 36 34 30 65 | 39 65 35 0a 44 61 74 65 |d6f5640e|9e5.Date|
|00000100| 3a 20 4d 6f 6e 2c 20 38 | 20 4d 61 72 20 31 39 39 |: Mon, 8| Mar 199|
|00000110| 33 20 30 34 3a 31 34 3a | 32 35 20 47 4d 54 0a 41 |3 04:14:|25 GMT.A|
|00000120| 70 70 72 6f 76 65 64 3a | 20 6b 65 6e 74 40 73 70 |pproved:| kent@sp|
|00000130| 61 72 6b 79 2e 69 6d 64 | 2e 73 74 65 72 6c 69 6e |arky.imd|.sterlin|
|00000140| 67 2e 63 6f 6d 0a 0a 53 | 75 62 6d 69 74 74 65 64 |g.com..S|ubmitted|
|00000150| 2d 62 79 3a 20 77 69 65 | 74 73 65 40 77 7a 76 2e |-by: wie|tse@wzv.|
|00000160| 77 69 6e 2e 74 75 65 2e | 6e 6c 20 28 57 69 65 74 |win.tue.|nl (Wiet|
|00000170| 73 65 20 56 65 6e 65 6d | 61 29 0a 50 6f 73 74 69 |se Venem|a).Posti|
|00000180| 6e 67 2d 6e 75 6d 62 65 | 72 3a 20 56 6f 6c 75 6d |ng-numbe|r: Volum|
|00000190| 65 20 33 36 2c 20 49 73 | 73 75 65 20 36 0a 41 72 |e 36, Is|sue 6.Ar|
|000001a0| 63 68 69 76 65 2d 6e 61 | 6d 65 3a 20 6c 6f 67 5f |chive-na|me: log_|
|000001b0| 74 63 70 2f 70 61 72 74 | 30 33 0a 45 6e 76 69 72 |tcp/part|03.Envir|
|000001c0| 6f 6e 6d 65 6e 74 3a 20 | 55 4e 49 58 0a 53 75 70 |onment: |UNIX.Sup|
|000001d0| 65 72 73 65 64 65 73 3a | 20 6c 6f 67 5f 74 63 70 |ersedes:| log_tcp|
|000001e0| 3a 20 56 6f 6c 75 6d 65 | 20 33 30 2c 20 49 73 73 |: Volume| 30, Iss|
|000001f0| 75 65 20 37 39 2d 38 30 | 0a 0a 23 21 20 2f 62 69 |ue 79-80|..#! /bi|
|00000200| 6e 2f 73 68 0a 23 20 54 | 68 69 73 20 69 73 20 61 |n/sh.# T|his is a|
|00000210| 20 73 68 65 6c 6c 20 61 | 72 63 68 69 76 65 2e 20 | shell a|rchive. |
|00000220| 20 52 65 6d 6f 76 65 20 | 61 6e 79 74 68 69 6e 67 | Remove |anything|
|00000230| 20 62 65 66 6f 72 65 20 | 74 68 69 73 20 6c 69 6e | before |this lin|
|00000240| 65 2c 20 74 68 65 6e 20 | 75 6e 70 61 63 6b 0a 23 |e, then |unpack.#|
|00000250| 20 69 74 20 62 79 20 73 | 61 76 69 6e 67 20 69 74 | it by s|aving it|
|00000260| 20 69 6e 74 6f 20 61 20 | 66 69 6c 65 20 61 6e 64 | into a |file and|
|00000270| 20 74 79 70 69 6e 67 20 | 22 73 68 20 66 69 6c 65 | typing |"sh file|
|00000280| 22 2e 20 20 54 6f 20 6f | 76 65 72 77 72 69 74 65 |". To o|verwrite|
|00000290| 20 65 78 69 73 74 69 6e | 67 0a 23 20 66 69 6c 65 | existin|g.# file|
|000002a0| 73 2c 20 74 79 70 65 20 | 22 73 68 20 66 69 6c 65 |s, type |"sh file|
|000002b0| 20 2d 63 22 2e 20 20 59 | 6f 75 20 63 61 6e 20 61 | -c". Y|ou can a|
|000002c0| 6c 73 6f 20 66 65 65 64 | 20 74 68 69 73 20 61 73 |lso feed| this as|
|000002d0| 20 73 74 61 6e 64 61 72 | 64 20 69 6e 70 75 74 20 | standar|d input |
|000002e0| 76 69 61 0a 23 20 75 6e | 73 68 61 72 2c 20 6f 72 |via.# un|shar, or|
|000002f0| 20 62 79 20 74 79 70 69 | 6e 67 20 22 73 68 20 3c | by typi|ng "sh <|
|00000300| 66 69 6c 65 22 2c 20 65 | 2e 67 2e 2e 20 20 49 66 |file", e|.g.. If|
|00000310| 20 74 68 69 73 20 61 72 | 63 68 69 76 65 20 69 73 | this ar|chive is|
|00000320| 20 63 6f 6d 70 6c 65 74 | 65 2c 20 79 6f 75 0a 23 | complet|e, you.#|
|00000330| 20 77 69 6c 6c 20 73 65 | 65 20 74 68 65 20 66 6f | will se|e the fo|
|00000340| 6c 6c 6f 77 69 6e 67 20 | 6d 65 73 73 61 67 65 20 |llowing |message |
|00000350| 61 74 20 74 68 65 20 65 | 6e 64 3a 0a 23 09 09 22 |at the e|nd:.#.."|
|00000360| 45 6e 64 20 6f 66 20 61 | 72 63 68 69 76 65 20 33 |End of a|rchive 3|
|00000370| 20 28 6f 66 20 33 29 2e | 22 0a 23 20 43 6f 6e 74 | (of 3).|".# Cont|
|00000380| 65 6e 74 73 3a 20 20 4d | 61 6b 65 66 69 6c 65 2e |ents: M|akefile.|
|00000390| 64 69 73 74 20 68 6f 73 | 74 73 5f 61 63 63 65 73 |dist hos|ts_acces|
|000003a0| 73 2e 63 20 6f 70 74 69 | 6f 6e 73 2e 63 0a 23 20 |s.c opti|ons.c.# |
|000003b0| 57 72 61 70 70 65 64 20 | 62 79 20 77 69 65 74 73 |Wrapped |by wiets|
|000003c0| 65 40 77 7a 76 20 6f 6e | 20 53 75 6e 20 4d 61 72 |e@wzv on| Sun Mar|
|000003d0| 20 20 37 20 32 32 3a 35 | 38 3a 32 37 20 31 39 39 | 7 22:5|8:27 199|
|000003e0| 33 0a 50 41 54 48 3d 2f | 62 69 6e 3a 2f 75 73 72 |3.PATH=/|bin:/usr|
|000003f0| 2f 62 69 6e 3a 2f 75 73 | 72 2f 75 63 62 20 3b 20 |/bin:/us|r/ucb ; |
|00000400| 65 78 70 6f 72 74 20 50 | 41 54 48 0a 69 66 20 74 |export P|ATH.if t|
|00000410| 65 73 74 20 2d 66 20 4d | 61 6b 65 66 69 6c 65 2e |est -f M|akefile.|
|00000420| 64 69 73 74 20 2d 61 20 | 22 24 7b 31 7d 22 20 21 |dist -a |"${1}" !|
|00000430| 3d 20 22 2d 63 22 20 3b | 20 74 68 65 6e 20 0a 20 |= "-c" ;| then . |
|00000440| 20 65 63 68 6f 20 73 68 | 61 72 3a 20 57 69 6c 6c | echo sh|ar: Will|
|00000450| 20 6e 6f 74 20 6f 76 65 | 72 2d 77 72 69 74 65 20 | not ove|r-write |
|00000460| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 5c 22 |existing| file \"|
|00000470| 4d 61 6b 65 66 69 6c 65 | 2e 64 69 73 74 5c 22 0a |Makefile|.dist\".|
|00000480| 65 6c 73 65 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |else.ech|o shar: |
|00000490| 45 78 74 72 61 63 74 69 | 6e 67 20 5c 22 4d 61 6b |Extracti|ng \"Mak|
|000004a0| 65 66 69 6c 65 2e 64 69 | 73 74 5c 22 20 5c 28 31 |efile.di|st\" \(1|
|000004b0| 35 32 39 38 20 63 68 61 | 72 61 63 74 65 72 73 5c |5298 cha|racters\|
|000004c0| 29 0a 73 65 64 20 22 73 | 2f 5e 58 2f 2f 22 20 3e |).sed "s|/^X//" >|
|000004d0| 4d 61 6b 65 66 69 6c 65 | 2e 64 69 73 74 20 3c 3c |Makefile|.dist <<|
|000004e0| 27 45 4e 44 5f 4f 46 5f | 4d 61 6b 65 66 69 6c 65 |'END_OF_|Makefile|
|000004f0| 2e 64 69 73 74 27 0a 58 | 23 20 40 28 23 29 20 4d |.dist'.X|# @(#) M|
|00000500| 61 6b 65 66 69 6c 65 2e | 64 69 73 74 20 31 2e 31 |akefile.|dist 1.1|
|00000510| 20 39 33 2f 30 33 2f 30 | 37 20 32 32 3a 34 37 3a | 93/03/0|7 22:47:|
|00000520| 34 35 0a 58 23 20 0a 58 | 23 20 49 66 20 79 6f 75 |45.X# .X|# If you|
|00000530| 20 64 69 64 20 6e 6f 74 | 20 61 6c 72 65 61 64 79 | did not| already|
|00000540| 20 64 6f 20 73 6f 2c 20 | 63 6f 70 79 20 74 68 65 | do so, |copy the|
|00000550| 20 66 69 6c 65 20 4d 61 | 6b 65 66 69 6c 65 2e 64 | file Ma|kefile.d|
|00000560| 69 73 74 20 74 6f 20 4d | 61 6b 65 66 69 6c 65 0a |ist to M|akefile.|
|00000570| 58 23 20 61 6e 64 20 65 | 64 69 74 20 74 68 65 20 |X# and e|dit the |
|00000580| 63 6f 70 79 2c 20 6e 6f | 74 20 74 68 65 20 6f 72 |copy, no|t the or|
|00000590| 69 67 69 6e 61 6c 2e 20 | 48 61 76 65 20 61 20 63 |iginal. |Have a c|
|000005a0| 6f 70 79 20 6f 66 20 74 | 68 65 20 52 45 41 44 4d |opy of t|he READM|
|000005b0| 45 20 66 69 6c 65 20 61 | 74 0a 58 23 20 68 61 6e |E file a|t.X# han|
|000005c0| 64 20 77 68 69 6c 65 20 | 65 64 69 74 69 6e 67 2e |d while |editing.|
|000005d0| 20 49 74 20 67 69 76 65 | 73 20 73 6f 6d 65 20 61 | It give|s some a|
|000005e0| 64 64 69 74 69 6f 6e 61 | 6c 20 62 61 63 6b 67 72 |dditiona|l backgr|
|000005f0| 6f 75 6e 64 2e 0a 58 23 | 0a 58 23 20 46 6f 72 20 |ound..X#|.X# For |
|00000600| 79 6f 75 72 20 63 6f 6e | 76 65 6e 69 65 6e 63 65 |your con|venience|
|00000610| 2c 20 61 6c 6c 20 63 6f | 6e 66 69 67 75 72 61 62 |, all co|nfigurab|
|00000620| 6c 65 20 70 61 72 61 6d | 65 74 65 72 73 20 68 61 |le param|eters ha|
|00000630| 76 65 20 62 65 65 6e 20 | 6d 6f 76 65 64 20 69 6e |ve been |moved in|
|00000640| 74 6f 0a 58 23 20 74 68 | 65 20 4d 61 6b 65 66 69 |to.X# th|e Makefi|
|00000650| 6c 65 2c 20 73 6f 20 74 | 68 61 74 20 79 6f 75 20 |le, so t|hat you |
|00000660| 64 6f 20 6e 6f 74 20 68 | 61 76 65 20 74 6f 20 68 |do not h|ave to h|
|00000670| 61 63 6b 20 74 68 65 20 | 73 6f 75 72 63 65 20 66 |ack the |source f|
|00000680| 69 6c 65 73 20 61 6e 79 | 6d 6f 72 65 2e 0a 58 23 |iles any|more..X#|
|00000690| 0a 58 23 20 53 6f 6d 65 | 20 70 61 72 61 6d 65 74 |.X# Some| paramet|
|000006a0| 65 72 73 20 6d 75 73 74 | 20 61 6c 77 61 79 73 20 |ers must| always |
|000006b0| 62 65 20 73 65 74 20 74 | 6f 20 6d 61 74 63 68 20 |be set t|o match |
|000006c0| 74 68 65 20 6f 70 65 72 | 61 74 69 6e 67 20 65 6e |the oper|ating en|
|000006d0| 76 69 72 6f 6e 6d 65 6e | 74 2e 0a 58 23 20 4f 74 |vironmen|t..X# Ot|
|000006e0| 68 65 72 20 70 61 72 61 | 6d 65 74 65 72 20 73 65 |her para|meter se|
|000006f0| 74 74 69 6e 67 73 20 61 | 72 65 20 61 20 6d 61 74 |ttings a|re a mat|
|00000700| 74 65 72 20 6f 66 20 74 | 61 73 74 65 2e 20 54 68 |ter of t|aste. Th|
|00000710| 65 69 72 20 73 65 63 74 | 69 6f 6e 73 20 68 65 61 |eir sect|ions hea|
|00000720| 64 69 6e 67 73 0a 58 23 | 20 61 72 65 20 6c 61 62 |dings.X#| are lab|
|00000730| 65 6c 65 64 20 22 28 4f | 70 74 69 6f 6e 61 6c 29 |eled "(O|ptional)|
|00000740| 22 2e 20 54 68 65 20 64 | 65 66 61 75 6c 74 73 20 |". The d|efaults |
|00000750| 63 6f 72 72 65 73 70 6f | 6e 64 20 74 6f 20 74 68 |correspo|nd to th|
|00000760| 65 20 70 72 6f 67 72 61 | 6d 73 20 61 73 0a 58 23 |e progra|ms as.X#|
|00000770| 20 64 6f 63 75 6d 65 6e | 74 65 64 20 69 6e 20 74 | documen|ted in t|
|00000780| 68 65 20 6d 61 6e 75 61 | 6c 20 70 61 67 65 73 2e |he manua|l pages.|
|00000790| 0a 58 0a 58 23 23 23 23 | 23 23 23 23 23 23 23 23 |.X.X####|########|
|000007a0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000007b0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000007c0| 23 23 23 23 23 23 23 23 | 23 23 0a 58 23 20 43 68 |########|##.X# Ch|
|000007d0| 6f 69 63 65 20 62 65 74 | 77 65 65 6e 20 65 61 73 |oice bet|ween eas|
|000007e0| 79 20 61 6e 64 20 61 64 | 76 61 6e 63 65 64 20 69 |y and ad|vanced i|
|000007f0| 6e 73 74 61 6c 6c 61 74 | 69 6f 6e 20 72 65 63 69 |nstallat|ion reci|
|00000800| 70 65 0a 58 23 20 0a 58 | 23 20 41 63 63 6f 72 64 |pe.X# .X|# Accord|
|00000810| 69 6e 67 20 74 6f 20 74 | 68 65 20 65 61 73 79 20 |ing to t|he easy |
|00000820| 69 6e 73 74 61 6c 6c 61 | 74 69 6f 6e 20 72 65 63 |installa|tion rec|
|00000830| 69 70 65 20 69 6e 20 74 | 68 65 20 52 45 41 44 4d |ipe in t|he READM|
|00000840| 45 20 66 69 6c 65 2c 20 | 76 65 6e 64 6f 72 2d 0a |E file, |vendor-.|
|00000850| 58 23 20 70 72 6f 76 69 | 64 65 64 20 6e 65 74 77 |X# provi|ded netw|
|00000860| 6f 72 6b 20 64 61 65 6d | 6f 6e 73 20 61 72 65 20 |ork daem|ons are |
|00000870| 6d 6f 76 65 64 20 74 6f | 20 22 73 6f 6d 65 20 6f |moved to| "some o|
|00000880| 74 68 65 72 22 20 64 69 | 72 65 63 74 6f 72 79 2c |ther" di|rectory,|
|00000890| 20 61 6e 64 20 74 68 65 | 0a 58 23 20 74 63 70 64 | and the|.X# tcpd|
|000008a0| 20 77 72 61 70 70 65 72 | 20 66 69 6c 6c 73 20 69 | wrapper| fills i|
|000008b0| 6e 20 74 68 65 20 22 68 | 6f 6c 65 73 22 2e 20 46 |n the "h|oles". F|
|000008c0| 6f 72 20 74 68 69 73 20 | 6d 6f 64 65 20 6f 66 20 |or this |mode of |
|000008d0| 6f 70 65 72 61 74 69 6f | 6e 2c 20 74 68 65 0a 58 |operatio|n, the.X|
|000008e0| 23 20 52 45 41 4c 5f 44 | 41 45 4d 4f 4e 5f 44 49 |# REAL_D|AEMON_DI|
|000008f0| 52 20 6d 61 63 72 6f 20 | 73 68 6f 75 6c 64 20 62 |R macro |should b|
|00000900| 65 20 73 65 74 20 74 6f | 20 74 68 65 20 22 73 6f |e set to| the "so|
|00000910| 6d 65 20 6f 74 68 65 72 | 22 20 64 69 72 65 63 74 |me other|" direct|
|00000920| 6f 72 79 2e 0a 58 23 20 | 55 6e 63 6f 6d 6d 65 6e |ory..X# |Uncommen|
|00000930| 74 20 74 68 65 20 61 70 | 70 72 6f 70 72 69 61 74 |t the ap|propriat|
|00000940| 65 20 6c 69 6e 65 2e 20 | 54 68 65 20 22 2e 2e 2e |e line. |The "...|
|00000950| 22 20 69 73 20 68 65 72 | 65 20 66 6f 72 20 68 69 |" is her|e for hi|
|00000960| 73 74 6f 72 69 63 61 6c | 0a 58 23 20 72 65 61 73 |storical|.X# reas|
|00000970| 6f 6e 73 20 6f 6e 6c 79 | 3b 20 79 6f 75 20 77 69 |ons only|; you wi|
|00000980| 6c 6c 20 70 72 6f 62 61 | 62 6c 79 20 77 61 6e 74 |ll proba|bly want|
|00000990| 20 74 6f 20 75 73 65 20 | 73 6f 6d 65 20 6f 74 68 | to use |some oth|
|000009a0| 65 72 20 6e 61 6d 65 2e | 20 57 61 74 63 68 20 6f |er name.| Watch o|
|000009b0| 75 74 0a 58 23 20 66 6f | 72 20 74 68 65 20 71 75 |ut.X# fo|r the qu|
|000009c0| 6f 74 65 73 20 61 6e 64 | 20 62 61 63 6b 73 6c 61 |otes and| backsla|
|000009d0| 73 68 65 73 2e 0a 58 0a | 58 52 45 41 4c 5f 44 41 |shes..X.|XREAL_DA|
|000009e0| 45 4d 4f 4e 5f 44 49 52 | 3d 5c 22 2f 75 73 72 2f |EMON_DIR|=\"/usr/|
|000009f0| 65 74 63 2f 2e 2e 2e 5c | 22 09 23 20 42 53 44 20 |etc/...\|".# BSD |
|00000a00| 34 2e 33 20 55 6c 74 72 | 69 78 20 34 2e 78 20 53 |4.3 Ultr|ix 4.x S|
|00000a10| 75 6e 4f 53 20 34 2e 78 | 0a 58 23 52 45 41 4c 5f |unOS 4.x|.X#REAL_|
|00000a20| 44 41 45 4d 4f 4e 5f 44 | 49 52 3d 5c 22 2f 75 73 |DAEMON_D|IR=\"/us|
|00000a30| 72 2f 73 62 69 6e 2f 2e | 2e 2e 5c 22 09 23 20 53 |r/sbin/.|..\".# S|
|00000a40| 79 73 56 2e 34 20 53 6f | 6c 61 72 69 73 20 32 2e |ysV.4 So|laris 2.|
|00000a50| 78 0a 58 23 52 45 41 4c | 5f 44 41 45 4d 4f 4e 5f |x.X#REAL|_DAEMON_|
|00000a60| 44 49 52 3d 5c 22 2f 75 | 73 72 2f 6c 69 62 65 78 |DIR=\"/u|sr/libex|
|00000a70| 65 63 2f 2e 2e 2e 5c 22 | 09 23 20 42 53 44 20 34 |ec/...\"|.# BSD 4|
|00000a80| 2e 34 0a 58 0a 58 23 20 | 41 63 63 6f 72 64 69 6e |.4.X.X# |Accordin|
|00000a90| 67 20 74 6f 20 74 68 65 | 20 61 64 76 61 6e 63 65 |g to the| advance|
|00000aa0| 64 20 69 6e 73 74 61 6c | 6c 61 74 69 6f 6e 20 72 |d instal|lation r|
|00000ab0| 65 63 69 70 65 2c 20 76 | 65 6e 64 6f 72 2d 70 72 |ecipe, v|endor-pr|
|00000ac0| 6f 76 69 64 65 64 20 64 | 61 65 6d 6f 6e 73 0a 58 |ovided d|aemons.X|
|00000ad0| 23 20 61 72 65 20 6c 65 | 66 74 20 61 6c 6f 6e 65 |# are le|ft alone|
|00000ae0| 2c 20 61 6e 64 20 74 68 | 65 20 69 6e 65 74 64 20 |, and th|e inetd |
|00000af0| 66 69 6c 65 20 69 73 20 | 65 64 69 74 65 64 20 69 |file is |edited i|
|00000b00| 6e 73 74 65 61 64 2e 20 | 49 6e 20 74 68 61 74 20 |nstead. |In that |
|00000b10| 63 61 73 65 2c 20 74 68 | 65 0a 58 23 20 52 45 41 |case, th|e.X# REA|
|00000b20| 4c 5f 44 41 45 4d 4f 4e | 5f 44 49 52 20 6d 61 63 |L_DAEMON|_DIR mac|
|00000b30| 72 6f 20 73 68 6f 75 6c | 64 20 72 65 66 6c 65 63 |ro shoul|d reflec|
|00000b40| 74 20 74 68 65 20 61 63 | 74 75 61 6c 20 64 69 72 |t the ac|tual dir|
|00000b50| 65 63 74 6f 72 79 20 77 | 69 74 68 20 28 6d 6f 73 |ectory w|ith (mos|
|00000b60| 74 20 6f 66 29 0a 58 23 | 20 79 6f 75 72 20 76 65 |t of).X#| your ve|
|00000b70| 6e 64 6f 72 2d 70 72 6f | 76 69 64 65 64 20 6e 65 |ndor-pro|vided ne|
|00000b80| 74 77 6f 72 6b 20 64 61 | 65 6d 6f 6e 73 2e 20 20 |twork da|emons. |
|00000b90| 55 6e 63 6f 6d 6d 65 6e | 74 20 74 68 65 20 61 70 |Uncommen|t the ap|
|00000ba0| 70 72 6f 70 72 69 61 74 | 65 20 6c 69 6e 65 2e 0a |propriat|e line..|
|00000bb0| 58 0a 58 23 52 45 41 4c | 5f 44 41 45 4d 4f 4e 5f |X.X#REAL|_DAEMON_|
|00000bc0| 44 49 52 3d 5c 22 2f 75 | 73 72 2f 65 74 63 5c 22 |DIR=\"/u|sr/etc\"|
|00000bd0| 09 09 23 20 42 53 44 20 | 34 2e 33 20 55 6c 74 72 |..# BSD |4.3 Ultr|
|00000be0| 69 78 20 34 2e 78 20 53 | 75 6e 4f 53 20 34 2e 78 |ix 4.x S|unOS 4.x|
|00000bf0| 0a 58 23 52 45 41 4c 5f | 44 41 45 4d 4f 4e 5f 44 |.X#REAL_|DAEMON_D|
|00000c00| 49 52 3d 5c 22 2f 75 73 | 72 2f 73 62 69 6e 5c 22 |IR=\"/us|r/sbin\"|
|00000c10| 09 09 23 20 53 79 73 56 | 2e 34 20 53 6f 6c 61 72 |..# SysV|.4 Solar|
|00000c20| 69 73 20 32 2e 78 0a 58 | 23 52 45 41 4c 5f 44 41 |is 2.x.X|#REAL_DA|
|00000c30| 45 4d 4f 4e 5f 44 49 52 | 3d 5c 22 2f 75 73 72 2f |EMON_DIR|=\"/usr/|
|00000c40| 6c 69 62 65 78 65 63 5c | 22 09 23 20 42 53 44 20 |libexec\|".# BSD |
|00000c50| 34 2e 34 0a 58 0a 58 23 | 23 23 23 23 23 23 23 23 |4.4.X.X#|########|
|00000c60| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000c70| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000c80| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000c90| 0a 58 23 20 44 69 66 66 | 65 72 65 6e 63 65 73 20 |.X# Diff|erences |
|00000ca0| 62 65 74 77 65 65 6e 20 | 72 61 6e 6c 69 62 28 31 |between |ranlib(1|
|00000cb0| 29 20 61 6e 64 20 61 72 | 28 31 29 20 69 6d 70 6c |) and ar|(1) impl|
|00000cc0| 65 6d 65 6e 74 61 74 69 | 6f 6e 73 0a 58 23 0a 58 |ementati|ons.X#.X|
|00000cd0| 23 20 53 6f 6d 65 20 43 | 20 63 6f 6d 70 69 6c 65 |# Some C| compile|
|00000ce0| 72 73 20 28 55 6c 74 72 | 69 78 20 34 2e 78 29 20 |rs (Ultr|ix 4.x) |
|00000cf0| 69 6e 73 69 73 74 20 74 | 68 61 74 20 72 61 6e 6c |insist t|hat ranl|
|00000d00| 69 62 28 31 29 20 62 65 | 20 72 75 6e 20 6f 6e 20 |ib(1) be| run on |
|00000d10| 61 6e 20 6f 62 6a 65 63 | 74 0a 58 23 20 6c 69 62 |an objec|t.X# lib|
|00000d20| 72 61 72 79 3b 20 73 6f | 6d 65 20 64 6f 6e 27 74 |rary; so|me don't|
|00000d30| 20 63 61 72 65 20 61 73 | 20 6c 6f 6e 67 20 61 73 | care as| long as|
|00000d40| 20 74 68 65 20 6d 6f 64 | 75 6c 65 73 20 61 72 65 | the mod|ules are|
|00000d50| 20 69 6e 20 74 68 65 20 | 72 69 67 68 74 20 6f 72 | in the |right or|
|00000d60| 64 65 72 3b 0a 58 23 20 | 73 6f 6d 65 20 73 79 73 |der;.X# |some sys|
|00000d70| 74 65 6d 73 20 64 6f 6e | 27 74 20 65 76 65 6e 20 |tems don|'t even |
|00000d80| 68 61 76 65 20 61 20 72 | 61 6e 6c 69 62 28 31 29 |have a r|anlib(1)|
|00000d90| 20 63 6f 6d 6d 61 6e 64 | 2e 20 53 47 49 20 49 52 | command|. SGI IR|
|00000da0| 49 58 20 75 73 65 73 20 | 74 68 65 20 27 73 27 0a |IX uses |the 's'.|
|00000db0| 58 23 20 6f 70 74 69 6f | 6e 20 74 6f 20 74 68 65 |X# optio|n to the|
|00000dc0| 20 27 61 72 27 20 63 6f | 6d 6d 61 6e 64 20 69 6e | 'ar' co|mmand in|
|00000dd0| 73 74 65 61 64 2e 20 4d | 61 6b 65 20 79 6f 75 72 |stead. M|ake your|
|00000de0| 20 63 68 6f 69 63 65 2e | 0a 58 0a 58 52 41 4e 4c | choice.|.X.XRANL|
|00000df0| 49 42 09 3d 20 72 61 6e | 6c 69 62 09 23 20 68 61 |IB.= ran|lib.# ha|
|00000e00| 76 65 20 72 61 6e 6c 69 | 62 20 28 42 53 44 2d 69 |ve ranli|b (BSD-i|
|00000e10| 73 68 20 55 4e 49 58 29 | 0a 58 23 52 41 4e 4c 49 |sh UNIX)|.X#RANLI|
|00000e20| 42 09 3d 20 65 63 68 6f | 09 09 23 20 6e 6f 20 72 |B.= echo|..# no r|
|00000e30| 61 6e 6c 69 62 20 28 53 | 59 53 56 2d 69 73 68 20 |anlib (S|YSV-ish |
|00000e40| 55 4e 49 58 29 0a 58 0a | 58 41 52 46 4c 41 47 53 |UNIX).X.|XARFLAGS|
|00000e50| 09 3d 20 72 76 09 09 23 | 20 4f 4b 20 66 6f 72 20 |.= rv..#| OK for |
|00000e60| 6d 6f 73 74 20 73 79 73 | 74 65 6d 73 0a 58 23 41 |most sys|tems.X#A|
|00000e70| 52 46 4c 41 47 53 3d 20 | 72 76 73 09 09 23 20 72 |RFLAGS= |rvs..# r|
|00000e80| 61 6e 6c 69 62 20 66 6c | 61 67 20 66 6f 72 20 27 |anlib fl|ag for '|
|00000e90| 61 72 27 20 6f 6e 20 49 | 52 49 58 20 34 2e 30 2e |ar' on I|RIX 4.0.|
|00000ea0| 78 0a 58 0a 58 23 23 23 | 23 23 23 23 23 23 23 23 |x.X.X###|########|
|00000eb0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000ec0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000ed0| 23 23 23 23 23 23 23 23 | 23 23 23 23 0a 58 23 20 |########|####.X# |
|00000ee0| 52 6f 75 74 69 6e 65 73 | 20 74 68 61 74 20 61 72 |Routines| that ar|
|00000ef0| 65 20 6e 6f 74 20 70 72 | 65 73 65 6e 74 20 69 6e |e not pr|esent in|
|00000f00| 20 74 68 65 20 73 79 73 | 74 65 6d 20 6c 69 62 72 | the sys|tem libr|
|00000f10| 61 72 69 65 73 0a 58 23 | 20 0a 58 23 20 54 68 65 |aries.X#| .X# The|
|00000f20| 20 73 74 72 63 61 73 65 | 63 6d 70 2e 63 20 66 69 | strcase|cmp.c fi|
|00000f30| 6c 65 20 70 72 6f 76 69 | 64 65 64 20 77 69 74 68 |le provi|ded with|
|00000f40| 20 74 68 69 73 20 70 61 | 63 6b 61 67 65 20 63 6f | this pa|ckage co|
|00000f50| 6d 65 73 20 66 72 6f 6d | 20 34 2e 33 2b 42 53 44 |mes from| 4.3+BSD|
|00000f60| 0a 58 23 20 55 4e 49 58 | 2e 20 54 68 65 20 73 65 |.X# UNIX|. The se|
|00000f70| 74 65 6e 76 2e 63 20 6d | 6f 64 75 6c 65 20 69 73 |tenv.c m|odule is|
|00000f80| 20 61 20 72 65 2d 69 6d | 70 6c 65 6d 65 6e 74 61 | a re-im|plementa|
|00000f90| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 34 2e 34 20 |tion of |the 4.4 |
|00000fa0| 42 53 44 20 6f 6e 65 2e | 0a 58 23 20 73 74 72 74 |BSD one.|.X# strt|
|00000fb0| 6f 6b 2e 63 20 63 6f 6d | 65 73 20 66 72 6f 6d 20 |ok.c com|es from |
|00000fc0| 34 2e 34 42 53 44 2e 20 | 0a 58 0a 58 41 55 58 5f |4.4BSD. |.X.XAUX_|
|00000fd0| 4f 42 4a 09 3d 20 73 65 | 74 65 6e 76 2e 6f 09 09 |OBJ.= se|tenv.o..|
|00000fe0| 09 23 20 6e 6f 20 73 65 | 74 65 6e 76 28 33 29 0a |.# no se|tenv(3).|
|00000ff0| 58 23 41 55 58 5f 4f 42 | 4a 3d 20 73 65 74 65 6e |X#AUX_OB|J= seten|
|00001000| 76 2e 6f 20 73 74 72 63 | 61 73 65 63 6d 70 2e 6f |v.o strc|asecmp.o|
|00001010| 09 09 23 20 6e 6f 20 73 | 65 74 65 6e 76 28 33 29 |..# no s|etenv(3)|
|00001020| 20 61 6e 64 20 6e 6f 20 | 73 74 72 63 61 73 65 63 | and no |strcasec|
|00001030| 6d 70 28 33 29 0a 58 23 | 41 55 58 5f 4f 42 4a 3d |mp(3).X#|AUX_OBJ=|
|00001040| 20 73 65 74 65 6e 76 2e | 6f 20 73 74 72 63 61 73 | setenv.|o strcas|
|00001050| 65 63 6d 70 2e 6f 20 73 | 74 72 74 6f 6b 2e 6f 0a |ecmp.o s|trtok.o.|
|00001060| 58 0a 58 23 20 57 68 69 | 6c 65 20 62 75 69 6c 64 |X.X# Whi|le build|
|00001070| 69 6e 67 20 74 68 65 20 | 66 69 6c 65 20 73 74 72 |ing the |file str|
|00001080| 63 61 73 65 63 6d 70 2e | 6f 2c 20 74 68 65 20 63 |casecmp.|o, the c|
|00001090| 6f 6d 70 69 6c 65 72 20 | 6d 61 79 20 63 6f 6d 70 |ompiler |may comp|
|000010a0| 6c 61 69 6e 20 74 68 61 | 74 0a 58 23 20 75 5f 63 |lain tha|t.X# u_c|
|000010b0| 68 61 72 20 69 73 20 75 | 6e 64 65 66 69 6e 65 64 |har is u|ndefined|
|000010c0| 2e 20 55 6e 63 6f 6d 6d | 65 6e 74 20 74 68 65 20 |. Uncomm|ent the |
|000010d0| 66 6f 6c 6c 6f 77 69 6e | 67 20 64 65 66 69 6e 69 |followin|g defini|
|000010e0| 74 69 6f 6e 20 66 6f 72 | 20 61 20 66 69 78 2e 0a |tion for| a fix..|
|000010f0| 58 23 0a 58 23 55 43 48 | 41 52 09 3d 20 2d 44 75 |X#.X#UCH|AR.= -Du|
|00001100| 5f 63 68 61 72 3d 22 75 | 6e 73 69 67 6e 65 64 20 |_char="u|nsigned |
|00001110| 63 68 61 72 22 09 23 20 | 6e 6f 20 75 5f 63 68 61 |char".# |no u_cha|
|00001120| 72 20 74 79 70 65 0a 58 | 0a 58 23 20 55 6e 63 6f |r type.X|.X# Unco|
|00001130| 6d 6d 65 6e 74 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |mment th|e follow|
|00001140| 69 6e 67 20 69 66 20 79 | 6f 75 72 20 43 20 6c 69 |ing if y|our C li|
|00001150| 62 72 61 72 79 20 68 61 | 73 20 69 6e 64 65 78 2f |brary ha|s index/|
|00001160| 72 69 6e 64 65 78 2f 62 | 63 6d 70 0a 58 23 20 62 |rindex/b|cmp.X# b|
|00001170| 75 74 20 64 6f 65 73 20 | 6e 6f 74 20 70 72 6f 76 |ut does |not prov|
|00001180| 69 64 65 20 74 68 65 20 | 73 74 72 63 68 72 2f 73 |ide the |strchr/s|
|00001190| 74 72 72 63 68 72 2f 6d | 65 6d 63 6d 70 20 72 6f |trrchr/m|emcmp ro|
|000011a0| 75 74 69 6e 65 73 2e 20 | 49 66 20 74 68 61 74 0a |utines. |If that.|
|000011b0| 58 23 20 69 73 20 74 68 | 65 20 63 61 73 65 2c 20 |X# is th|e case, |
|000011c0| 79 6f 75 20 70 72 6f 62 | 61 62 6c 79 20 61 6c 73 |you prob|ably als|
|000011d0| 6f 20 64 6f 20 6e 6f 74 | 20 68 61 76 65 20 73 74 |o do not| have st|
|000011e0| 72 74 6f 6b 28 29 20 28 | 73 65 65 20 61 62 6f 76 |rtok() (|see abov|
|000011f0| 65 29 2e 0a 58 23 0a 58 | 23 53 54 52 49 4e 47 53 |e)..X#.X|#STRINGS|
|00001200| 3d 20 2d 44 69 6e 64 65 | 78 3d 73 74 72 63 68 72 |= -Dinde|x=strchr|
|00001210| 20 2d 44 72 69 6e 64 65 | 78 3d 73 74 72 72 63 68 | -Drinde|x=strrch|
|00001220| 72 20 2d 44 6d 65 6d 63 | 6d 70 3d 62 63 6d 70 0a |r -Dmemc|mp=bcmp.|
|00001230| 58 0a 58 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |X.X#####|########|
|00001240| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001250| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 0a 58 |########|######.X|
|00001260| 23 20 53 65 6c 65 63 74 | 69 6f 6e 20 6f 66 20 6e |# Select|ion of n|
|00001270| 6f 6e 2d 64 65 66 61 75 | 6c 74 20 6f 62 6a 65 63 |on-defau|lt objec|
|00001280| 74 20 6c 69 62 72 61 72 | 69 65 73 0a 58 23 0a 58 |t librar|ies.X#.X|
|00001290| 23 20 4d 61 6e 79 20 53 | 79 73 74 65 6d 2d 56 20 |# Many S|ystem-V |
|000012a0| 76 65 72 73 69 6f 6e 73 | 20 72 65 71 75 69 72 65 |versions| require|
|000012b0| 20 74 68 61 74 20 79 6f | 75 20 65 78 70 6c 69 63 | that yo|u explic|
|000012c0| 69 74 6c 79 20 73 70 65 | 63 69 66 79 20 74 68 65 |itly spe|cify the|
|000012d0| 20 6e 65 74 77 6f 72 6b | 69 6e 67 0a 58 23 20 6c | network|ing.X# l|
|000012e0| 69 62 72 61 72 69 65 73 | 20 28 66 6f 72 20 65 78 |ibraries| (for ex|
|000012f0| 61 6d 70 6c 65 2c 20 2d | 6c 6e 65 74 20 6f 72 20 |ample, -|lnet or |
|00001300| 2d 6c 69 6e 65 74 29 2e | 0a 58 23 0a 58 23 4c 49 |-linet).|.X#.X#LI|
|00001310| 42 53 09 3d 20 2d 6c 73 | 6f 63 6b 65 74 20 2d 6c |BS.= -ls|ocket -l|
|00001320| 6e 73 6c 09 23 20 53 79 | 73 56 2e 34 20 53 6f 6c |nsl.# Sy|sV.4 Sol|
|00001330| 61 72 69 73 20 32 2e 78 | 0a 58 23 4c 49 42 53 09 |aris 2.x|.X#LIBS.|
|00001340| 3d 20 2d 6c 73 75 6e 09 | 09 09 23 20 49 52 49 58 |= -lsun.|..# IRIX|
|00001350| 0a 58 0a 58 23 23 23 23 | 23 23 23 23 23 23 23 23 |.X.X####|########|
|00001360| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 0a 58 23 |########|#####.X#|
|00001370| 20 55 6c 74 72 69 78 2d | 73 70 65 63 69 66 69 63 | Ultrix-|specific|
|00001380| 20 73 65 63 74 69 6f 6e | 0a 58 23 0a 58 23 20 55 | section|.X#.X# U|
|00001390| 6c 74 72 69 78 20 75 73 | 65 72 73 20 6d 61 79 20 |ltrix us|ers may |
|000013a0| 77 61 6e 74 20 74 6f 20 | 75 73 65 20 74 68 65 20 |want to |use the |
|000013b0| 6d 69 73 63 64 20 77 72 | 61 70 70 65 72 2c 20 74 |miscd wr|apper, t|
|000013c0| 6f 6f 2e 20 54 68 65 20 | 55 6c 74 72 69 78 20 6d |oo. The |Ultrix m|
|000013d0| 69 73 63 64 0a 58 23 20 | 69 6d 70 6c 65 6d 65 6e |iscd.X# |implemen|
|000013e0| 74 73 20 61 6d 6f 6e 67 | 20 6f 74 68 65 72 73 20 |ts among| others |
|000013f0| 74 68 65 20 53 59 53 54 | 41 54 20 73 65 72 76 69 |the SYST|AT servi|
|00001400| 63 65 20 77 68 69 63 68 | 20 72 75 6e 73 20 74 68 |ce which| runs th|
|00001410| 65 20 57 48 4f 20 63 6f | 6d 6d 61 6e 64 2c 0a 58 |e WHO co|mmand,.X|
|00001420| 23 20 61 6e 64 20 74 68 | 75 73 20 70 72 6f 76 69 |# and th|us provi|
|00001430| 64 65 73 20 61 20 73 75 | 62 73 65 74 20 6f 66 20 |des a su|bset of |
|00001440| 74 68 65 20 66 69 6e 67 | 65 72 20 73 65 72 76 69 |the fing|er servi|
|00001450| 63 65 2e 20 54 68 65 20 | 76 65 72 79 20 66 69 72 |ce. The |very fir|
|00001460| 73 74 20 77 72 61 70 70 | 65 72 0a 58 23 20 61 70 |st wrapp|er.X# ap|
|00001470| 70 6c 69 63 61 74 69 6f | 6e 20 28 69 6e 20 74 68 |plicatio|n (in th|
|00001480| 65 20 65 61 72 6c 79 20 | 68 6f 75 72 73 20 6f 66 |e early |hours of|
|00001490| 20 4d 61 79 20 32 30 2c | 20 31 39 39 30 29 20 77 | May 20,| 1990) w|
|000014a0| 61 73 20 74 6f 20 6d 6f | 6e 69 74 6f 72 20 53 59 |as to mo|nitor SY|
|000014b0| 53 54 41 54 2e 0a 58 0a | 58 61 6c 6c 3a 09 74 63 |STAT..X.|Xall:.tc|
|000014c0| 70 64 20 74 72 79 09 09 | 09 23 20 6e 6f 20 55 6c |pd try..|.# no Ul|
|000014d0| 74 72 69 78 20 6d 69 73 | 63 64 0a 58 23 61 6c 6c |trix mis|cd.X#all|
|000014e0| 3a 09 74 63 70 64 20 74 | 72 79 20 6d 69 73 63 64 |:.tcpd t|ry miscd|
|000014f0| 09 09 09 23 20 55 6c 74 | 72 69 78 2c 20 6d 6f 6e |...# Ult|rix, mon|
|00001500| 69 74 6f 72 20 73 79 73 | 74 61 74 20 65 74 63 2e |itor sys|tat etc.|
|00001510| 20 74 6f 6f 0a 58 0a 58 | 23 52 45 41 4c 5f 4d 49 | too.X.X|#REAL_MI|
|00001520| 53 43 44 3d 5c 22 2f 75 | 73 72 2f 65 74 63 2f 2e |SCD=\"/u|sr/etc/.|
|00001530| 2e 2e 2f 6d 69 73 63 64 | 5c 22 09 23 20 65 61 73 |../miscd|\".# eas|
|00001540| 79 20 69 6e 73 74 61 6c | 6c 61 74 69 6f 6e 0a 58 |y instal|lation.X|
|00001550| 23 52 45 41 4c 5f 4d 49 | 53 43 44 3d 5c 22 2f 75 |#REAL_MI|SCD=\"/u|
|00001560| 73 72 2f 65 74 63 2f 6d | 69 73 63 64 5c 22 09 09 |sr/etc/m|iscd\"..|
|00001570| 23 20 61 64 76 61 6e 63 | 65 64 20 69 6e 73 74 61 |# advanc|ed insta|
|00001580| 6c 6c 61 74 69 6f 6e 0a | 58 0a 58 23 23 23 23 23 |llation.|X.X#####|
|00001590| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000015a0| 23 23 23 23 23 23 23 23 | 23 23 23 0a 58 23 20 53 |########|###.X# S|
|000015b0| 79 73 74 65 6d 2d 73 70 | 65 63 69 66 69 63 20 63 |ystem-sp|ecific c|
|000015c0| 6f 6d 70 69 6c 65 72 20 | 66 6c 61 67 73 0a 58 23 |ompiler |flags.X#|
|000015d0| 0a 58 23 20 41 70 6f 6c | 6c 6f 20 44 6f 6d 61 69 |.X# Apol|lo Domai|
|000015e0| 6e 2f 4f 53 20 6f 66 66 | 65 72 73 20 62 6f 74 68 |n/OS off|ers both|
|000015f0| 20 62 73 64 20 61 6e 64 | 20 73 79 73 35 20 65 6e | bsd and| sys5 en|
|00001600| 76 69 72 6f 6e 6d 65 6e | 74 73 2c 20 73 6f 6d 65 |vironmen|ts, some|
|00001610| 74 69 6d 65 73 0a 58 23 | 20 6f 6e 20 74 68 65 20 |times.X#| on the |
|00001620| 73 61 6d 65 20 6d 61 63 | 68 69 6e 65 2e 20 20 49 |same mac|hine. I|
|00001630| 66 20 79 6f 75 72 20 41 | 70 6f 6c 6c 6f 20 69 73 |f your A|pollo is|
|00001640| 20 70 72 69 6d 61 72 69 | 6c 79 20 73 79 73 35 2e | primari|ly sys5.|
|00001650| 33 20 61 6e 64 20 61 6c | 73 6f 0a 58 23 20 68 61 |3 and al|so.X# ha|
|00001660| 73 20 62 73 64 34 2e 33 | 2c 20 75 6e 63 6f 6d 6d |s bsd4.3|, uncomm|
|00001670| 65 6e 74 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |ent the |followin|
|00001680| 67 20 74 6f 20 62 75 69 | 6c 64 20 75 6e 64 65 72 |g to bui|ld under|
|00001690| 20 62 73 64 20 61 6e 64 | 20 72 75 6e 20 75 6e 64 | bsd and| run und|
|000016a0| 65 72 0a 58 23 20 65 69 | 74 68 65 72 20 65 6e 76 |er.X# ei|ther env|
|000016b0| 69 72 6f 6e 6d 65 6e 74 | 2e 0a 58 23 0a 58 23 53 |ironment|..X#.X#S|
|000016c0| 59 53 54 59 50 45 3d 20 | 2d 41 20 72 75 6e 2c 61 |YSTYPE= |-A run,a|
|000016d0| 6e 79 20 2d 41 20 73 79 | 73 2c 61 6e 79 0a 58 0a |ny -A sy|s,any.X.|
|000016e0| 58 23 20 46 6f 72 20 4d | 49 50 53 20 52 49 53 43 |X# For M|IPS RISC|
|000016f0| 2f 6f 73 20 34 5f 35 32 | 2e 70 33 2c 20 75 6e 63 |/os 4_52|.p3, unc|
|00001700| 6f 6d 6d 65 6e 74 20 74 | 68 65 20 66 6f 6c 6c 6f |omment t|he follo|
|00001710| 77 69 6e 67 20 64 65 66 | 69 6e 69 74 69 6f 6e 2e |wing def|inition.|
|00001720| 0a 58 23 0a 58 23 53 59 | 53 54 59 50 45 3d 20 2d |.X#.X#SY|STYPE= -|
|00001730| 73 79 73 6e 61 6d 65 20 | 62 73 64 34 33 0a 58 0a |sysname |bsd43.X.|
|00001740| 58 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |X#######|########|
|00001750| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 0a 58 23 |########|#####.X#|
|00001760| 20 57 6f 72 6b 69 6e 67 | 20 61 72 6f 75 6e 64 20 | Working| around |
|00001770| 73 79 73 74 65 6d 20 62 | 75 67 73 0a 58 23 0a 58 |system b|ugs.X#.X|
|00001780| 23 20 53 6f 6d 65 20 76 | 65 72 73 69 6f 6e 73 20 |# Some v|ersions |
|00001790| 6f 66 20 41 70 6f 6c 6c | 6f 20 6f 72 20 53 59 53 |of Apoll|o or SYS|
|000017a0| 56 2e 34 20 55 4e 49 58 | 20 68 61 76 65 20 61 20 |V.4 UNIX| have a |
|000017b0| 62 75 67 20 69 6e 20 74 | 68 65 20 67 65 74 70 65 |bug in t|he getpe|
|000017c0| 65 72 6e 61 6d 65 28 32 | 29 0a 58 23 20 72 6f 75 |ername(2|).X# rou|
|000017d0| 74 69 6e 65 2e 20 20 59 | 6f 75 20 6d 61 79 20 68 |tine. Y|ou may h|
|000017e0| 61 76 65 20 74 68 69 73 | 20 62 75 67 20 77 68 65 |ave this| bug whe|
|000017f0| 6e 20 74 68 65 20 77 72 | 61 70 70 65 72 20 72 65 |n the wr|apper re|
|00001800| 70 6f 72 74 73 20 74 68 | 61 74 20 61 6c 6c 20 55 |ports th|at all U|
|00001810| 44 50 0a 58 23 20 63 6f | 6e 6e 65 63 74 69 6f 6e |DP.X# co|nnection|
|00001820| 73 20 63 6f 6d 65 20 66 | 72 6f 6d 20 61 64 64 72 |s come f|rom addr|
|00001830| 65 73 73 20 30 2e 30 2e | 30 2e 30 2e 20 43 6f 6d |ess 0.0.|0.0. Com|
|00001840| 70 69 6c 65 20 77 69 74 | 68 20 2d 44 47 45 54 50 |pile wit|h -DGETP|
|00001850| 45 45 52 4e 41 4d 45 5f | 42 55 47 0a 58 23 20 66 |EERNAME_|BUG.X# f|
|00001860| 6f 72 20 61 20 77 6f 72 | 6b 61 72 6f 75 6e 64 2e |or a wor|karound.|
|00001870| 20 54 68 65 20 77 6f 72 | 6b 61 72 6f 75 6e 64 20 | The wor|karound |
|00001880| 64 6f 65 73 20 6e 6f 20 | 68 61 72 6d 20 6f 6e 20 |does no |harm on |
|00001890| 6f 74 68 65 72 20 73 79 | 73 74 65 6d 73 2e 20 49 |other sy|stems. I|
|000018a0| 66 20 69 6e 0a 58 23 20 | 64 6f 75 62 74 2c 20 6c |f in.X# |doubt, l|
|000018b0| 65 61 76 65 20 69 74 20 | 69 6e 2e 0a 58 23 0a 58 |eave it |in..X#.X|
|000018c0| 23 20 53 6f 6d 65 20 53 | 79 73 74 65 6d 20 56 20 |# Some S|ystem V |
|000018d0| 76 65 72 73 69 6f 6e 73 | 20 28 53 6f 6c 61 72 69 |versions| (Solari|
|000018e0| 73 20 32 29 20 68 61 76 | 65 20 61 20 70 72 6f 62 |s 2) hav|e a prob|
|000018f0| 6c 65 6d 20 69 6e 20 74 | 68 65 20 72 65 63 76 66 |lem in t|he recvf|
|00001900| 72 6f 6d 28 29 0a 58 23 | 20 65 6d 75 6c 61 74 69 |rom().X#| emulati|
|00001910| 6f 6e 20 63 6f 64 65 2e | 20 20 59 6f 75 20 6d 61 |on code.| You ma|
|00001920| 79 20 68 61 76 65 20 74 | 68 69 73 20 62 75 67 20 |y have t|his bug |
|00001930| 77 68 65 6e 20 74 68 65 | 20 77 72 61 70 70 65 72 |when the| wrapper|
|00001940| 20 70 72 6f 67 72 61 6d | 73 0a 58 23 20 63 6f 6d | program|s.X# com|
|00001950| 70 6c 61 69 6e 20 61 62 | 6f 75 74 20 22 75 6e 65 |plain ab|out "une|
|00001960| 78 70 65 63 74 65 64 20 | 61 64 64 72 65 73 73 20 |xpected |address |
|00001970| 66 61 6d 69 6c 79 20 30 | 22 20 77 68 65 6e 20 70 |family 0|" when p|
|00001980| 72 6f 63 65 73 73 69 6e | 67 20 61 6e 20 55 44 50 |rocessin|g an UDP|
|00001990| 0a 58 23 20 72 65 71 75 | 65 73 74 2e 20 43 6f 6d |.X# requ|est. Com|
|000019a0| 70 69 6c 65 20 77 69 74 | 68 20 2d 44 52 45 43 56 |pile wit|h -DRECV|
|000019b0| 46 52 4f 4d 5f 42 55 47 | 20 66 6f 72 20 61 20 77 |FROM_BUG| for a w|
|000019c0| 6f 72 6b 61 72 6f 75 6e | 64 2e 20 54 68 65 20 77 |orkaroun|d. The w|
|000019d0| 6f 72 6b 61 72 6f 75 6e | 64 0a 58 23 20 64 6f 65 |orkaroun|d.X# doe|
|000019e0| 73 20 6e 6f 20 68 61 72 | 6d 20 6f 6e 20 6f 74 68 |s no har|m on oth|
|000019f0| 65 72 20 73 79 73 74 65 | 6d 73 2e 20 49 66 20 69 |er syste|ms. If i|
|00001a00| 6e 20 64 6f 75 62 74 2c | 20 6c 65 61 76 65 20 69 |n doubt,| leave i|
|00001a10| 74 20 69 6e 2e 0a 58 23 | 20 0a 58 23 20 57 69 74 |t in..X#| .X# Wit|
|00001a20| 68 20 73 6f 6d 65 20 53 | 79 73 74 65 6d 20 56 20 |h some S|ystem V |
|00001a30| 69 6d 70 6c 65 6d 65 6e | 74 61 74 69 6f 6e 73 20 |implemen|tations |
|00001a40| 28 53 43 4f 20 55 4e 49 | 58 20 33 2e 32 76 34 29 |(SCO UNI|X 3.2v4)|
|00001a50| 2c 20 65 76 65 6e 20 63 | 6f 6d 70 69 6c 69 6e 67 |, even c|ompiling|
|00001a60| 0a 58 23 20 77 69 74 68 | 20 2d 44 52 45 43 56 46 |.X# with| -DRECVF|
|00001a70| 52 4f 4d 5f 42 55 47 20 | 64 6f 65 73 20 6e 6f 74 |ROM_BUG |does not|
|00001a80| 20 73 6f 6c 76 65 20 74 | 68 65 20 22 61 64 64 72 | solve t|he "addr|
|00001a90| 65 73 73 20 66 61 6d 69 | 6c 79 20 30 22 20 70 72 |ess fami|ly 0" pr|
|00001aa0| 6f 62 6c 65 6d 2e 20 49 | 66 0a 58 23 20 74 68 61 |oblem. I|f.X# tha|
|00001ab0| 74 20 69 73 20 74 68 65 | 20 63 61 73 65 2c 20 63 |t is the| case, c|
|00001ac0| 6f 6d 70 69 6c 65 20 77 | 69 74 68 20 2d 44 41 44 |ompile w|ith -DAD|
|00001ad0| 44 52 45 53 53 5f 46 41 | 4d 49 4c 59 5f 42 55 47 |DRESS_FA|MILY_BUG|
|00001ae0| 20 69 6e 73 74 65 61 64 | 2e 0a 58 23 0a 58 23 20 | instead|..X#.X# |
|00001af0| 44 47 2f 55 58 20 35 2e | 34 2e 31 20 63 6f 6d 65 |DG/UX 5.|4.1 come|
|00001b00| 73 20 77 69 74 68 20 61 | 6e 20 69 6e 65 74 5f 6e |s with a|n inet_n|
|00001b10| 74 6f 61 28 29 20 66 75 | 6e 63 74 69 6f 6e 20 74 |toa() fu|nction t|
|00001b20| 68 61 74 20 72 65 74 75 | 72 6e 73 20 61 20 73 74 |hat retu|rns a st|
|00001b30| 72 75 63 74 75 72 65 0a | 58 23 20 69 6e 73 74 65 |ructure.|X# inste|
|00001b40| 61 64 20 6f 66 20 61 20 | 6c 6f 6e 67 20 69 6e 74 |ad of a |long int|
|00001b50| 65 67 65 72 2e 20 43 6f | 6d 70 69 6c 65 20 77 69 |eger. Co|mpile wi|
|00001b60| 74 68 20 2d 44 49 4e 45 | 54 5f 41 44 44 52 5f 42 |th -DINE|T_ADDR_B|
|00001b70| 55 47 20 74 6f 20 77 6f | 72 6b 20 61 72 6f 75 6e |UG to wo|rk aroun|
|00001b80| 64 0a 58 23 20 74 68 69 | 73 20 6d 75 74 61 6e 74 |d.X# thi|s mutant|
|00001b90| 20 62 65 68 61 76 6f 75 | 72 2e 0a 58 0a 58 42 55 | behavou|r..X.XBU|
|00001ba0| 47 53 09 3d 20 2d 44 47 | 45 54 50 45 45 52 4e 41 |GS.= -DG|ETPEERNA|
|00001bb0| 4d 45 5f 42 55 47 20 2d | 44 52 45 43 56 46 52 4f |ME_BUG -|DRECVFRO|
|00001bc0| 4d 5f 42 55 47 20 23 20 | 2d 44 41 44 44 52 45 53 |M_BUG # |-DADDRES|
|00001bd0| 53 5f 46 41 4d 49 4c 59 | 5f 42 55 47 0a 58 0a 58 |S_FAMILY|_BUG.X.X|
|00001be0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001bf0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001c00| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001c10| 23 23 23 23 0a 58 23 20 | 57 68 65 74 68 65 72 20 |####.X# |Whether |
|00001c20| 6f 72 20 6e 6f 74 20 79 | 6f 75 72 20 73 79 73 74 |or not y|our syst|
|00001c30| 65 6d 20 68 61 73 20 4e | 49 53 20 28 6f 72 20 59 |em has N|IS (or Y|
|00001c40| 50 29 20 73 75 70 70 6f | 72 74 0a 58 23 0a 58 23 |P) suppo|rt.X#.X#|
|00001c50| 20 49 66 20 79 6f 75 72 | 20 73 79 73 74 65 6d 20 | If your| system |
|00001c60| 73 75 70 70 6f 72 74 73 | 20 4e 49 53 20 6f 72 20 |supports| NIS or |
|00001c70| 59 50 2d 73 74 79 6c 65 | 20 6e 65 74 67 72 6f 75 |YP-style| netgrou|
|00001c80| 70 73 2c 20 65 6e 61 62 | 6c 65 20 74 68 65 20 66 |ps, enab|le the f|
|00001c90| 6f 6c 6c 6f 77 69 6e 67 | 0a 58 23 20 6d 61 63 72 |ollowing|.X# macr|
|00001ca0| 6f 20 64 65 66 69 6e 69 | 74 69 6f 6e 2e 20 4e 65 |o defini|tion. Ne|
|00001cb0| 74 67 72 6f 75 70 73 20 | 61 72 65 20 75 73 65 64 |tgroups |are used|
|00001cc0| 20 6f 6e 6c 79 20 66 6f | 72 20 68 6f 73 74 20 61 | only fo|r host a|
|00001cd0| 63 63 65 73 73 20 63 6f | 6e 74 72 6f 6c 2e 0a 58 |ccess co|ntrol..X|
|00001ce0| 23 0a 58 23 4e 45 54 47 | 52 4f 55 50 3d 20 2d 44 |#.X#NETG|ROUP= -D|
|00001cf0| 4e 45 54 47 52 4f 55 50 | 0a 58 0a 58 23 20 45 6e |NETGROUP|.X.X# En|
|00001d00| 64 20 6f 66 20 74 68 65 | 20 72 65 71 75 69 72 65 |d of the| require|
|00001d10| 64 20 63 6f 6e 66 69 67 | 75 72 61 74 69 6f 6e 20 |d config|uration |
|00001d20| 6f 70 74 69 6f 6e 73 3b | 20 61 6c 6c 20 6f 74 68 |options;| all oth|
|00001d30| 65 72 20 6f 6e 65 73 20 | 61 72 65 20 6f 70 74 69 |er ones |are opti|
|00001d40| 6f 6e 61 6c 2e 0a 58 23 | 23 23 23 23 23 23 23 23 |onal..X#|########|
|00001d50| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001d60| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001d70| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001d80| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001d90| 0a 58 0a 58 23 23 23 23 | 23 23 23 23 23 23 23 23 |.X.X####|########|
|00001da0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001db0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001dc0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001dd0| 23 23 23 23 0a 58 23 20 | 43 68 61 6e 67 69 6e 67 |####.X# |Changing|
|00001de0| 20 74 68 65 20 64 65 66 | 61 75 6c 74 20 64 69 73 | the def|ault dis|
|00001df0| 70 6f 73 69 74 69 6f 6e | 20 6f 66 20 6c 6f 67 66 |position| of logf|
|00001e00| 69 6c 65 20 72 65 63 6f | 72 64 73 20 28 4f 70 74 |ile reco|rds (Opt|
|00001e10| 69 6f 6e 61 6c 29 0a 58 | 23 0a 58 23 20 42 79 20 |ional).X|#.X# By |
|00001e20| 64 65 66 61 75 6c 74 2c | 20 6c 6f 67 66 69 6c 65 |default,| logfile|
|00001e30| 20 65 6e 74 72 69 65 73 | 20 61 72 65 20 77 72 69 | entries| are wri|
|00001e40| 74 74 65 6e 20 74 6f 20 | 74 68 65 20 73 61 6d 65 |tten to |the same|
|00001e50| 20 66 69 6c 65 20 61 73 | 20 75 73 65 64 20 66 6f | file as| used fo|
|00001e60| 72 0a 58 23 20 73 65 6e | 64 6d 61 69 6c 20 74 72 |r.X# sen|dmail tr|
|00001e70| 61 6e 73 61 63 74 69 6f | 6e 20 6c 6f 67 73 2e 20 |ansactio|n logs. |
|00001e80| 53 65 65 20 79 6f 75 72 | 20 2f 65 74 63 2f 73 79 |See your| /etc/sy|
|00001e90| 73 6c 6f 67 2e 63 6f 6e | 66 20 66 69 6c 65 20 66 |slog.con|f file f|
|00001ea0| 6f 72 20 61 63 74 75 61 | 6c 0a 58 23 20 70 61 74 |or actua|l.X# pat|
|00001eb0| 68 20 6e 61 6d 65 73 20 | 6f 66 20 6c 6f 67 66 69 |h names |of logfi|
|00001ec0| 6c 65 73 2e 20 54 68 65 | 20 74 75 74 6f 72 69 61 |les. The| tutoria|
|00001ed0| 6c 20 73 65 63 74 69 6f | 6e 20 69 6e 20 74 68 65 |l sectio|n in the|
|00001ee0| 20 52 45 41 44 4d 45 20 | 66 69 6c 65 0a 58 23 20 | README |file.X# |
|00001ef0| 67 69 76 65 73 20 61 20 | 62 72 69 65 66 20 69 6e |gives a |brief in|
|00001f00| 74 72 6f 64 75 63 74 69 | 6f 6e 20 74 6f 20 74 68 |troducti|on to th|
|00001f10| 65 20 73 79 73 6c 6f 67 | 20 64 61 65 6d 6f 6e 2e |e syslog| daemon.|
|00001f20| 0a 58 23 20 0a 58 23 20 | 43 68 61 6e 67 65 20 74 |.X# .X# |Change t|
|00001f30| 68 65 20 46 41 43 49 4c | 49 54 59 20 64 65 66 69 |he FACIL|ITY defi|
|00001f40| 6e 69 74 69 6f 6e 20 62 | 65 6c 6f 77 20 69 66 20 |nition b|elow if |
|00001f50| 79 6f 75 20 64 69 73 61 | 67 72 65 65 20 77 69 74 |you disa|gree wit|
|00001f60| 68 20 74 68 65 20 64 65 | 66 61 75 6c 74 0a 58 23 |h the de|fault.X#|
|00001f70| 20 64 69 73 70 6f 73 69 | 74 69 6f 6e 2e 20 53 6f | disposi|tion. So|
|00001f80| 6d 65 20 73 79 73 6c 6f | 67 20 76 65 72 73 69 6f |me syslo|g versio|
|00001f90| 6e 73 20 28 69 6e 63 6c | 75 64 69 6e 67 20 55 6c |ns (incl|uding Ul|
|00001fa0| 74 72 69 78 20 34 2e 78 | 29 20 64 6f 20 6e 6f 74 |trix 4.x|) do not|
|00001fb0| 20 70 72 6f 76 69 64 65 | 0a 58 23 20 74 68 69 73 | provide|.X# this|
|00001fc0| 20 66 6c 65 78 69 62 69 | 6c 69 74 79 2e 0a 58 23 | flexibi|lity..X#|
|00001fd0| 20 0a 58 23 20 49 66 20 | 6e 6f 74 68 69 6e 67 20 | .X# If |nothing |
|00001fe0| 73 68 6f 77 73 20 75 70 | 20 6f 6e 20 79 6f 75 72 |shows up| on your|
|00001ff0| 20 73 79 73 74 65 6d 2c | 20 69 74 20 6d 61 79 20 | system,| it may |
|00002000| 62 65 20 74 68 61 74 20 | 74 68 65 20 73 79 73 6c |be that |the sysl|
|00002010| 6f 67 20 72 65 63 6f 72 | 64 73 0a 58 23 20 61 72 |og recor|ds.X# ar|
|00002020| 65 20 73 65 6e 74 20 74 | 6f 20 61 20 64 65 64 69 |e sent t|o a dedi|
|00002030| 63 61 74 65 64 20 6c 6f | 67 68 6f 73 74 2e 20 49 |cated lo|ghost. I|
|00002040| 74 20 6d 61 79 20 61 6c | 73 6f 20 62 65 20 74 68 |t may al|so be th|
|00002050| 61 74 20 6e 6f 20 73 79 | 73 6c 6f 67 20 64 61 65 |at no sy|slog dae|
|00002060| 6d 6f 6e 0a 58 23 20 69 | 73 20 72 75 6e 6e 69 6e |mon.X# i|s runnin|
|00002070| 67 20 61 74 20 61 6c 6c | 2e 20 54 68 65 20 52 45 |g at all|. The RE|
|00002080| 41 44 4d 45 20 66 69 6c | 65 20 67 69 76 65 73 20 |ADME fil|e gives |
|00002090| 70 6f 69 6e 74 65 72 73 | 20 74 6f 20 73 75 72 72 |pointers| to surr|
|000020a0| 6f 67 61 74 65 20 73 79 | 73 6c 6f 67 0a 58 23 20 |ogate sy|slog.X# |
|000020b0| 69 6d 70 6c 65 6d 65 6e | 74 61 74 69 6f 6e 73 20 |implemen|tations |
|000020c0| 66 6f 72 20 73 79 73 74 | 65 6d 73 20 74 68 61 74 |for syst|ems that|
|000020d0| 20 68 61 76 65 20 6e 6f | 20 73 79 73 6c 6f 67 20 | have no| syslog |
|000020e0| 6c 69 62 72 61 72 79 20 | 72 6f 75 74 69 6e 65 73 |library |routines|
|000020f0| 20 6f 72 0a 58 23 20 6e | 6f 20 73 79 73 6c 6f 67 | or.X# n|o syslog|
|00002100| 20 64 61 65 6d 6f 6e 73 | 2e 0a 58 23 0a 58 23 20 | daemons|..X#.X# |
|00002110| 54 68 65 20 4c 4f 47 5f | 58 58 58 20 6e 61 6d 65 |The LOG_|XXX name|
|00002120| 73 20 62 65 6c 6f 77 20 | 61 72 65 20 74 61 6b 65 |s below |are take|
|00002130| 6e 20 66 72 6f 6d 20 74 | 68 65 20 2f 75 73 72 2f |n from t|he /usr/|
|00002140| 69 6e 63 6c 75 64 65 2f | 73 79 73 6c 6f 67 2e 68 |include/|syslog.h|
|00002150| 20 66 69 6c 65 2e 0a 58 | 0a 58 46 41 43 49 4c 49 | file..X|.XFACILI|
|00002160| 54 59 3d 20 4c 4f 47 5f | 4d 41 49 4c 09 23 20 4c |TY= LOG_|MAIL.# L|
|00002170| 4f 47 5f 4d 41 49 4c 20 | 69 73 20 77 68 61 74 20 |OG_MAIL |is what |
|00002180| 6d 6f 73 74 20 73 65 6e | 64 6d 61 69 6c 20 64 61 |most sen|dmail da|
|00002190| 65 6d 6f 6e 73 20 75 73 | 65 0a 58 0a 58 23 20 54 |emons us|e.X.X# T|
|000021a0| 68 65 20 73 79 73 6c 6f | 67 20 70 72 69 6f 72 69 |he syslo|g priori|
|000021b0| 74 79 20 61 74 20 77 68 | 69 63 68 20 73 75 63 63 |ty at wh|ich succ|
|000021c0| 65 73 73 66 75 6c 20 63 | 6f 6e 6e 65 63 74 69 6f |essful c|onnectio|
|000021d0| 6e 73 20 61 72 65 20 6c | 6f 67 67 65 64 2e 0a 58 |ns are l|ogged..X|
|000021e0| 0a 58 53 45 56 45 52 49 | 54 59 3d 20 4c 4f 47 5f |.XSEVERI|TY= LOG_|
|000021f0| 49 4e 46 4f 09 23 20 4c | 4f 47 5f 49 4e 46 4f 20 |INFO.# L|OG_INFO |
|00002200| 69 73 20 6e 6f 72 6d 61 | 6c 6c 79 20 6e 6f 74 20 |is norma|lly not |
|00002210| 6c 6f 67 67 65 64 20 74 | 6f 20 74 68 65 20 63 6f |logged t|o the co|
|00002220| 6e 73 6f 6c 65 0a 58 0a | 58 23 23 23 23 23 23 23 |nsole.X.|X#######|
|00002230| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002240| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002250| 23 23 23 23 23 23 0a 58 | 23 20 45 6e 61 62 6c 69 |######.X|# Enabli|
|00002260| 6e 67 20 72 65 6d 6f 74 | 65 20 75 73 65 72 6e 61 |ng remot|e userna|
|00002270| 6d 65 20 6c 6f 6f 6b 75 | 70 73 20 28 4f 70 74 69 |me looku|ps (Opti|
|00002280| 6f 6e 61 6c 29 0a 58 23 | 0a 58 23 20 42 79 20 64 |onal).X#|.X# By d|
|00002290| 65 66 61 75 6c 74 2c 20 | 74 68 65 20 77 72 61 70 |efault, |the wrap|
|000022a0| 70 65 72 73 20 6a 75 73 | 74 20 72 65 70 6f 72 74 |pers jus|t report|
|000022b0| 20 74 68 65 20 72 65 6d | 6f 74 65 20 68 6f 73 74 | the rem|ote host|
|000022c0| 20 6e 61 6d 65 20 28 74 | 68 65 20 68 6f 73 74 0a | name (t|he host.|
|000022d0| 58 23 20 61 64 64 72 65 | 73 73 20 69 66 20 74 68 |X# addre|ss if th|
|000022e0| 65 20 68 6f 73 74 20 6e | 61 6d 65 20 6c 6f 6f 6b |e host n|ame look|
|000022f0| 75 70 20 66 61 69 6c 73 | 20 6f 72 20 74 69 6d 65 |up fails| or time|
|00002300| 73 20 6f 75 74 29 2e 20 | 20 55 73 65 72 6e 61 6d |s out). | Usernam|
|00002310| 65 20 6c 6f 6f 6b 75 70 | 73 0a 58 23 20 72 65 71 |e lookup|s.X# req|
|00002320| 75 69 72 65 20 74 68 61 | 74 20 74 68 65 20 72 65 |uire tha|t the re|
|00002330| 6d 6f 74 65 20 68 6f 73 | 74 20 72 75 6e 73 20 61 |mote hos|t runs a|
|00002340| 20 64 61 65 6d 6f 6e 20 | 74 68 61 74 20 73 75 70 | daemon |that sup|
|00002350| 70 6f 72 74 73 20 61 20 | 52 46 43 20 39 33 31 20 |ports a |RFC 931 |
|00002360| 6c 69 6b 65 0a 58 23 20 | 70 72 6f 74 6f 63 6f 6c |like.X# |protocol|
|00002370| 2e 20 20 52 65 6d 6f 74 | 65 20 75 73 65 72 20 6e |. Remot|e user n|
|00002380| 61 6d 65 20 6c 6f 6f 6b | 75 70 73 20 61 72 65 20 |ame look|ups are |
|00002390| 6e 6f 74 20 70 6f 73 73 | 69 62 6c 65 20 66 6f 72 |not poss|ible for|
|000023a0| 20 55 44 50 2d 62 61 73 | 65 64 0a 58 23 20 63 6f | UDP-bas|ed.X# co|
|000023b0| 6e 6e 65 63 74 69 6f 6e | 73 2c 20 61 6e 64 20 63 |nnection|s, and c|
|000023c0| 61 6e 20 63 61 75 73 65 | 20 6e 6f 74 69 63 65 61 |an cause| noticea|
|000023d0| 62 6c 65 20 64 65 6c 61 | 79 73 20 77 69 74 68 20 |ble dela|ys with |
|000023e0| 63 6f 6e 6e 65 63 74 69 | 6f 6e 73 20 66 72 6f 6d |connecti|ons from|
|000023f0| 0a 58 23 20 6e 6f 6e 2d | 55 4e 49 58 20 50 43 73 |.X# non-|UNIX PCs|
|00002400| 2e 20 20 4f 6e 20 73 6f | 6d 65 20 73 79 73 74 65 |. On so|me syste|
|00002410| 6d 73 2c 20 72 65 6d 6f | 74 65 20 75 73 65 72 6e |ms, remo|te usern|
|00002420| 61 6d 65 20 6c 6f 6f 6b | 75 70 73 20 63 61 6e 20 |ame look|ups can |
|00002430| 74 72 69 67 67 65 72 20 | 61 0a 58 23 20 6b 65 72 |trigger |a.X# ker|
|00002440| 6e 65 6c 20 62 75 67 2c | 20 63 61 75 73 69 6e 67 |nel bug,| causing|
|00002450| 20 6c 6f 73 73 20 6f 66 | 20 73 65 72 76 69 63 65 | loss of| service|
|00002460| 2e 20 54 68 65 20 52 45 | 41 44 4d 45 20 66 69 6c |. The RE|ADME fil|
|00002470| 65 20 67 69 76 65 73 20 | 64 65 74 61 69 6c 73 20 |e gives |details |
|00002480| 6f 6e 0a 58 23 20 68 6f | 77 20 74 6f 20 66 69 6e |on.X# ho|w to fin|
|00002490| 64 20 6f 75 74 20 69 66 | 20 79 6f 75 72 20 73 79 |d out if| your sy|
|000024a0| 73 74 65 6d 20 68 61 73 | 20 74 68 61 74 20 70 72 |stem has| that pr|
|000024b0| 6f 62 6c 65 6d 2e 0a 58 | 23 20 0a 58 23 20 55 6e |oblem..X|# .X# Un|
|000024c0| 63 6f 6d 6d 65 6e 74 20 | 74 68 65 20 66 6f 6c 6c |comment |the foll|
|000024d0| 6f 77 69 6e 67 20 64 65 | 66 69 6e 69 74 69 6f 6e |owing de|finition|
|000024e0| 20 69 66 20 74 68 65 20 | 77 72 61 70 70 65 72 73 | if the |wrappers|
|000024f0| 20 73 68 6f 75 6c 64 20 | 61 6c 77 61 79 73 0a 58 | should |always.X|
|00002500| 23 20 61 74 74 65 6d 70 | 74 20 74 6f 20 67 65 74 |# attemp|t to get|
|00002510| 20 74 68 65 20 72 65 6d | 6f 74 65 20 75 73 65 72 | the rem|ote user|
|00002520| 20 6e 61 6d 65 2e 0a 58 | 23 0a 58 23 20 54 68 65 | name..X|#.X# The|
|00002530| 20 64 65 66 61 75 6c 74 | 20 75 73 65 72 6e 61 6d | default| usernam|
|00002540| 65 20 6c 6f 6f 6b 75 70 | 20 74 69 6d 65 6f 75 74 |e lookup| timeout|
|00002550| 20 69 73 20 33 30 20 73 | 65 63 6f 6e 64 73 2e 0a | is 30 s|econds..|
|00002560| 58 23 0a 58 23 41 55 54 | 48 09 3d 20 2d 44 52 46 |X#.X#AUT|H.= -DRF|
|00002570| 43 39 33 31 5f 54 49 4d | 45 4f 55 54 3d 33 30 20 |C931_TIM|EOUT=30 |
|00002580| 2d 44 52 46 43 39 33 31 | 0a 58 0a 58 23 20 54 68 |-DRFC931|.X.X# Th|
|00002590| 65 20 55 53 45 52 5f 41 | 54 5f 48 4f 53 54 20 66 |e USER_A|T_HOST f|
|000025a0| 65 61 74 75 72 65 20 64 | 6f 65 73 20 73 65 6c 65 |eature d|oes sele|
|000025b0| 63 74 69 76 65 20 75 73 | 65 72 6e 61 6d 65 20 6c |ctive us|ername l|
|000025c0| 6f 6f 6b 75 70 73 2e 20 | 49 74 20 74 72 69 67 67 |ookups. |It trigg|
|000025d0| 65 72 73 0a 58 23 20 6f | 6e 20 61 63 63 65 73 73 |ers.X# o|n access|
|000025e0| 20 63 6f 6e 74 72 6f 6c | 20 70 61 74 74 65 72 6e | control| pattern|
|000025f0| 73 20 6f 66 20 74 68 65 | 20 66 6f 72 6d 20 78 78 |s of the| form xx|
|00002600| 78 40 79 79 79 2e 20 55 | 6e 74 69 6c 20 6e 6f 77 |x@yyy. U|ntil now|
|00002610| 2c 20 73 75 63 68 0a 58 | 23 20 70 61 74 74 65 72 |, such.X|# patter|
|00002620| 6e 73 20 77 65 72 65 20 | 6e 6f 74 20 75 73 65 64 |ns were |not used|
|00002630| 2c 20 73 6f 20 74 68 61 | 74 20 55 53 45 52 5f 41 |, so tha|t USER_A|
|00002640| 54 5f 48 4f 53 54 20 64 | 6f 65 73 20 6e 6f 74 20 |T_HOST d|oes not |
|00002650| 62 72 65 61 6b 20 65 78 | 69 73 74 69 6e 67 0a 58 |break ex|isting.X|
|00002660| 23 20 72 75 6c 65 73 2e | 0a 58 23 20 0a 58 23 20 |# rules.|.X# .X# |
|00002670| 54 68 65 20 66 65 61 74 | 75 72 65 20 69 73 20 6e |The feat|ure is n|
|00002680| 6f 74 20 64 6f 63 75 6d | 65 6e 74 65 64 20 61 6e |ot docum|ented an|
|00002690| 64 20 69 73 20 6e 6f 74 | 20 79 65 74 20 69 6e 74 |d is not| yet int|
|000026a0| 65 6e 64 65 64 20 66 6f | 72 20 67 65 6e 65 72 61 |ended fo|r genera|
|000026b0| 6c 20 75 73 65 2c 0a 58 | 23 20 62 65 63 61 75 73 |l use,.X|# becaus|
|000026c0| 65 20 69 74 20 63 61 6e | 20 63 6f 6d 70 6c 69 63 |e it can| complic|
|000026d0| 61 74 65 20 74 68 65 20 | 64 65 73 69 67 6e 20 6f |ate the |design o|
|000026e0| 66 20 61 63 63 65 73 73 | 20 63 6f 6e 74 72 6f 6c |f access| control|
|000026f0| 20 74 61 62 6c 65 73 2e | 0a 58 23 20 0a 58 23 20 | tables.|.X# .X# |
|00002700| 57 69 74 68 20 55 53 45 | 52 5f 41 54 5f 48 4f 53 |With USE|R_AT_HOS|
|00002710| 54 20 65 6e 61 62 6c 65 | 64 2c 20 72 65 6d 6f 74 |T enable|d, remot|
|00002720| 65 20 75 73 65 72 6e 61 | 6d 65 20 6c 6f 6f 6b 75 |e userna|me looku|
|00002730| 70 73 20 61 72 65 20 64 | 6f 6e 65 20 6f 6e 6c 79 |ps are d|one only|
|00002740| 20 66 6f 72 0a 58 23 20 | 75 73 65 72 5f 70 61 74 | for.X# |user_pat|
|00002750| 74 65 72 6e 40 68 6f 73 | 74 5f 70 61 74 74 65 72 |tern@hos|t_patter|
|00002760| 6e 20 65 78 70 72 65 73 | 73 69 6f 6e 73 20 69 6e |n expres|sions in|
|00002770| 20 74 68 65 20 61 63 63 | 65 73 73 20 63 6f 6e 74 | the acc|ess cont|
|00002780| 72 6f 6c 20 66 69 6c 65 | 73 2c 20 62 75 74 0a 58 |rol file|s, but.X|
|00002790| 23 20 6f 6e 6c 79 20 77 | 68 65 6e 20 74 68 65 20 |# only w|hen the |
|000027a0| 68 6f 73 74 5f 70 61 74 | 74 65 72 6e 20 6d 61 74 |host_pat|tern mat|
|000027b0| 63 68 65 73 2e 20 45 78 | 61 6d 70 6c 65 3a 20 22 |ches. Ex|ample: "|
|000027c0| 41 4c 4c 3a 20 40 70 63 | 67 72 6f 75 70 20 41 4c |ALL: @pc|group AL|
|000027d0| 4c 40 41 4c 4c 22 0a 58 | 23 20 61 76 6f 69 64 73 |L@ALL".X|# avoids|
|000027e0| 20 75 73 65 72 20 6e 61 | 6d 65 20 6c 6f 6f 6b 75 | user na|me looku|
|000027f0| 70 73 20 66 6f 72 20 6d | 65 6d 62 65 72 73 20 6f |ps for m|embers o|
|00002800| 66 20 74 68 65 20 70 63 | 67 72 6f 75 70 20 6e 65 |f the pc|group ne|
|00002810| 74 67 72 6f 75 70 2e 20 | 20 54 68 65 0a 58 23 20 |tgroup. | The.X# |
|00002820| 75 73 65 72 5f 70 61 74 | 74 65 72 6e 20 73 79 6e |user_pat|tern syn|
|00002830| 74 61 78 20 69 73 20 69 | 64 65 6e 74 69 63 61 6c |tax is i|dentical|
|00002840| 20 74 6f 20 74 68 61 74 | 20 6f 66 20 68 6f 73 74 | to that| of host|
|00002850| 5f 70 61 74 74 65 72 6e | 2c 20 62 75 74 20 22 41 |_pattern|, but "A|
|00002860| 4c 4c 22 0a 58 23 20 69 | 73 20 75 73 75 61 6c 6c |LL".X# i|s usuall|
|00002870| 79 20 74 68 65 20 6f 6e | 6c 79 20 75 73 65 72 5f |y the on|ly user_|
|00002880| 70 61 74 74 65 72 6e 20 | 74 68 61 74 20 6d 61 6b |pattern |that mak|
|00002890| 65 73 20 73 65 6e 73 65 | 2e 0a 58 23 20 0a 58 23 |es sense|..X# .X#|
|000028a0| 20 54 68 65 20 64 65 66 | 61 75 6c 74 20 75 73 65 | The def|ault use|
|000028b0| 72 6e 61 6d 65 20 6c 6f | 6f 6b 75 70 20 74 69 6d |rname lo|okup tim|
|000028c0| 65 6f 75 74 20 69 73 20 | 33 30 20 73 65 63 6f 6e |eout is |30 secon|
|000028d0| 64 73 2e 0a 58 23 0a 58 | 23 41 55 54 48 09 3d 20 |ds..X#.X|#AUTH.= |
|000028e0| 2d 44 52 46 43 39 33 31 | 5f 54 49 4d 45 4f 55 54 |-DRFC931|_TIMEOUT|
|000028f0| 3d 33 30 20 2d 44 55 53 | 45 52 5f 41 54 5f 48 4f |=30 -DUS|ER_AT_HO|
|00002900| 53 54 0a 58 0a 58 23 23 | 23 23 23 23 23 23 23 23 |ST.X.X##|########|
|00002910| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002920| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002930| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 0a 58 |########|######.X|
|00002940| 23 20 54 75 72 6e 69 6e | 67 20 6f 6e 20 65 78 70 |# Turnin|g on exp|
|00002950| 65 72 69 6d 65 6e 74 61 | 6c 20 6c 61 6e 67 75 61 |erimenta|l langua|
|00002960| 67 65 20 65 78 74 65 6e | 73 69 6f 6e 73 20 28 4f |ge exten|sions (O|
|00002970| 70 74 69 6f 6e 61 6c 29 | 0a 58 23 0a 58 23 20 49 |ptional)|.X#.X# I|
|00002980| 6e 73 74 65 61 64 20 6f | 66 20 74 68 65 20 6f 66 |nstead o|f the of|
|00002990| 66 69 63 69 61 6c 6c 79 | 20 64 6f 63 75 6d 65 6e |ficially| documen|
|000029a0| 74 65 64 20 61 63 63 65 | 73 73 20 63 6f 6e 74 72 |ted acce|ss contr|
|000029b0| 6f 6c 20 6c 61 6e 67 75 | 61 67 65 2c 20 74 68 65 |ol langu|age, the|
|000029c0| 0a 58 23 20 73 6f 66 74 | 77 61 72 65 20 63 61 6e |.X# soft|ware can|
|000029d0| 20 62 65 20 63 6f 6e 66 | 69 67 75 72 65 64 20 74 | be conf|igured t|
|000029e0| 6f 20 69 6d 70 6c 65 6d | 65 6e 74 20 61 20 6d 6f |o implem|ent a mo|
|000029f0| 72 65 20 65 78 70 65 72 | 69 6d 65 6e 74 61 6c 20 |re exper|imental |
|00002a00| 6c 61 6e 67 75 61 67 65 | 0a 58 23 20 74 68 61 74 |language|.X# that|
|00002a10| 20 69 73 20 65 61 73 69 | 6c 79 20 65 78 74 65 6e | is easi|ly exten|
|00002a20| 64 65 64 2e 20 54 68 65 | 20 65 78 70 65 72 69 6d |ded. The| experim|
|00002a30| 65 6e 74 61 6c 20 6c 61 | 6e 67 75 61 67 65 20 69 |ental la|nguage i|
|00002a40| 73 20 69 6d 70 6c 65 6d | 65 6e 74 65 64 20 62 79 |s implem|ented by|
|00002a50| 0a 58 23 20 74 68 65 20 | 22 6f 70 74 69 6f 6e 73 |.X# the |"options|
|00002a60| 2e 63 22 20 73 6f 75 72 | 63 65 20 6d 6f 64 75 6c |.c" sour|ce modul|
|00002a70| 65 20 77 68 69 63 68 20 | 61 6c 73 6f 20 73 65 72 |e which |also ser|
|00002a80| 76 65 73 20 61 73 20 69 | 74 73 20 64 6f 63 75 6d |ves as i|ts docum|
|00002a90| 65 6e 74 61 74 69 6f 6e | 2e 0a 58 0a 58 53 54 59 |entation|..X.XSTY|
|00002aa0| 4c 45 09 3d 20 2d 44 4f | 50 54 49 4f 4e 53 5f 53 |LE.= -DO|PTIONS_S|
|00002ab0| 54 59 4c 45 3d 73 68 65 | 6c 6c 5f 63 6d 64 09 09 |TYLE=she|ll_cmd..|
|00002ac0| 23 20 54 68 65 20 64 6f | 63 75 6d 65 6e 74 65 64 |# The do|cumented|
|00002ad0| 20 6c 61 6e 67 75 61 67 | 65 0a 58 23 53 54 59 4c | languag|e.X#STYL|
|00002ae0| 45 09 3d 20 2d 44 4f 50 | 54 49 4f 4e 53 5f 53 54 |E.= -DOP|TIONS_ST|
|00002af0| 59 4c 45 3d 70 72 6f 63 | 65 73 73 5f 6f 70 74 69 |YLE=proc|ess_opti|
|00002b00| 6f 6e 73 09 23 20 54 68 | 65 20 65 78 70 65 72 69 |ons.# Th|e experi|
|00002b10| 6d 65 6e 74 61 6c 20 6f | 6e 65 0a 58 0a 58 23 23 |mental o|ne.X.X##|
|00002b20| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002b30| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002b40| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002b50| 23 23 23 23 0a 58 23 20 | 43 68 61 6e 67 69 6e 67 |####.X# |Changing|
|00002b60| 20 74 68 65 20 64 65 66 | 61 75 6c 74 20 66 69 6c | the def|ault fil|
|00002b70| 65 20 70 72 6f 74 65 63 | 74 69 6f 6e 20 6d 61 73 |e protec|tion mas|
|00002b80| 6b 20 28 4f 70 74 69 6f | 6e 61 6c 29 0a 58 23 0a |k (Optio|nal).X#.|
|00002b90| 58 23 20 4f 6e 20 6d 61 | 6e 79 20 73 79 73 74 65 |X# On ma|ny syste|
|00002ba0| 6d 73 2c 20 6e 65 74 77 | 6f 72 6b 20 64 61 65 6d |ms, netw|ork daem|
|00002bb0| 6f 6e 73 20 61 6e 64 20 | 6f 74 68 65 72 20 73 79 |ons and |other sy|
|00002bc0| 73 74 65 6d 20 70 72 6f | 63 65 73 73 65 73 20 61 |stem pro|cesses a|
|00002bd0| 72 65 20 73 74 61 72 74 | 65 64 0a 58 23 20 77 69 |re start|ed.X# wi|
|00002be0| 74 68 20 61 20 7a 65 72 | 6f 20 75 6d 61 73 6b 20 |th a zer|o umask |
|00002bf0| 76 61 6c 75 65 2c 20 73 | 6f 20 74 68 61 74 20 77 |value, s|o that w|
|00002c00| 6f 72 6c 64 2d 77 72 69 | 74 61 62 6c 65 20 66 69 |orld-wri|table fi|
|00002c10| 6c 65 73 20 6d 61 79 20 | 62 65 20 70 72 6f 64 75 |les may |be produ|
|00002c20| 63 65 64 2e 0a 58 23 20 | 49 74 20 69 73 20 61 20 |ced..X# |It is a |
|00002c30| 67 6f 6f 64 20 69 64 65 | 61 20 74 6f 20 65 64 69 |good ide|a to edi|
|00002c40| 74 20 79 6f 75 72 20 2f | 65 74 63 2f 72 63 2a 20 |t your /|etc/rc* |
|00002c50| 66 69 6c 65 73 20 73 6f | 20 74 68 61 74 20 74 68 |files so| that th|
|00002c60| 65 79 20 62 65 67 69 6e | 20 77 69 74 68 0a 58 23 |ey begin| with.X#|
|00002c70| 20 61 6e 20 65 78 70 6c | 69 63 69 74 20 75 6d 61 | an expl|icit uma|
|00002c80| 73 6b 20 73 65 74 74 69 | 6e 67 2e 20 20 4f 6e 20 |sk setti|ng. On |
|00002c90| 6f 75 72 20 73 69 74 65 | 20 77 65 20 75 73 65 20 |our site| we use |
|00002ca0| 60 75 6d 61 73 6b 20 30 | 32 32 27 20 62 65 63 61 |`umask 0|22' beca|
|00002cb0| 75 73 65 20 69 74 0a 58 | 23 20 64 6f 65 73 20 6e |use it.X|# does n|
|00002cc0| 6f 74 20 62 72 65 61 6b | 20 61 6e 79 74 68 69 6e |ot break| anythin|
|00002cd0| 67 20 79 65 74 20 67 69 | 76 65 73 20 61 64 65 71 |g yet gi|ves adeq|
|00002ce0| 75 61 74 65 20 70 72 6f | 74 65 63 74 69 6f 6e 20 |uate pro|tection |
|00002cf0| 61 67 61 69 6e 73 74 20 | 74 61 6d 70 65 72 69 6e |against |tamperin|
|00002d00| 67 2e 0a 58 23 20 0a 58 | 23 20 54 68 65 20 66 6f |g..X# .X|# The fo|
|00002d10| 6c 6c 6f 77 69 6e 67 20 | 6d 61 63 72 6f 20 73 70 |llowing |macro sp|
|00002d20| 65 63 69 66 69 65 73 20 | 74 68 65 20 64 65 66 61 |ecifies |the defa|
|00002d30| 75 6c 74 20 75 6d 61 73 | 6b 20 66 6f 72 20 70 72 |ult umas|k for pr|
|00002d40| 6f 63 65 73 73 65 73 20 | 72 75 6e 20 75 6e 64 65 |ocesses |run unde|
|00002d50| 72 0a 58 23 20 63 6f 6e | 74 72 6f 6c 20 6f 66 20 |r.X# con|trol of |
|00002d60| 74 68 65 20 64 61 65 6d | 6f 6e 20 77 72 61 70 70 |the daem|on wrapp|
|00002d70| 65 72 73 2e 20 43 6f 6d | 6d 65 6e 74 20 69 74 20 |ers. Com|ment it |
|00002d80| 6f 75 74 20 6f 6e 6c 79 | 20 69 66 20 79 6f 75 20 |out only| if you |
|00002d90| 61 72 65 20 63 65 72 74 | 61 69 6e 0a 58 23 20 74 |are cert|ain.X# t|
|00002da0| 68 61 74 20 69 6e 65 74 | 64 20 61 6e 64 20 69 74 |hat inet|d and it|
|00002db0| 73 20 63 68 69 6c 64 72 | 65 6e 20 61 72 65 20 73 |s childr|en are s|
|00002dc0| 74 61 72 74 65 64 20 77 | 69 74 68 20 61 20 73 61 |tarted w|ith a sa|
|00002dd0| 66 65 20 75 6d 61 73 6b | 20 76 61 6c 75 65 2e 0a |fe umask| value..|
|00002de0| 58 0a 58 55 4d 41 53 4b | 09 3d 20 2d 44 44 41 45 |X.XUMASK|.= -DDAE|
|00002df0| 4d 4f 4e 5f 55 4d 41 53 | 4b 3d 30 32 32 0a 58 0a |MON_UMAS|K=022.X.|
|00002e00| 58 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |X#######|########|
|00002e10| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002e20| 23 23 23 23 23 23 23 23 | 0a 58 23 20 54 75 72 6e |########|.X# Turn|
|00002e30| 69 6e 67 20 6f 66 66 20 | 61 63 63 65 73 73 20 63 |ing off |access c|
|00002e40| 6f 6e 74 72 6f 6c 20 28 | 4f 70 74 69 6f 6e 61 6c |ontrol (|Optional|
|00002e50| 29 0a 58 23 0a 58 23 20 | 42 79 20 64 65 66 61 75 |).X#.X# |By defau|
|00002e60| 6c 74 2c 20 68 6f 73 74 | 20 61 63 63 65 73 73 20 |lt, host| access |
|00002e70| 63 6f 6e 74 72 6f 6c 20 | 69 73 20 65 6e 61 62 6c |control |is enabl|
|00002e80| 65 64 2e 20 20 54 6f 20 | 64 69 73 61 62 6c 65 20 |ed. To |disable |
|00002e90| 68 6f 73 74 20 61 63 63 | 65 73 73 0a 58 23 20 63 |host acc|ess.X# c|
|00002ea0| 6f 6e 74 72 6f 6c 2c 20 | 63 6f 6d 6d 65 6e 74 20 |ontrol, |comment |
|00002eb0| 6f 75 74 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |out the |followin|
|00002ec0| 67 20 64 65 66 69 6e 69 | 74 69 6f 6e 2e 20 20 48 |g defini|tion. H|
|00002ed0| 6f 73 74 20 61 63 63 65 | 73 73 20 63 6f 6e 74 72 |ost acce|ss contr|
|00002ee0| 6f 6c 0a 58 23 20 63 61 | 6e 20 61 6c 73 6f 20 62 |ol.X# ca|n also b|
|00002ef0| 65 20 74 75 72 6e 65 64 | 20 6f 66 66 20 61 74 20 |e turned| off at |
|00002f00| 72 75 6e 74 69 6d 65 20 | 62 79 20 70 72 6f 76 69 |runtime |by provi|
|00002f10| 64 69 6e 67 20 6e 6f 20 | 6f 72 20 65 6d 70 74 79 |ding no |or empty|
|00002f20| 20 61 63 63 65 73 73 0a | 58 23 20 63 6f 6e 74 72 | access.|X# contr|
|00002f30| 6f 6c 20 74 61 62 6c 65 | 73 2e 0a 58 0a 58 41 43 |ol table|s..X.XAC|
|00002f40| 43 45 53 53 09 3d 20 2d | 44 48 4f 53 54 53 5f 41 |CESS.= -|DHOSTS_A|
|00002f50| 43 43 45 53 53 0a 58 0a | 58 23 23 23 23 23 23 23 |CCESS.X.|X#######|
|00002f60| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002f70| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002f80| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00002f90| 23 0a 58 23 20 43 68 61 | 6e 67 69 6e 67 20 74 68 |#.X# Cha|nging th|
|00002fa0| 65 20 61 63 63 65 73 73 | 20 63 6f 6e 74 72 6f 6c |e access| control|
|00002fb0| 20 74 61 62 6c 65 20 70 | 61 74 68 6e 61 6d 65 73 | table p|athnames|
|00002fc0| 20 28 4f 70 74 69 6f 6e | 61 6c 29 0a 58 23 0a 58 | (Option|al).X#.X|
|00002fd0| 23 20 54 68 65 20 48 4f | 53 54 53 5f 41 4c 4c 4f |# The HO|STS_ALLO|
|00002fe0| 57 20 61 6e 64 20 48 4f | 53 54 53 5f 44 45 4e 59 |W and HO|STS_DENY|
|00002ff0| 20 6d 61 63 72 6f 73 20 | 64 65 66 69 6e 65 20 77 | macros |define w|
|00003000| 68 65 72 65 20 74 68 65 | 20 70 72 6f 67 72 61 6d |here the| program|
|00003010| 73 20 77 69 6c 6c 0a 58 | 23 20 6c 6f 6f 6b 20 66 |s will.X|# look f|
|00003020| 6f 72 20 61 63 63 65 73 | 73 20 63 6f 6e 74 72 6f |or acces|s contro|
|00003030| 6c 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 2e 20 57 |l inform|ation. W|
|00003040| 61 74 63 68 20 6f 75 74 | 20 66 6f 72 20 74 68 65 |atch out| for the|
|00003050| 20 71 75 6f 74 65 73 20 | 61 6e 64 0a 58 23 20 62 | quotes |and.X# b|
|00003060| 61 63 6b 73 6c 61 73 68 | 65 73 20 77 68 65 6e 20 |ackslash|es when |
|00003070| 79 6f 75 20 6d 61 6b 65 | 20 63 68 61 6e 67 65 73 |you make| changes|
|00003080| 2e 0a 58 0a 58 54 41 42 | 4c 45 53 09 3d 20 2d 44 |..X.XTAB|LES.= -D|
|00003090| 48 4f 53 54 53 5f 44 45 | 4e 59 3d 5c 22 2f 65 74 |HOSTS_DE|NY=\"/et|
|000030a0| 63 2f 68 6f 73 74 73 2e | 64 65 6e 79 5c 22 20 2d |c/hosts.|deny\" -|
|000030b0| 44 48 4f 53 54 53 5f 41 | 4c 4c 4f 57 3d 5c 22 2f |DHOSTS_A|LLOW=\"/|
|000030c0| 65 74 63 2f 68 6f 73 74 | 73 2e 61 6c 6c 6f 77 5c |etc/host|s.allow\|
|000030d0| 22 0a 58 0a 58 23 23 23 | 23 23 23 23 23 23 23 23 |".X.X###|########|
|000030e0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|000030f0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00003100| 0a 58 23 20 54 75 72 6e | 69 6e 67 20 6f 66 66 20 |.X# Turn|ing off |
|00003110| 68 6f 73 74 20 4e 41 4d | 45 20 63 68 65 63 6b 69 |host NAM|E checki|
|00003120| 6e 67 20 28 4f 70 74 69 | 6f 6e 61 6c 29 0a 58 23 |ng (Opti|onal).X#|
|00003130| 0a 58 23 20 42 79 20 64 | 65 66 61 75 6c 74 2c 20 |.X# By d|efault, |
|00003140| 74 68 65 20 73 6f 66 74 | 77 61 72 65 20 74 72 69 |the soft|ware tri|
|00003150| 65 73 20 74 6f 20 70 72 | 6f 74 65 63 74 20 61 67 |es to pr|otect ag|
|00003160| 61 69 6e 73 74 20 68 6f | 73 74 73 20 74 68 61 74 |ainst ho|sts that|
|00003170| 20 63 6c 61 69 6d 20 74 | 6f 0a 58 23 20 68 61 76 | claim t|o.X# hav|
|00003180| 65 20 73 6f 6d 65 6f 6e | 65 20 65 6c 73 65 73 20 |e someon|e elses |
|00003190| 68 6f 73 74 20 6e 61 6d | 65 2e 20 54 68 69 73 20 |host nam|e. This |
|000031a0| 69 73 20 72 65 6c 65 76 | 61 6e 74 20 66 6f 72 20 |is relev|ant for |
|000031b0| 6e 65 74 77 6f 72 6b 20 | 73 65 72 76 69 63 65 73 |network |services|
|000031c0| 0a 58 23 20 77 68 6f 73 | 65 20 61 75 74 68 65 6e |.X# whos|e authen|
|000031d0| 74 69 63 61 74 69 6f 6e | 20 64 65 70 65 6e 64 73 |tication| depends|
|000031e0| 20 6f 6e 20 68 6f 73 74 | 20 6e 61 6d 65 73 2c 20 | on host| names, |
|000031f0| 73 75 63 68 20 61 73 20 | 72 73 68 20 61 6e 64 20 |such as |rsh and |
|00003200| 72 6c 6f 67 69 6e 2e 0a | 58 23 0a 58 23 20 57 69 |rlogin..|X#.X# Wi|
|00003210| 74 68 20 70 61 72 61 6e | 6f 69 64 20 6d 6f 64 65 |th paran|oid mode|
|00003220| 20 6f 6e 2c 20 63 6f 6e | 6e 65 63 74 69 6f 6e 73 | on, con|nections|
|00003230| 20 77 69 6c 6c 20 62 65 | 20 72 65 6a 65 63 74 65 | will be| rejecte|
|00003240| 64 20 77 68 65 6e 20 74 | 68 65 20 68 6f 73 74 20 |d when t|he host |
|00003250| 6e 61 6d 65 0a 58 23 20 | 64 6f 65 73 20 6e 6f 74 |name.X# |does not|
|00003260| 20 6d 61 74 63 68 20 74 | 68 65 20 68 6f 73 74 20 | match t|he host |
|00003270| 61 64 64 72 65 73 73 2e | 20 43 6f 6e 6e 65 63 74 |address.| Connect|
|00003280| 69 6f 6e 73 20 77 69 6c | 6c 20 61 6c 73 6f 20 62 |ions wil|l also b|
|00003290| 65 20 72 65 6a 65 63 74 | 65 64 20 77 68 65 6e 0a |e reject|ed when.|
|000032a0| 58 23 20 74 68 65 20 68 | 6f 73 74 20 6e 61 6d 65 |X# the h|ost name|
|000032b0| 20 63 61 6e 6e 6f 74 20 | 62 65 20 76 65 72 69 66 | cannot |be verif|
|000032c0| 69 65 64 20 62 65 63 61 | 75 73 65 20 67 65 74 68 |ied beca|use geth|
|000032d0| 6f 73 74 62 79 6e 61 6d | 65 28 29 20 66 61 69 6c |ostbynam|e() fail|
|000032e0| 73 2e 0a 58 23 0a 58 23 | 20 43 6f 6d 6d 65 6e 74 |s..X#.X#| Comment|
|000032f0| 20 6f 75 74 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 | out the| followi|
|00003300| 6e 67 20 64 65 66 69 6e | 69 74 69 6f 6e 20 69 66 |ng defin|ition if|
|00003310| 20 79 6f 75 20 64 6f 20 | 6e 6f 74 20 6e 65 65 64 | you do |not need|
|00003320| 20 74 68 69 73 20 61 64 | 64 69 74 69 6f 6e 61 6c | this ad|ditional|
|00003330| 0a 58 23 20 70 72 6f 74 | 65 63 74 69 6f 6e 2e 20 |.X# prot|ection. |
|00003340| 49 66 20 70 61 72 61 6e | 6f 69 64 20 6d 6f 64 65 |If paran|oid mode|
|00003350| 20 69 73 20 6f 66 66 2c | 20 61 6e 64 20 61 20 68 | is off,| and a h|
|00003360| 6f 73 74 20 6e 61 6d 65 | 20 63 68 65 63 6b 20 66 |ost name| check f|
|00003370| 61 69 6c 73 2c 20 74 68 | 65 0a 58 23 20 64 61 65 |ails, th|e.X# dae|
|00003380| 6d 6f 6e 20 77 72 61 70 | 70 65 72 73 20 77 69 6c |mon wrap|pers wil|
|00003390| 6c 20 75 73 65 20 6f 6e | 6c 79 20 74 68 65 20 68 |l use on|ly the h|
|000033a0| 6f 73 74 20 61 64 64 72 | 65 73 73 2c 20 62 75 74 |ost addr|ess, but|
|000033b0| 20 79 6f 75 72 20 64 61 | 65 6d 6f 6e 73 20 6d 61 | your da|emons ma|
|000033c0| 79 0a 58 23 20 73 74 69 | 6c 6c 20 75 73 65 20 74 |y.X# sti|ll use t|
|000033d0| 68 65 20 68 6f 73 74 20 | 6e 61 6d 65 2e 0a 58 0a |he host |name..X.|
|000033e0| 58 50 41 52 41 4e 4f 49 | 44 3d 20 2d 44 50 41 52 |XPARANOI|D= -DPAR|
|000033f0| 41 4e 4f 49 44 0a 58 0a | 58 23 23 23 23 23 23 23 |ANOID.X.|X#######|
|00003400| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00003410| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00003420| 23 23 23 23 23 23 23 0a | 58 23 20 54 75 72 6e 69 |#######.|X# Turni|
|00003430| 6e 67 20 6f 66 66 20 68 | 6f 73 74 20 41 44 44 52 |ng off h|ost ADDR|
|00003440| 45 53 53 20 63 68 65 63 | 6b 69 6e 67 20 28 4f 70 |ESS chec|king (Op|
|00003450| 74 69 6f 6e 61 6c 29 0a | 58 23 0a 58 23 20 42 79 |tional).|X#.X# By|
|00003460| 20 64 65 66 61 75 6c 74 | 2c 20 74 68 65 20 73 6f | default|, the so|
|00003470| 66 74 77 61 72 65 20 74 | 72 69 65 73 20 74 6f 20 |ftware t|ries to |
|00003480| 70 72 6f 74 65 63 74 20 | 61 67 61 69 6e 73 74 20 |protect |against |
|00003490| 68 6f 73 74 73 20 74 68 | 61 74 20 70 72 65 74 65 |hosts th|at prete|
|000034a0| 6e 64 20 74 6f 0a 58 23 | 20 68 61 76 65 20 73 6f |nd to.X#| have so|
|000034b0| 6d 65 6f 6e 65 20 65 6c | 73 65 73 20 68 6f 73 74 |meone el|ses host|
|000034c0| 20 61 64 64 72 65 73 73 | 2e 20 54 68 69 73 20 69 | address|. This i|
|000034d0| 73 20 72 65 6c 65 76 61 | 6e 74 20 66 6f 72 20 6e |s releva|nt for n|
|000034e0| 65 74 77 6f 72 6b 20 73 | 65 72 76 69 63 65 73 0a |etwork s|ervices.|
|000034f0| 58 23 20 77 68 6f 73 65 | 20 61 75 74 68 65 6e 74 |X# whose| authent|
|00003500| 69 63 61 74 69 6f 6e 20 | 64 65 70 65 6e 64 73 20 |ication |depends |
|00003510| 6f 6e 20 68 6f 73 74 20 | 6e 61 6d 65 73 2c 20 73 |on host |names, s|
|00003520| 75 63 68 20 61 73 20 72 | 73 68 20 61 6e 64 20 72 |uch as r|sh and r|
|00003530| 6c 6f 67 69 6e 2c 0a 58 | 23 20 62 65 63 61 75 73 |login,.X|# becaus|
|00003540| 65 20 74 68 65 20 6e 65 | 74 77 6f 72 6b 20 61 64 |e the ne|twork ad|
|00003550| 64 72 65 73 73 20 69 73 | 20 75 73 65 64 20 74 6f |dress is| used to|
|00003560| 20 6c 6f 6f 6b 20 75 70 | 20 74 68 65 20 72 65 6d | look up| the rem|
|00003570| 6f 74 65 20 68 6f 73 74 | 20 6e 61 6d 65 2e 0a 58 |ote host| name..X|
|00003580| 23 20 0a 58 23 20 54 68 | 65 20 70 72 6f 74 65 63 |# .X# Th|e protec|
|00003590| 74 69 6f 6e 20 69 73 20 | 65 66 66 65 63 74 69 76 |tion is |effectiv|
|000035a0| 65 20 6f 6e 6c 79 20 77 | 68 65 6e 20 74 68 65 20 |e only w|hen the |
|000035b0| 6f 66 66 65 6e 64 69 6e | 67 20 68 6f 73 74 20 63 |offendin|g host c|
|000035c0| 6c 61 69 6d 73 20 74 6f | 20 68 61 76 65 0a 58 23 |laims to| have.X#|
|000035d0| 20 61 20 6e 65 74 77 6f | 72 6b 20 61 64 64 72 65 | a netwo|rk addre|
|000035e0| 73 73 20 74 68 61 74 20 | 6c 69 65 73 20 6f 75 74 |ss that |lies out|
|000035f0| 73 69 64 65 20 69 74 73 | 20 6f 77 6e 20 6e 65 74 |side its| own net|
|00003600| 77 6f 72 6b 2e 0a 58 23 | 0a 58 23 20 4d 79 20 73 |work..X#|.X# My s|
|00003610| 69 74 65 20 68 61 73 20 | 62 65 65 6e 20 72 75 6e |ite has |been run|
|00003620| 6e 69 6e 67 20 72 6c 6f | 67 69 6e 64 20 61 6e 64 |ning rlo|gind and|
|00003630| 20 72 73 68 64 20 64 61 | 65 6d 6f 6e 73 20 74 68 | rshd da|emons th|
|00003640| 61 74 20 69 6d 70 6c 65 | 6d 65 6e 74 20 74 68 69 |at imple|ment thi|
|00003650| 73 0a 58 23 20 66 65 61 | 74 75 72 65 20 66 6f 72 |s.X# fea|ture for|
|00003660| 20 6d 6f 72 65 20 74 68 | 61 6e 20 32 20 79 65 61 | more th|an 2 yea|
|00003670| 72 73 2c 20 61 6e 64 20 | 77 69 74 68 6f 75 74 20 |rs, and |without |
|00003680| 61 6e 79 20 69 6c 6c 20 | 65 66 66 65 63 74 73 2e |any ill |effects.|
|00003690| 0a 58 23 0a 58 23 20 43 | 6f 6d 6d 65 6e 74 20 6f |.X#.X# C|omment o|
|000036a0| 75 74 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |ut the f|ollowing|
|000036b0| 20 64 65 66 69 6e 69 74 | 69 6f 6e 20 69 66 20 79 | definit|ion if y|
|000036c0| 6f 75 20 64 6f 20 6e 6f | 74 20 6e 65 65 64 20 74 |ou do no|t need t|
|000036d0| 68 65 20 61 64 64 69 74 | 69 6f 6e 61 6c 0a 58 23 |he addit|ional.X#|
|000036e0| 20 70 72 6f 74 65 63 74 | 69 6f 6e 2e 0a 58 0a 58 | protect|ion..X.X|
|000036f0| 4b 49 4c 4c 5f 4f 50 54 | 3d 20 2d 44 4b 49 4c 4c |KILL_OPT|= -DKILL|
|00003700| 5f 49 50 5f 4f 50 54 49 | 4f 4e 53 0a 58 0a 58 23 |_IP_OPTI|ONS.X.X#|
|00003710| 23 20 45 6e 64 20 63 6f | 6e 66 69 67 75 72 61 74 |# End co|nfigurat|
|00003720| 69 6f 6e 20 6f 70 74 69 | 6f 6e 73 0a 58 23 23 23 |ion opti|ons.X###|
|00003730| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00003740| 23 23 23 23 23 23 23 23 | 23 0a 58 0a 58 43 46 4c |########|#.X.XCFL|
|00003750| 41 47 53 09 3d 20 2d 4f | 20 2d 44 46 41 43 49 4c |AGS.= -O| -DFACIL|
|00003760| 49 54 59 3d 24 28 46 41 | 43 49 4c 49 54 59 29 20 |ITY=$(FA|CILITY) |
|00003770| 24 28 41 43 43 45 53 53 | 29 20 24 28 50 41 52 41 |$(ACCESS|) $(PARA|
|00003780| 4e 4f 49 44 29 20 24 28 | 4e 45 54 47 52 4f 55 50 |NOID) $(|NETGROUP|
|00003790| 29 20 5c 0a 58 09 24 28 | 42 55 47 53 29 20 24 28 |) \.X.$(|BUGS) $(|
|000037a0| 53 59 53 54 59 50 45 29 | 20 24 28 41 55 54 48 29 |SYSTYPE)| $(AUTH)|
|000037b0| 20 24 28 55 4d 41 53 4b | 29 20 2d 44 52 45 41 4c | $(UMASK|) -DREAL|
|000037c0| 5f 4d 49 53 43 44 3d 24 | 28 52 45 41 4c 5f 4d 49 |_MISCD=$|(REAL_MI|
|000037d0| 53 43 44 29 20 5c 0a 58 | 09 2d 44 52 45 41 4c 5f |SCD) \.X|.-DREAL_|
|000037e0| 44 41 45 4d 4f 4e 5f 44 | 49 52 3d 24 28 52 45 41 |DAEMON_D|IR=$(REA|
|000037f0| 4c 5f 44 41 45 4d 4f 4e | 5f 44 49 52 29 20 24 28 |L_DAEMON|_DIR) $(|
|00003800| 53 54 59 4c 45 29 20 24 | 28 4b 49 4c 4c 5f 4f 50 |STYLE) $|(KILL_OP|
|00003810| 54 29 20 5c 0a 58 09 2d | 44 53 45 56 45 52 49 54 |T) \.X.-|DSEVERIT|
|00003820| 59 3d 24 28 53 45 56 45 | 52 49 54 59 29 20 24 28 |Y=$(SEVE|RITY) $(|
|00003830| 55 43 48 41 52 29 20 24 | 28 54 41 42 4c 45 53 29 |UCHAR) $|(TABLES)|
|00003840| 20 24 28 53 54 52 49 4e | 47 53 29 0a 58 0a 58 4c | $(STRIN|GS).X.XL|
|00003850| 49 42 5f 4f 42 4a 3d 20 | 68 6f 73 74 73 5f 61 63 |IB_OBJ= |hosts_ac|
|00003860| 63 65 73 73 2e 6f 20 6f | 70 74 69 6f 6e 73 2e 6f |cess.o o|ptions.o|
|00003870| 20 73 68 65 6c 6c 5f 63 | 6d 64 2e 6f 20 72 66 63 | shell_c|md.o rfc|
|00003880| 39 33 31 2e 6f 20 68 6f | 73 74 73 5f 69 6e 66 6f |931.o ho|sts_info|
|00003890| 2e 6f 20 5c 0a 58 09 68 | 6f 73 74 73 5f 63 74 6c |.o \.X.h|osts_ctl|
|000038a0| 2e 6f 20 72 65 66 75 73 | 65 2e 6f 20 70 65 72 63 |.o refus|e.o perc|
|000038b0| 65 6e 74 5f 78 2e 6f 20 | 63 6c 65 61 6e 5f 65 78 |ent_x.o |clean_ex|
|000038c0| 69 74 2e 6f 20 24 28 41 | 55 58 5f 4f 42 4a 29 20 |it.o $(A|UX_OBJ) |
|000038d0| 5c 0a 58 09 66 72 6f 6d | 68 6f 73 74 2e 6f 20 66 |\.X.from|host.o f|
|000038e0| 69 78 5f 6f 70 74 69 6f | 6e 73 2e 6f 0a 58 0a 58 |ix_optio|ns.o.X.X|
|000038f0| 4b 49 54 09 3d 20 52 45 | 41 44 4d 45 20 6d 69 73 |KIT.= RE|ADME mis|
|00003900| 63 64 2e 63 20 74 63 70 | 64 2e 63 20 66 72 6f 6d |cd.c tcp|d.c from|
|00003910| 68 6f 73 74 2e 63 20 68 | 6f 73 74 73 5f 61 63 63 |host.c h|osts_acc|
|00003920| 65 73 73 2e 63 20 73 68 | 65 6c 6c 5f 63 6d 64 2e |ess.c sh|ell_cmd.|
|00003930| 63 20 5c 0a 58 09 6c 6f | 67 5f 74 63 70 2e 68 20 |c \.X.lo|g_tcp.h |
|00003940| 74 72 79 2e 63 20 72 65 | 66 75 73 65 2e 63 20 4d |try.c re|fuse.c M|
|00003950| 61 6b 65 66 69 6c 65 2e | 64 69 73 74 20 68 6f 73 |akefile.|dist hos|
|00003960| 74 73 5f 61 63 63 65 73 | 73 2e 35 20 73 74 72 63 |ts_acces|s.5 strc|
|00003970| 61 73 65 63 6d 70 2e 63 | 20 5c 0a 58 09 42 4c 55 |asecmp.c| \.X.BLU|
|00003980| 52 42 20 72 66 63 39 33 | 31 2e 63 20 74 63 70 64 |RB rfc93|1.c tcpd|
|00003990| 2e 38 20 68 6f 73 74 73 | 5f 69 6e 66 6f 2e 63 20 |.8 hosts|_info.c |
|000039a0| 68 6f 73 74 73 5f 61 63 | 63 65 73 73 2e 33 20 68 |hosts_ac|cess.3 h|
|000039b0| 6f 73 74 73 5f 63 74 6c | 2e 63 20 5c 0a 58 09 70 |osts_ctl|.c \.X.p|
|000039c0| 65 72 63 65 6e 74 5f 78 | 2e 63 20 6f 70 74 69 6f |ercent_x|.c optio|
|000039d0| 6e 73 2e 63 20 63 6c 65 | 61 6e 5f 65 78 69 74 2e |ns.c cle|an_exit.|
|000039e0| 63 20 73 65 74 65 6e 76 | 2e 63 20 70 61 74 63 68 |c setenv|.c patch|
|000039f0| 6c 65 76 65 6c 2e 68 20 | 73 74 72 74 6f 6b 2e 63 |level.h |strtok.c|
|00003a00| 20 5c 0a 58 09 66 69 78 | 5f 6f 70 74 69 6f 6e 73 | \.X.fix|_options|
|00003a10| 2e 63 20 69 6e 65 74 5f | 61 64 64 72 5f 66 69 78 |.c inet_|addr_fix|
|00003a20| 0a 58 0a 58 4c 49 42 09 | 3d 20 6c 69 62 77 72 61 |.X.XLIB.|= libwra|
|00003a30| 70 2e 61 0a 58 0a 58 24 | 28 4c 49 42 29 3a 09 24 |p.a.X.X$|(LIB):.$|
|00003a40| 28 4c 49 42 5f 4f 42 4a | 29 0a 58 09 72 6d 20 2d |(LIB_OBJ|).X.rm -|
|00003a50| 66 20 24 28 4c 49 42 29 | 0a 58 09 61 72 20 24 28 |f $(LIB)|.X.ar $(|
|00003a60| 41 52 46 4c 41 47 53 29 | 20 24 28 4c 49 42 29 20 |ARFLAGS)| $(LIB) |
|00003a70| 24 28 4c 49 42 5f 4f 42 | 4a 29 0a 58 09 24 28 52 |$(LIB_OB|J).X.$(R|
|00003a80| 41 4e 4c 49 42 29 20 24 | 28 4c 49 42 29 0a 58 0a |ANLIB) $|(LIB).X.|
|00003a90| 58 74 63 70 64 3a 09 74 | 63 70 64 2e 6f 20 66 72 |Xtcpd:.t|cpd.o fr|
|00003aa0| 6f 6d 68 6f 73 74 2e 6f | 20 24 28 4c 49 42 29 0a |omhost.o| $(LIB).|
|00003ab0| 58 09 24 28 43 43 29 20 | 24 28 43 46 4c 41 47 53 |X.$(CC) |$(CFLAGS|
|00003ac0| 29 20 2d 6f 20 24 40 20 | 74 63 70 64 2e 6f 20 66 |) -o $@ |tcpd.o f|
|00003ad0| 72 6f 6d 68 6f 73 74 2e | 6f 20 24 28 4c 49 42 29 |romhost.|o $(LIB)|
|00003ae0| 20 24 28 4c 49 42 53 29 | 0a 58 0a 58 6d 69 73 63 | $(LIBS)|.X.Xmisc|
|00003af0| 64 3a 09 6d 69 73 63 64 | 2e 6f 20 66 72 6f 6d 68 |d:.miscd|.o fromh|
|00003b00| 6f 73 74 2e 6f 20 24 28 | 4c 49 42 29 0a 58 09 24 |ost.o $(|LIB).X.$|
|00003b10| 28 43 43 29 20 24 28 43 | 46 4c 41 47 53 29 20 2d |(CC) $(C|FLAGS) -|
|00003b20| 6f 20 24 40 20 6d 69 73 | 63 64 2e 6f 20 66 72 6f |o $@ mis|cd.o fro|
|00003b30| 6d 68 6f 73 74 2e 6f 20 | 24 28 4c 49 42 29 20 24 |mhost.o |$(LIB) $|
|00003b40| 28 4c 49 42 53 29 0a 58 | 0a 58 74 72 79 3a 09 74 |(LIBS).X|.Xtry:.t|
|00003b50| 72 79 2e 6f 20 24 28 4c | 49 42 29 0a 58 09 24 28 |ry.o $(L|IB).X.$(|
|00003b60| 43 43 29 20 24 28 43 46 | 4c 41 47 53 29 20 2d 6f |CC) $(CF|LAGS) -o|
|00003b70| 20 24 40 20 74 72 79 2e | 6f 20 24 28 4c 49 42 29 | $@ try.|o $(LIB)|
|00003b80| 20 24 28 4c 49 42 53 29 | 0a 58 0a 58 66 72 6f 6d | $(LIBS)|.X.Xfrom|
|00003b90| 68 6f 73 74 3a 20 66 72 | 6f 6d 68 6f 73 74 2e 63 |host: fr|omhost.c|
|00003ba0| 20 6c 6f 67 5f 74 63 70 | 2e 68 20 4d 61 6b 65 66 | log_tcp|.h Makef|
|00003bb0| 69 6c 65 20 24 28 4c 49 | 42 29 0a 58 09 24 28 43 |ile $(LI|B).X.$(C|
|00003bc0| 43 29 20 24 28 43 46 4c | 41 47 53 29 20 2d 44 54 |C) $(CFL|AGS) -DT|
|00003bd0| 45 53 54 20 2d 6f 20 66 | 72 6f 6d 68 6f 73 74 20 |EST -o f|romhost |
|00003be0| 66 72 6f 6d 68 6f 73 74 | 2e 63 20 24 28 4c 49 42 |fromhost|.c $(LIB|
|00003bf0| 29 20 24 28 4c 49 42 53 | 29 0a 58 09 72 6d 20 2d |) $(LIBS|).X.rm -|
|00003c00| 66 20 66 72 6f 6d 68 6f | 73 74 2e 6f 0a 58 0a 58 |f fromho|st.o.X.X|
|00003c10| 73 68 61 72 3a 09 24 28 | 4b 49 54 29 0a 58 09 40 |shar:.$(|KIT).X.@|
|00003c20| 73 68 61 72 20 24 28 4b | 49 54 29 0a 58 0a 58 6b |shar $(K|IT).X.Xk|
|00003c30| 69 74 3a 09 24 28 4b 49 | 54 29 0a 58 09 40 6d 61 |it:.$(KI|T).X.@ma|
|00003c40| 6b 65 6b 69 74 20 24 28 | 4b 49 54 29 0a 58 0a 58 |kekit $(|KIT).X.X|
|00003c50| 61 72 63 68 69 76 65 3a | 0a 58 09 24 28 41 52 43 |archive:|.X.$(ARC|
|00003c60| 48 49 56 45 29 20 24 28 | 4b 49 54 29 0a 58 0a 58 |HIVE) $(|KIT).X.X|
|00003c70| 63 6c 65 61 6e 3a 0a 58 | 09 72 6d 20 2d 66 20 74 |clean:.X|.rm -f t|
|00003c80| 63 70 64 20 6d 69 73 63 | 64 20 74 72 79 20 66 72 |cpd misc|d try fr|
|00003c90| 6f 6d 68 6f 73 74 20 2a | 2e 5b 6f 61 5d 20 63 6f |omhost *|.[oa] co|
|00003ca0| 72 65 0a 58 0a 58 23 20 | 45 6e 61 62 6c 65 20 61 |re.X.X# |Enable a|
|00003cb0| 6c 6c 20 62 65 6c 6c 73 | 20 61 6e 64 20 77 68 69 |ll bells| and whi|
|00003cc0| 73 74 6c 65 73 20 66 6f | 72 20 6c 69 6e 74 69 6e |stles fo|r lintin|
|00003cd0| 67 2e 0a 58 0a 58 6c 69 | 6e 74 3a 20 74 63 70 64 |g..X.Xli|nt: tcpd|
|00003ce0| 5f 6c 69 6e 74 20 6d 69 | 73 63 64 5f 6c 69 6e 74 |_lint mi|scd_lint|
|00003cf0| 20 74 72 79 5f 6c 69 6e | 74 0a 58 0a 58 74 63 70 | try_lin|t.X.Xtcp|
|00003d00| 64 5f 6c 69 6e 74 3a 0a | 58 09 6c 69 6e 74 20 2d |d_lint:.|X.lint -|
|00003d10| 44 46 41 43 49 4c 49 54 | 59 3d 4c 4f 47 5f 4d 41 |DFACILIT|Y=LOG_MA|
|00003d20| 49 4c 20 2d 44 48 4f 53 | 54 53 5f 41 43 43 45 53 |IL -DHOS|TS_ACCES|
|00003d30| 53 20 2d 44 50 41 52 41 | 4e 4f 49 44 20 2d 44 4e |S -DPARA|NOID -DN|
|00003d40| 45 54 47 52 4f 55 50 20 | 5c 0a 58 09 2d 44 47 45 |ETGROUP |\.X.-DGE|
|00003d50| 54 50 45 45 52 4e 41 4d | 45 5f 42 55 47 20 2d 44 |TPEERNAM|E_BUG -D|
|00003d60| 44 41 45 4d 4f 4e 5f 55 | 4d 41 53 4b 3d 30 32 32 |DAEMON_U|MASK=022|
|00003d70| 20 2d 44 53 45 56 45 52 | 49 54 59 3d 24 28 53 45 | -DSEVER|ITY=$(SE|
|00003d80| 56 45 52 49 54 59 29 20 | 5c 0a 58 09 2d 44 55 53 |VERITY) |\.X.-DUS|
|00003d90| 45 52 5f 41 54 5f 48 4f | 53 54 20 2d 44 4b 49 4c |ER_AT_HO|ST -DKIL|
|00003da0| 4c 5f 49 50 5f 4f 50 54 | 49 4f 4e 53 20 2d 44 4f |L_IP_OPT|IONS -DO|
|00003db0| 50 54 49 4f 4e 53 5f 53 | 54 59 4c 45 3d 70 72 6f |PTIONS_S|TYLE=pro|
|00003dc0| 63 65 73 73 5f 6f 70 74 | 69 6f 6e 73 20 5c 0a 58 |cess_opt|ions \.X|
|00003dd0| 09 74 63 70 64 2e 63 20 | 66 72 6f 6d 68 6f 73 74 |.tcpd.c |fromhost|
|00003de0| 2e 63 20 68 6f 73 74 73 | 5f 61 63 63 65 73 73 2e |.c hosts|_access.|
|00003df0| 63 20 73 68 65 6c 6c 5f | 63 6d 64 2e 63 20 72 65 |c shell_|cmd.c re|
|00003e00| 66 75 73 65 2e 63 20 72 | 66 63 39 33 31 2e 63 20 |fuse.c r|fc931.c |
|00003e10| 5c 0a 58 09 68 6f 73 74 | 73 5f 69 6e 66 6f 2e 63 |\.X.host|s_info.c|
|00003e20| 20 70 65 72 63 65 6e 74 | 5f 78 2e 63 20 63 6c 65 | percent|_x.c cle|
|00003e30| 61 6e 5f 65 78 69 74 2e | 63 20 6f 70 74 69 6f 6e |an_exit.|c option|
|00003e40| 73 2e 63 20 73 65 74 65 | 6e 76 2e 63 20 66 69 78 |s.c sete|nv.c fix|
|00003e50| 5f 6f 70 74 69 6f 6e 73 | 2e 63 0a 58 0a 58 6d 69 |_options|.c.X.Xmi|
|00003e60| 73 63 64 5f 6c 69 6e 74 | 3a 0a 58 09 6c 69 6e 74 |scd_lint|:.X.lint|
|00003e70| 20 2d 44 46 41 43 49 4c | 49 54 59 3d 4c 4f 47 5f | -DFACIL|ITY=LOG_|
|00003e80| 4d 41 49 4c 20 2d 44 48 | 4f 53 54 53 5f 41 43 43 |MAIL -DH|OSTS_ACC|
|00003e90| 45 53 53 20 2d 44 50 41 | 52 41 4e 4f 49 44 20 2d |ESS -DPA|RANOID -|
|00003ea0| 44 4e 45 54 47 52 4f 55 | 50 20 5c 0a 58 09 2d 44 |DNETGROU|P \.X.-D|
|00003eb0| 47 45 54 50 45 45 52 4e | 41 4d 45 5f 42 55 47 20 |GETPEERN|AME_BUG |
|00003ec0| 2d 44 44 41 45 4d 4f 4e | 5f 55 4d 41 53 4b 3d 30 |-DDAEMON|_UMASK=0|
|00003ed0| 32 32 20 2d 44 53 45 56 | 45 52 49 54 59 3d 24 28 |22 -DSEV|ERITY=$(|
|00003ee0| 53 45 56 45 52 49 54 59 | 29 20 5c 0a 58 09 2d 44 |SEVERITY|) \.X.-D|
|00003ef0| 55 53 45 52 5f 41 54 5f | 48 4f 53 54 20 2d 44 4b |USER_AT_|HOST -DK|
|00003f00| 49 4c 4c 5f 49 50 5f 4f | 50 54 49 4f 4e 53 20 2d |ILL_IP_O|PTIONS -|
|00003f10| 44 4f 50 54 49 4f 4e 53 | 5f 53 54 59 4c 45 3d 70 |DOPTIONS|_STYLE=p|
|00003f20| 72 6f 63 65 73 73 5f 6f | 70 74 69 6f 6e 73 20 5c |rocess_o|ptions \|
|00003f30| 0a 58 09 6d 69 73 63 64 | 2e 63 20 66 72 6f 6d 68 |.X.miscd|.c fromh|
|00003f40| 6f 73 74 2e 63 20 68 6f | 73 74 73 5f 61 63 63 65 |ost.c ho|sts_acce|
|00003f50| 73 73 2e 63 20 73 68 65 | 6c 6c 5f 63 6d 64 2e 63 |ss.c she|ll_cmd.c|
|00003f60| 20 72 65 66 75 73 65 2e | 63 20 72 66 63 39 33 31 | refuse.|c rfc931|
|00003f70| 2e 63 20 5c 0a 58 09 68 | 6f 73 74 73 5f 69 6e 66 |.c \.X.h|osts_inf|
|00003f80| 6f 2e 63 20 70 65 72 63 | 65 6e 74 5f 78 2e 63 20 |o.c perc|ent_x.c |
|00003f90| 63 6c 65 61 6e 5f 65 78 | 69 74 2e 63 20 6f 70 74 |clean_ex|it.c opt|
|00003fa0| 69 6f 6e 73 2e 63 20 73 | 65 74 65 6e 76 2e 63 20 |ions.c s|etenv.c |
|00003fb0| 66 69 78 5f 6f 70 74 69 | 6f 6e 73 2e 63 0a 58 0a |fix_opti|ons.c.X.|
|00003fc0| 58 74 72 79 5f 6c 69 6e | 74 3a 0a 58 09 6c 69 6e |Xtry_lin|t:.X.lin|
|00003fd0| 74 20 2d 44 46 41 43 49 | 4c 49 54 59 3d 4c 4f 47 |t -DFACI|LITY=LOG|
|00003fe0| 5f 4d 41 49 4c 20 2d 44 | 48 4f 53 54 53 5f 41 43 |_MAIL -D|HOSTS_AC|
|00003ff0| 43 45 53 53 20 2d 44 4e | 45 54 47 52 4f 55 50 20 |CESS -DN|ETGROUP |
|00004000| 74 72 79 2e 63 20 5c 0a | 58 09 68 6f 73 74 73 5f |try.c \.|X.hosts_|
|00004010| 63 74 6c 2e 63 20 68 6f | 73 74 73 5f 61 63 63 65 |ctl.c ho|sts_acce|
|00004020| 73 73 2e 63 20 68 6f 73 | 74 73 5f 69 6e 66 6f 2e |ss.c hos|ts_info.|
|00004030| 63 20 70 65 72 63 65 6e | 74 5f 78 2e 63 0a 58 0a |c percen|t_x.c.X.|
|00004040| 58 23 20 43 6f 6d 70 69 | 6c 61 74 69 6f 6e 20 64 |X# Compi|lation d|
|00004050| 65 70 65 6e 64 65 6e 63 | 69 65 73 2e 0a 58 0a 58 |ependenc|ies..X.X|
|00004060| 63 6c 65 61 6e 5f 65 78 | 69 74 2e 6f 3a 20 6c 6f |clean_ex|it.o: lo|
|00004070| 67 5f 74 63 70 2e 68 20 | 4d 61 6b 65 66 69 6c 65 |g_tcp.h |Makefile|
|00004080| 0a 58 66 69 78 5f 6f 70 | 74 69 6f 6e 73 2e 6f 3a |.Xfix_op|tions.o:|
|00004090| 20 6c 6f 67 5f 74 63 70 | 2e 68 20 4d 61 6b 65 66 | log_tcp|.h Makef|
|000040a0| 69 6c 65 0a 58 66 72 6f | 6d 68 6f 73 74 2e 6f 3a |ile.Xfro|mhost.o:|
|000040b0| 20 6c 6f 67 5f 74 63 70 | 2e 68 20 4d 61 6b 65 66 | log_tcp|.h Makef|
|000040c0| 69 6c 65 0a 58 68 6f 73 | 74 73 5f 61 63 63 65 73 |ile.Xhos|ts_acces|
|000040d0| 73 2e 6f 3a 20 6c 6f 67 | 5f 74 63 70 2e 68 20 4d |s.o: log|_tcp.h M|
|000040e0| 61 6b 65 66 69 6c 65 0a | 58 68 6f 73 74 73 5f 63 |akefile.|Xhosts_c|
|000040f0| 74 6c 2e 6f 3a 20 6c 6f | 67 5f 74 63 70 2e 68 20 |tl.o: lo|g_tcp.h |
|00004100| 4d 61 6b 65 66 69 6c 65 | 0a 58 68 6f 73 74 73 5f |Makefile|.Xhosts_|
|00004110| 69 6e 66 6f 2e 6f 3a 20 | 6c 6f 67 5f 74 63 70 2e |info.o: |log_tcp.|
|00004120| 68 20 4d 61 6b 65 66 69 | 6c 65 0a 58 6d 69 73 63 |h Makefi|le.Xmisc|
|00004130| 64 2e 6f 3a 20 70 61 74 | 63 68 6c 65 76 65 6c 2e |d.o: pat|chlevel.|
|00004140| 68 20 6c 6f 67 5f 74 63 | 70 2e 68 20 4d 61 6b 65 |h log_tc|p.h Make|
|00004150| 66 69 6c 65 0a 58 6f 70 | 74 69 6f 6e 73 2e 6f 3a |file.Xop|tions.o:|
|00004160| 20 6c 6f 67 5f 74 63 70 | 2e 68 20 4d 61 6b 65 66 | log_tcp|.h Makef|
|00004170| 69 6c 65 0a 58 70 65 72 | 63 65 6e 74 5f 78 2e 6f |ile.Xper|cent_x.o|
|00004180| 3a 20 6c 6f 67 5f 74 63 | 70 2e 68 20 4d 61 6b 65 |: log_tc|p.h Make|
|00004190| 66 69 6c 65 0a 58 72 65 | 66 75 73 65 2e 6f 3a 20 |file.Xre|fuse.o: |
|000041a0| 6c 6f 67 5f 74 63 70 2e | 68 20 4d 61 6b 65 66 69 |log_tcp.|h Makefi|
|000041b0| 6c 65 0a 58 72 66 63 39 | 33 31 2e 6f 3a 20 6c 6f |le.Xrfc9|31.o: lo|
|000041c0| 67 5f 74 63 70 2e 68 20 | 4d 61 6b 65 66 69 6c 65 |g_tcp.h |Makefile|
|000041d0| 0a 58 73 68 65 6c 6c 5f | 63 6d 64 2e 6f 3a 20 6c |.Xshell_|cmd.o: l|
|000041e0| 6f 67 5f 74 63 70 2e 68 | 20 4d 61 6b 65 66 69 6c |og_tcp.h| Makefil|
|000041f0| 65 0a 58 74 63 70 64 2e | 6f 3a 20 70 61 74 63 68 |e.Xtcpd.|o: patch|
|00004200| 6c 65 76 65 6c 2e 68 20 | 6c 6f 67 5f 74 63 70 2e |level.h |log_tcp.|
|00004210| 68 20 4d 61 6b 65 66 69 | 6c 65 0a 58 74 72 79 2e |h Makefi|le.Xtry.|
|00004220| 6f 3a 20 6c 6f 67 5f 74 | 63 70 2e 68 20 4d 61 6b |o: log_t|cp.h Mak|
|00004230| 65 66 69 6c 65 0a 45 4e | 44 5f 4f 46 5f 4d 61 6b |efile.EN|D_OF_Mak|
|00004240| 65 66 69 6c 65 2e 64 69 | 73 74 0a 69 66 20 74 65 |efile.di|st.if te|
|00004250| 73 74 20 31 35 32 39 38 | 20 2d 6e 65 20 60 77 63 |st 15298| -ne `wc|
|00004260| 20 2d 63 20 3c 4d 61 6b | 65 66 69 6c 65 2e 64 69 | -c <Mak|efile.di|
|00004270| 73 74 60 3b 20 74 68 65 | 6e 0a 20 20 20 20 65 63 |st`; the|n. ec|
|00004280| 68 6f 20 73 68 61 72 3a | 20 5c 22 4d 61 6b 65 66 |ho shar:| \"Makef|
|00004290| 69 6c 65 2e 64 69 73 74 | 5c 22 20 75 6e 70 61 63 |ile.dist|\" unpac|
|000042a0| 6b 65 64 20 77 69 74 68 | 20 77 72 6f 6e 67 20 73 |ked with| wrong s|
|000042b0| 69 7a 65 21 0a 66 69 0a | 23 20 65 6e 64 20 6f 66 |ize!.fi.|# end of|
|000042c0| 20 6f 76 65 72 77 72 69 | 74 69 6e 67 20 63 68 65 | overwri|ting che|
|000042d0| 63 6b 0a 66 69 0a 69 66 | 20 74 65 73 74 20 2d 66 |ck.fi.if| test -f|
|000042e0| 20 68 6f 73 74 73 5f 61 | 63 63 65 73 73 2e 63 20 | hosts_a|ccess.c |
|000042f0| 2d 61 20 22 24 7b 31 7d | 22 20 21 3d 20 22 2d 63 |-a "${1}|" != "-c|
|00004300| 22 20 3b 20 74 68 65 6e | 20 0a 20 20 65 63 68 6f |" ; then| . echo|
|00004310| 20 73 68 61 72 3a 20 57 | 69 6c 6c 20 6e 6f 74 20 | shar: W|ill not |
|00004320| 6f 76 65 72 2d 77 72 69 | 74 65 20 65 78 69 73 74 |over-wri|te exist|
|00004330| 69 6e 67 20 66 69 6c 65 | 20 5c 22 68 6f 73 74 73 |ing file| \"hosts|
|00004340| 5f 61 63 63 65 73 73 2e | 63 5c 22 0a 65 6c 73 65 |_access.|c\".else|
|00004350| 0a 65 63 68 6f 20 73 68 | 61 72 3a 20 45 78 74 72 |.echo sh|ar: Extr|
|00004360| 61 63 74 69 6e 67 20 5c | 22 68 6f 73 74 73 5f 61 |acting \|"hosts_a|
|00004370| 63 63 65 73 73 2e 63 5c | 22 20 5c 28 31 31 31 37 |ccess.c\|" \(1117|
|00004380| 33 20 63 68 61 72 61 63 | 74 65 72 73 5c 29 0a 73 |3 charac|ters\).s|
|00004390| 65 64 20 22 73 2f 5e 58 | 2f 2f 22 20 3e 68 6f 73 |ed "s/^X|//" >hos|
|000043a0| 74 73 5f 61 63 63 65 73 | 73 2e 63 20 3c 3c 27 45 |ts_acces|s.c <<'E|
|000043b0| 4e 44 5f 4f 46 5f 68 6f | 73 74 73 5f 61 63 63 65 |ND_OF_ho|sts_acce|
|000043c0| 73 73 2e 63 27 0a 58 20 | 2f 2a 0a 58 20 20 2a 20 |ss.c'.X |/*.X * |
|000043d0| 54 68 69 73 20 6d 6f 64 | 75 6c 65 20 69 6d 70 6c |This mod|ule impl|
|000043e0| 65 6d 65 6e 74 73 20 61 | 20 73 69 6d 70 6c 65 20 |ements a| simple |
|000043f0| 61 63 63 65 73 73 20 63 | 6f 6e 74 72 6f 6c 20 6c |access c|ontrol l|
|00004400| 61 6e 67 75 61 67 65 20 | 74 68 61 74 20 69 73 20 |anguage |that is |
|00004410| 62 61 73 65 64 20 6f 6e | 0a 58 20 20 2a 20 68 6f |based on|.X * ho|
|00004420| 73 74 20 28 6f 72 20 64 | 6f 6d 61 69 6e 29 20 6e |st (or d|omain) n|
|00004430| 61 6d 65 73 2c 20 6e 65 | 74 67 72 6f 75 70 2c 20 |ames, ne|tgroup, |
|00004440| 69 6e 74 65 72 6e 65 74 | 20 61 64 64 72 65 73 73 |internet| address|
|00004450| 65 73 20 28 6f 72 20 6e | 65 74 77 6f 72 6b 20 6e |es (or n|etwork n|
|00004460| 75 6d 62 65 72 73 29 0a | 58 20 20 2a 20 61 6e 64 |umbers).|X * and|
|00004470| 20 64 61 65 6d 6f 6e 20 | 70 72 6f 63 65 73 73 20 | daemon |process |
|00004480| 6e 61 6d 65 73 2e 20 57 | 68 65 6e 20 61 20 6d 61 |names. W|hen a ma|
|00004490| 74 63 68 20 69 73 20 66 | 6f 75 6e 64 20 61 6e 20 |tch is f|ound an |
|000044a0| 6f 70 74 69 6f 6e 61 6c | 20 73 68 65 6c 6c 20 63 |optional| shell c|
|000044b0| 6f 6d 6d 61 6e 64 0a 58 | 20 20 2a 20 69 73 20 65 |ommand.X| * is e|
|000044c0| 78 65 63 75 74 65 64 20 | 61 6e 64 20 74 68 65 20 |xecuted |and the |
|000044d0| 73 65 61 72 63 68 20 69 | 73 20 74 65 72 6d 69 6e |search i|s termin|
|000044e0| 61 74 65 64 2e 0a 58 20 | 20 2a 20 0a 58 20 20 2a |ated..X | * .X *|
|000044f0| 20 44 69 61 67 6e 6f 73 | 74 69 63 73 20 61 72 65 | Diagnos|tics are|
|00004500| 20 72 65 70 6f 72 74 65 | 64 20 74 68 72 6f 75 67 | reporte|d throug|
|00004510| 68 20 73 79 73 6c 6f 67 | 28 33 29 2e 0a 58 20 20 |h syslog|(3)..X |
|00004520| 2a 20 0a 58 20 20 2a 20 | 43 6f 6d 70 69 6c 65 20 |* .X * |Compile |
|00004530| 77 69 74 68 20 2d 44 4e | 45 54 47 52 4f 55 50 20 |with -DN|ETGROUP |
|00004540| 69 66 20 79 6f 75 72 20 | 6c 69 62 72 61 72 79 20 |if your |library |
|00004550| 70 72 6f 76 69 64 65 73 | 20 73 75 70 70 6f 72 74 |provides| support|
|00004560| 20 66 6f 72 20 6e 65 74 | 67 72 6f 75 70 73 2e 0a | for net|groups..|
|00004570| 58 20 20 2a 20 0a 58 20 | 20 2a 20 43 6f 6d 70 69 |X * .X | * Compi|
|00004580| 6c 65 20 77 69 74 68 20 | 2d 44 55 53 45 52 5f 41 |le with |-DUSER_A|
|00004590| 54 5f 48 4f 53 54 20 66 | 6f 72 20 72 75 6c 65 2d |T_HOST f|or rule-|
|000045a0| 64 72 69 76 65 6e 20 75 | 73 65 72 6e 61 6d 65 20 |driven u|sername |
|000045b0| 6c 6f 6f 6b 75 70 73 2e | 0a 58 20 20 2a 20 0a 58 |lookups.|.X * .X|
|000045c0| 20 20 2a 20 41 75 74 68 | 6f 72 3a 20 57 69 65 74 | * Auth|or: Wiet|
|000045d0| 73 65 20 56 65 6e 65 6d | 61 2c 20 45 69 6e 64 68 |se Venem|a, Eindh|
|000045e0| 6f 76 65 6e 20 55 6e 69 | 76 65 72 73 69 74 79 20 |oven Uni|versity |
|000045f0| 6f 66 20 54 65 63 68 6e | 6f 6c 6f 67 79 2c 20 54 |of Techn|ology, T|
|00004600| 68 65 20 4e 65 74 68 65 | 72 6c 61 6e 64 73 2e 0a |he Nethe|rlands..|
|00004610| 58 20 20 2a 2f 0a 58 0a | 58 23 69 66 6e 64 65 66 |X */.X.|X#ifndef|
|00004620| 20 6c 69 6e 74 0a 58 73 | 74 61 74 69 63 20 63 68 | lint.Xs|tatic ch|
|00004630| 61 72 20 73 63 63 73 69 | 64 5b 5d 20 3d 20 22 40 |ar sccsi|d[] = "@|
|00004640| 28 23 29 20 68 6f 73 74 | 73 5f 61 63 63 65 73 73 |(#) host|s_access|
|00004650| 2e 63 20 31 2e 31 30 20 | 39 33 2f 30 33 2f 30 37 |.c 1.10 |93/03/07|
|00004660| 20 32 32 3a 34 37 3a 33 | 36 22 3b 0a 58 23 65 6e | 22:47:3|6";.X#en|
|00004670| 64 69 66 0a 58 0a 58 20 | 2f 2a 20 53 79 73 74 65 |dif.X.X |/* Syste|
|00004680| 6d 20 6c 69 62 72 61 72 | 69 65 73 2e 20 2a 2f 0a |m librar|ies. */.|
|00004690| 58 0a 58 23 69 6e 63 6c | 75 64 65 20 3c 73 79 73 |X.X#incl|ude <sys|
|000046a0| 2f 74 79 70 65 73 2e 68 | 3e 0a 58 23 69 6e 63 6c |/types.h|>.X#incl|
|000046b0| 75 64 65 20 3c 73 79 73 | 2f 70 61 72 61 6d 2e 68 |ude <sys|/param.h|
|000046c0| 3e 0a 58 23 69 6e 63 6c | 75 64 65 20 3c 6e 65 74 |>.X#incl|ude <net|
|000046d0| 69 6e 65 74 2f 69 6e 2e | 68 3e 0a 58 23 69 6e 63 |inet/in.|h>.X#inc|
|000046e0| 6c 75 64 65 20 3c 61 72 | 70 61 2f 69 6e 65 74 2e |lude <ar|pa/inet.|
|000046f0| 68 3e 0a 58 23 69 6e 63 | 6c 75 64 65 20 3c 73 74 |h>.X#inc|lude <st|
|00004700| 64 69 6f 2e 68 3e 0a 58 | 23 69 6e 63 6c 75 64 65 |dio.h>.X|#include|
|00004710| 20 3c 73 79 73 6c 6f 67 | 2e 68 3e 0a 58 23 69 6e | <syslog|.h>.X#in|
|00004720| 63 6c 75 64 65 20 3c 63 | 74 79 70 65 2e 68 3e 0a |clude <c|type.h>.|
|00004730| 58 23 69 6e 63 6c 75 64 | 65 20 3c 65 72 72 6e 6f |X#includ|e <errno|
|00004740| 2e 68 3e 0a 58 0a 58 65 | 78 74 65 72 6e 20 63 68 |.h>.X.Xe|xtern ch|
|00004750| 61 72 20 2a 66 67 65 74 | 73 28 29 3b 0a 58 65 78 |ar *fget|s();.Xex|
|00004760| 74 65 72 6e 20 63 68 61 | 72 20 2a 73 74 72 63 68 |tern cha|r *strch|
|00004770| 72 28 29 3b 0a 58 65 78 | 74 65 72 6e 20 63 68 61 |r();.Xex|tern cha|
|00004780| 72 20 2a 73 74 72 74 6f | 6b 28 29 3b 0a 58 0a 58 |r *strto|k();.X.X|
|00004790| 23 69 66 6e 64 65 66 09 | 49 4e 41 44 44 52 5f 4e |#ifndef.|INADDR_N|
|000047a0| 4f 4e 45 0a 58 23 64 65 | 66 69 6e 65 09 49 4e 41 |ONE.X#de|fine.INA|
|000047b0| 44 44 52 5f 4e 4f 4e 45 | 09 28 2d 31 29 09 09 2f |DDR_NONE|.(-1)../|
|000047c0| 2a 20 58 58 58 20 73 68 | 6f 75 6c 64 20 62 65 20 |* XXX sh|ould be |
|000047d0| 30 78 66 66 66 66 66 66 | 66 66 20 2a 2f 0a 58 23 |0xffffff|ff */.X#|
|000047e0| 65 6e 64 69 66 0a 58 0a | 58 2f 2a 20 4c 6f 63 61 |endif.X.|X/* Loca|
|000047f0| 6c 20 73 74 75 66 66 2e | 20 2a 2f 0a 58 0a 58 23 |l stuff.| */.X.X#|
|00004800| 69 6e 63 6c 75 64 65 20 | 22 6c 6f 67 5f 74 63 70 |include |"log_tcp|
|00004810| 2e 68 22 0a 58 0a 58 23 | 69 66 64 65 66 20 49 4e |.h".X.X#|ifdef IN|
|00004820| 45 54 5f 41 44 44 52 5f | 42 55 47 0a 58 23 69 6e |ET_ADDR_|BUG.X#in|
|00004830| 63 6c 75 64 65 20 22 69 | 6e 65 74 5f 61 64 64 72 |clude "i|net_addr|
|00004840| 5f 66 69 78 22 0a 58 23 | 65 6e 64 69 66 0a 58 0a |_fix".X#|endif.X.|
|00004850| 58 2f 2a 20 44 65 6c 69 | 6d 69 74 65 72 73 20 66 |X/* Deli|miters f|
|00004860| 6f 72 20 6c 69 73 74 73 | 20 6f 66 20 64 61 65 6d |or lists| of daem|
|00004870| 6f 6e 73 20 6f 72 20 63 | 6c 69 65 6e 74 73 2e 20 |ons or c|lients. |
|00004880| 2a 2f 0a 58 0a 58 73 74 | 61 74 69 63 20 63 68 61 |*/.X.Xst|atic cha|
|00004890| 72 20 73 65 70 5b 5d 20 | 3d 20 22 2c 20 5c 74 22 |r sep[] |= ", \t"|
|000048a0| 3b 0a 58 0a 58 2f 2a 20 | 43 6f 6e 73 74 61 6e 74 |;.X.X/* |Constant|
|000048b0| 73 20 74 6f 20 62 65 20 | 75 73 65 64 20 69 6e 20 |s to be |used in |
|000048c0| 61 73 73 69 67 6e 6d 65 | 6e 74 73 20 6f 6e 6c 79 |assignme|nts only|
|000048d0| 2c 20 6e 6f 74 20 69 6e | 20 63 6f 6d 70 61 72 69 |, not in| compari|
|000048e0| 73 6f 6e 73 2e 2e 2e 20 | 2a 2f 0a 58 0a 58 23 64 |sons... |*/.X.X#d|
|000048f0| 65 66 69 6e 65 09 59 45 | 53 09 09 31 0a 58 23 64 |efine.YE|S..1.X#d|
|00004900| 65 66 69 6e 65 09 4e 4f | 09 09 30 0a 58 23 64 65 |efine.NO|..0.X#de|
|00004910| 66 69 6e 65 09 46 41 49 | 4c 09 09 28 2d 31 29 0a |fine.FAI|L..(-1).|
|00004920| 58 0a 58 2f 2a 20 46 6f | 72 77 61 72 64 20 64 65 |X.X/* Fo|rward de|
|00004930| 63 6c 61 72 61 74 69 6f | 6e 73 2e 20 2a 2f 0a 58 |claratio|ns. */.X|
|00004940| 0a 58 73 74 61 74 69 63 | 20 69 6e 74 20 74 61 62 |.Xstatic| int tab|
|00004950| 6c 65 5f 6d 61 74 63 68 | 28 29 3b 0a 58 73 74 61 |le_match|();.Xsta|
|00004960| 74 69 63 20 69 6e 74 20 | 6c 69 73 74 5f 6d 61 74 |tic int |list_mat|
|00004970| 63 68 28 29 3b 0a 58 73 | 74 61 74 69 63 20 69 6e |ch();.Xs|tatic in|
|00004980| 74 20 63 6c 69 65 6e 74 | 5f 6d 61 74 63 68 28 29 |t client|_match()|
|00004990| 3b 0a 58 73 74 61 74 69 | 63 20 69 6e 74 20 73 74 |;.Xstati|c int st|
|000049a0| 72 69 6e 67 5f 6d 61 74 | 63 68 28 29 3b 0a 58 73 |ring_mat|ch();.Xs|
|000049b0| 74 61 74 69 63 20 69 6e | 74 20 6d 61 73 6b 65 64 |tatic in|t masked|
|000049c0| 5f 6d 61 74 63 68 28 29 | 3b 0a 58 73 74 61 74 69 |_match()|;.Xstati|
|000049d0| 63 20 63 68 61 72 20 2a | 78 67 65 74 73 28 29 3b |c char *|xgets();|
|000049e0| 0a 58 0a 58 2f 2a 20 54 | 68 65 20 75 73 65 72 40 |.X.X/* T|he user@|
|000049f0| 68 6f 73 74 20 61 63 63 | 65 73 73 20 63 6f 6e 74 |host acc|ess cont|
|00004a00| 72 6f 6c 2e 20 54 72 69 | 76 69 61 6c 20 74 6f 20 |rol. Tri|vial to |
|00004a10| 61 64 64 20 62 75 74 20 | 63 6f 6d 70 6c 69 63 61 |add but |complica|
|00004a20| 74 65 73 20 75 73 65 2e | 20 2a 2f 0a 58 0a 58 23 |tes use.| */.X.X#|
|00004a30| 69 66 64 65 66 20 55 53 | 45 52 5f 41 54 5f 48 4f |ifdef US|ER_AT_HO|
|00004a40| 53 54 0a 58 73 74 61 74 | 69 63 20 69 6e 74 20 75 |ST.Xstat|ic int u|
|00004a50| 73 65 72 68 6f 73 74 5f | 6d 61 74 63 68 28 29 3b |serhost_|match();|
|00004a60| 0a 58 23 64 65 66 69 6e | 65 20 43 4c 49 45 4e 54 |.X#defin|e CLIENT|
|00004a70| 5f 4d 41 54 43 48 20 75 | 73 65 72 68 6f 73 74 5f |_MATCH u|serhost_|
|00004a80| 6d 61 74 63 68 0a 58 23 | 65 6c 73 65 0a 58 23 64 |match.X#|else.X#d|
|00004a90| 65 66 69 6e 65 20 43 4c | 49 45 4e 54 5f 4d 41 54 |efine CL|IENT_MAT|
|00004aa0| 43 48 20 63 6c 69 65 6e | 74 5f 6d 61 74 63 68 0a |CH clien|t_match.|
|00004ab0| 58 23 65 6e 64 69 66 0a | 58 0a 58 2f 2a 20 53 69 |X#endif.|X.X/* Si|
|00004ac0| 7a 65 20 6f 66 20 6c 6f | 67 69 63 61 6c 20 6c 69 |ze of lo|gical li|
|00004ad0| 6e 65 20 62 75 66 66 65 | 72 2e 20 2a 2f 0a 58 0a |ne buffe|r. */.X.|
|00004ae0| 58 23 64 65 66 69 6e 65 | 09 42 55 46 4c 45 4e 20 |X#define|.BUFLEN |
|00004af0| 32 30 34 38 0a 58 0a 58 | 2f 2a 20 68 6f 73 74 73 |2048.X.X|/* hosts|
|00004b00| 5f 61 63 63 65 73 73 20 | 2d 20 68 6f 73 74 20 61 |_access |- host a|
|00004b10| 63 63 65 73 73 20 63 6f | 6e 74 72 6f 6c 20 66 61 |ccess co|ntrol fa|
|00004b20| 63 69 6c 69 74 79 20 2a | 2f 0a 58 0a 58 69 6e 74 |cility *|/.X.Xint|
|00004b30| 20 20 20 20 20 68 6f 73 | 74 73 5f 61 63 63 65 73 | hos|ts_acces|
|00004b40| 73 28 64 61 65 6d 6f 6e | 2c 20 63 6c 69 65 6e 74 |s(daemon|, client|
|00004b50| 29 0a 58 63 68 61 72 20 | 20 20 2a 64 61 65 6d 6f |).Xchar | *daemo|
|00004b60| 6e 3b 0a 58 73 74 72 75 | 63 74 20 66 72 6f 6d 5f |n;.Xstru|ct from_|
|00004b70| 68 6f 73 74 20 2a 63 6c | 69 65 6e 74 3b 09 09 2f |host *cl|ient;../|
|00004b80| 2a 20 68 6f 73 74 20 6f | 72 20 75 73 65 72 20 6e |* host o|r user n|
|00004b90| 61 6d 65 20 6d 61 79 20 | 62 65 20 65 6d 70 74 79 |ame may |be empty|
|00004ba0| 20 2a 2f 0a 58 7b 0a 58 | 0a 58 20 20 20 20 2f 2a | */.X{.X|.X /*|
|00004bb0| 0a 58 20 20 20 20 20 2a | 20 49 66 20 74 68 65 20 |.X *| If the |
|00004bc0| 28 64 61 65 6d 6f 6e 2c | 20 63 6c 69 65 6e 74 29 |(daemon,| client)|
|00004bd0| 20 70 61 69 72 20 69 73 | 20 6d 61 74 63 68 65 64 | pair is| matched|
|00004be0| 20 62 79 20 61 6e 20 65 | 6e 74 72 79 20 69 6e 20 | by an e|ntry in |
|00004bf0| 74 68 65 20 66 69 6c 65 | 0a 58 20 20 20 20 20 2a |the file|.X *|
|00004c00| 20 2f 65 74 63 2f 68 6f | 73 74 73 2e 61 6c 6c 6f | /etc/ho|sts.allo|
|00004c10| 77 2c 20 61 63 63 65 73 | 73 20 69 73 20 67 72 61 |w, acces|s is gra|
|00004c20| 6e 74 65 64 2e 20 4f 74 | 68 65 72 77 69 73 65 2c |nted. Ot|herwise,|
|00004c30| 20 69 66 20 74 68 65 20 | 28 64 61 65 6d 6f 6e 2c | if the |(daemon,|
|00004c40| 0a 58 20 20 20 20 20 2a | 20 63 6c 69 65 6e 74 29 |.X *| client)|
|00004c50| 20 70 61 69 72 20 69 73 | 20 6d 61 74 63 68 65 64 | pair is| matched|
|00004c60| 20 62 79 20 61 6e 20 65 | 6e 74 72 79 20 69 6e 20 | by an e|ntry in |
|00004c70| 74 68 65 20 66 69 6c 65 | 20 2f 65 74 63 2f 68 6f |the file| /etc/ho|
|00004c80| 73 74 73 2e 64 65 6e 79 | 2c 0a 58 20 20 20 20 20 |sts.deny|,.X |
|00004c90| 2a 20 61 63 63 65 73 73 | 20 69 73 20 64 65 6e 69 |* access| is deni|
|00004ca0| 65 64 2e 20 4f 74 68 65 | 72 77 69 73 65 2c 20 61 |ed. Othe|rwise, a|
|00004cb0| 63 63 65 73 73 20 69 73 | 20 67 72 61 6e 74 65 64 |ccess is| granted|
|00004cc0| 2e 20 41 20 6e 6f 6e 2d | 65 78 69 73 74 65 6e 74 |. A non-|existent|
|00004cd0| 0a 58 20 20 20 20 20 2a | 20 61 63 63 65 73 73 2d |.X *| access-|
|00004ce0| 63 6f 6e 74 72 6f 6c 20 | 66 69 6c 65 20 69 73 20 |control |file is |
|00004cf0| 74 72 65 61 74 65 64 20 | 61 73 20 61 6e 20 65 6d |treated |as an em|
|00004d00| 70 74 79 20 66 69 6c 65 | 2e 0a 58 20 20 20 20 20 |pty file|..X |
|00004d10| 2a 2f 0a 58 0a 58 20 20 | 20 20 69 66 20 28 74 61 |*/.X.X | if (ta|
|00004d20| 62 6c 65 5f 6d 61 74 63 | 68 28 48 4f 53 54 53 5f |ble_matc|h(HOSTS_|
|00004d30| 41 4c 4c 4f 57 2c 20 64 | 61 65 6d 6f 6e 2c 20 63 |ALLOW, d|aemon, c|
|00004d40| 6c 69 65 6e 74 29 29 0a | 58 09 72 65 74 75 72 6e |lient)).|X.return|
|00004d50| 20 28 59 45 53 29 3b 0a | 58 20 20 20 20 69 66 20 | (YES);.|X if |
|00004d60| 28 74 61 62 6c 65 5f 6d | 61 74 63 68 28 48 4f 53 |(table_m|atch(HOS|
|00004d70| 54 53 5f 44 45 4e 59 2c | 20 64 61 65 6d 6f 6e 2c |TS_DENY,| daemon,|
|00004d80| 20 63 6c 69 65 6e 74 29 | 29 0a 58 09 72 65 74 75 | client)|).X.retu|
|00004d90| 72 6e 20 28 4e 4f 29 3b | 0a 58 20 20 20 20 72 65 |rn (NO);|.X re|
|00004da0| 74 75 72 6e 20 28 59 45 | 53 29 3b 0a 58 7d 0a 58 |turn (YE|S);.X}.X|
|00004db0| 0a 58 2f 2a 20 74 61 62 | 6c 65 5f 6d 61 74 63 68 |.X/* tab|le_match|
|00004dc0| 20 2d 20 6d 61 74 63 68 | 20 74 61 62 6c 65 20 65 | - match| table e|
|00004dd0| 6e 74 72 69 65 73 20 77 | 69 74 68 20 28 64 61 65 |ntries w|ith (dae|
|00004de0| 6d 6f 6e 2c 20 63 6c 69 | 65 6e 74 29 20 70 61 69 |mon, cli|ent) pai|
|00004df0| 72 20 2a 2f 0a 58 0a 58 | 73 74 61 74 69 63 20 69 |r */.X.X|static i|
|00004e00| 6e 74 20 74 61 62 6c 65 | 5f 6d 61 74 63 68 28 74 |nt table|_match(t|
|00004e10| 61 62 6c 65 2c 20 64 61 | 65 6d 6f 6e 2c 20 63 6c |able, da|emon, cl|
|00004e20| 69 65 6e 74 29 0a 58 63 | 68 61 72 20 20 20 2a 74 |ient).Xc|har *t|
|00004e30| 61 62 6c 65 3b 0a 58 63 | 68 61 72 20 20 20 2a 64 |able;.Xc|har *d|
|00004e40| 61 65 6d 6f 6e 3b 0a 58 | 73 74 72 75 63 74 20 66 |aemon;.X|struct f|
|00004e50| 72 6f 6d 5f 68 6f 73 74 | 20 2a 63 6c 69 65 6e 74 |rom_host| *client|
|00004e60| 3b 09 09 2f 2a 20 68 6f | 73 74 20 6f 72 20 75 73 |;../* ho|st or us|
|00004e70| 65 72 20 6e 61 6d 65 20 | 6d 61 79 20 62 65 20 65 |er name |may be e|
|00004e80| 6d 70 74 79 20 2a 2f 0a | 58 7b 0a 58 20 20 20 20 |mpty */.|X{.X |
|00004e90| 46 49 4c 45 20 20 20 2a | 66 70 3b 0a 58 20 20 20 |FILE *|fp;.X |
|00004ea0| 20 63 68 61 72 20 20 20 | 20 73 76 5f 6c 69 73 74 | char | sv_list|
|00004eb0| 5b 42 55 46 4c 45 4e 5d | 3b 09 09 2f 2a 20 62 65 |[BUFLEN]|;../* be|
|00004ec0| 63 6f 6d 65 73 20 6c 69 | 73 74 20 6f 66 20 64 61 |comes li|st of da|
|00004ed0| 65 6d 6f 6e 73 20 2a 2f | 0a 58 20 20 20 20 63 68 |emons */|.X ch|
|00004ee0| 61 72 20 20 20 2a 63 6c | 5f 6c 69 73 74 3b 09 09 |ar *cl|_list;..|
|00004ef0| 09 2f 2a 20 62 65 63 6f | 6d 65 73 20 6c 69 73 74 |./* beco|mes list|
|00004f00| 20 6f 66 20 63 6c 69 65 | 6e 74 73 20 2a 2f 0a 58 | of clie|nts */.X|
|00004f10| 20 20 20 20 63 68 61 72 | 20 20 20 2a 73 68 5f 63 | char| *sh_c|
|00004f20| 6d 64 3b 09 09 09 2f 2a | 20 62 65 63 6f 6d 65 73 |md;.../*| becomes|
|00004f30| 20 6f 70 74 69 6f 6e 61 | 6c 20 73 68 65 6c 6c 20 | optiona|l shell |
|00004f40| 63 6f 6d 6d 61 6e 64 20 | 2a 2f 0a 58 20 20 20 20 |command |*/.X |
|00004f50| 69 6e 74 20 20 20 20 20 | 6d 61 74 63 68 3b 0a 58 |int |match;.X|
|00004f60| 20 20 20 20 69 6e 74 20 | 20 20 20 20 65 6e 64 3b | int | end;|
|00004f70| 0a 58 0a 58 20 20 20 20 | 2f 2a 20 54 68 65 20 66 |.X.X |/* The f|
|00004f80| 6f 6c 6c 6f 77 69 6e 67 | 20 76 61 72 69 61 62 6c |ollowing| variabl|
|00004f90| 65 73 20 73 68 6f 75 6c | 64 20 61 6c 77 61 79 73 |es shoul|d always|
|00004fa0| 20 62 65 20 74 65 73 74 | 65 64 20 74 6f 67 65 74 | be test|ed toget|
|00004fb0| 68 65 72 2e 20 2a 2f 0a | 58 0a 58 20 20 20 20 69 |her. */.|X.X i|
|00004fc0| 6e 74 20 20 20 20 20 73 | 76 5f 6d 61 74 63 68 20 |nt s|v_match |
|00004fd0| 3d 20 4e 4f 3b 09 09 2f | 2a 20 64 61 65 6d 6f 6e |= NO;../|* daemon|
|00004fe0| 20 6d 61 74 63 68 65 64 | 20 2a 2f 0a 58 20 20 20 | matched| */.X |
|00004ff0| 20 69 6e 74 20 20 20 20 | 20 63 6c 5f 6d 61 74 63 | int | cl_matc|
|00005000| 68 20 3d 20 4e 4f 3b 09 | 09 2f 2a 20 63 6c 69 65 |h = NO;.|./* clie|
|00005010| 6e 74 20 6d 61 74 63 65 | 64 20 2a 2f 0a 58 0a 58 |nt matce|d */.X.X|
|00005020| 20 20 20 20 2f 2a 0a 58 | 20 20 20 20 20 2a 20 50 | /*.X| * P|
|00005030| 72 6f 63 65 73 73 20 74 | 68 65 20 74 61 62 6c 65 |rocess t|he table|
|00005040| 20 6f 6e 65 20 6c 6f 67 | 69 63 61 6c 20 6c 69 6e | one log|ical lin|
|00005050| 65 20 61 74 20 61 20 74 | 69 6d 65 2e 20 4c 69 6e |e at a t|ime. Lin|
|00005060| 65 73 20 74 68 61 74 20 | 62 65 67 69 6e 20 77 69 |es that |begin wi|
|00005070| 74 68 20 61 0a 58 20 20 | 20 20 20 2a 20 27 23 27 |th a.X | * '#'|
|00005080| 20 63 68 61 72 61 63 74 | 65 72 20 61 72 65 20 69 | charact|er are i|
|00005090| 67 6e 6f 72 65 64 2e 20 | 4e 6f 6e 2d 63 6f 6d 6d |gnored. |Non-comm|
|000050a0| 65 6e 74 20 6c 69 6e 65 | 73 20 61 72 65 20 62 72 |ent line|s are br|
|000050b0| 6f 6b 65 6e 20 61 74 20 | 74 68 65 20 27 3a 27 0a |oken at |the ':'.|
|000050c0| 58 20 20 20 20 20 2a 20 | 63 68 61 72 61 63 74 65 |X * |characte|
|000050d0| 72 20 28 77 65 20 63 6f | 6d 70 6c 61 69 6e 20 69 |r (we co|mplain i|
|000050e0| 66 20 74 68 65 72 65 20 | 69 73 20 6e 6f 6e 65 29 |f there |is none)|
|000050f0| 2e 20 54 68 65 20 66 69 | 72 73 74 20 66 69 65 6c |. The fi|rst fiel|
|00005100| 64 20 69 73 20 6d 61 74 | 63 68 65 64 0a 58 20 20 |d is mat|ched.X |
|00005110| 20 20 20 2a 20 61 67 61 | 69 6e 73 74 20 74 68 65 | * aga|inst the|
|00005120| 20 64 61 65 6d 6f 6e 20 | 70 72 6f 63 65 73 73 20 | daemon |process |
|00005130| 6e 61 6d 65 20 28 61 72 | 67 76 5b 30 5d 29 2c 20 |name (ar|gv[0]), |
|00005140| 74 68 65 20 73 65 63 6f | 6e 64 20 66 69 65 6c 64 |the seco|nd field|
|00005150| 20 61 67 61 69 6e 73 74 | 0a 58 20 20 20 20 20 2a | against|.X *|
|00005160| 20 74 68 65 20 68 6f 73 | 74 20 6e 61 6d 65 20 6f | the hos|t name o|
|00005170| 72 20 61 64 64 72 65 73 | 73 2e 20 41 20 6e 6f 6e |r addres|s. A non|
|00005180| 2d 65 78 69 73 74 69 6e | 67 20 74 61 62 6c 65 20 |-existin|g table |
|00005190| 69 73 20 74 72 65 61 74 | 65 64 20 61 73 20 69 66 |is treat|ed as if|
|000051a0| 20 69 74 0a 58 20 20 20 | 20 20 2a 20 77 65 72 65 | it.X | * were|
|000051b0| 20 61 6e 20 65 6d 70 74 | 79 20 74 61 62 6c 65 2e | an empt|y table.|
|000051c0| 20 54 68 65 20 73 65 61 | 72 63 68 20 74 65 72 6d | The sea|rch term|
|000051d0| 69 6e 61 74 65 73 20 61 | 74 20 74 68 65 20 66 69 |inates a|t the fi|
|000051e0| 72 73 74 20 6d 61 74 63 | 68 69 6e 67 20 72 75 6c |rst matc|hing rul|
|000051f0| 65 2e 0a 58 20 20 20 20 | 20 2a 20 57 68 65 6e 20 |e..X | * When |
|00005200| 61 20 6d 61 74 63 68 20 | 69 73 20 66 6f 75 6e 64 |a match |is found|
|00005210| 20 61 6e 20 6f 70 74 69 | 6f 6e 61 6c 20 73 68 65 | an opti|onal she|
|00005220| 6c 6c 20 63 6f 6d 6d 61 | 6e 64 20 69 73 20 65 78 |ll comma|nd is ex|
|00005230| 65 63 75 74 65 64 2e 0a | 58 20 20 20 20 20 2a 2f |ecuted..|X */|
|00005240| 0a 58 0a 58 20 20 20 20 | 69 66 20 28 66 70 20 3d |.X.X |if (fp =|
|00005250| 20 66 6f 70 65 6e 28 74 | 61 62 6c 65 2c 20 22 72 | fopen(t|able, "r|
|00005260| 22 29 29 20 7b 0a 58 09 | 77 68 69 6c 65 20 28 21 |")) {.X.|while (!|
|00005270| 28 73 76 5f 6d 61 74 63 | 68 20 26 26 20 63 6c 5f |(sv_matc|h && cl_|
|00005280| 6d 61 74 63 68 29 20 26 | 26 20 78 67 65 74 73 28 |match) &|& xgets(|
|00005290| 73 76 5f 6c 69 73 74 2c | 20 73 69 7a 65 6f 66 28 |sv_list,| sizeof(|
|000052a0| 73 76 5f 6c 69 73 74 29 | 2c 20 66 70 29 29 20 7b |sv_list)|, fp)) {|
|000052b0| 0a 58 09 20 20 20 20 69 | 66 20 28 73 76 5f 6c 69 |.X. i|f (sv_li|
|000052c0| 73 74 5b 65 6e 64 20 3d | 20 73 74 72 6c 65 6e 28 |st[end =| strlen(|
|000052d0| 73 76 5f 6c 69 73 74 29 | 20 2d 20 31 5d 20 21 3d |sv_list)| - 1] !=|
|000052e0| 20 27 5c 6e 27 29 20 7b | 0a 58 09 09 73 79 73 6c | '\n') {|.X..sysl|
|000052f0| 6f 67 28 4c 4f 47 5f 45 | 52 52 2c 20 22 25 73 3a |og(LOG_E|RR, "%s:|
|00005300| 20 6d 69 73 73 69 6e 67 | 20 6e 65 77 6c 69 6e 65 | missing| newline|
|00005310| 20 6f 72 20 6c 69 6e 65 | 20 74 6f 6f 20 6c 6f 6e | or line| too lon|
|00005320| 67 22 2c 20 74 61 62 6c | 65 29 3b 0a 58 09 09 63 |g", tabl|e);.X..c|
|00005330| 6f 6e 74 69 6e 75 65 3b | 0a 58 09 20 20 20 20 7d |ontinue;|.X. }|
|00005340| 0a 58 09 20 20 20 20 69 | 66 20 28 73 76 5f 6c 69 |.X. i|f (sv_li|
|00005350| 73 74 5b 30 5d 20 3d 3d | 20 27 23 27 29 09 09 2f |st[0] ==| '#')../|
|00005360| 2a 20 73 6b 69 70 20 63 | 6f 6d 6d 65 6e 74 73 20 |* skip c|omments |
|00005370| 2a 2f 0a 58 09 09 63 6f | 6e 74 69 6e 75 65 3b 0a |*/.X..co|ntinue;.|
|00005380| 58 09 20 20 20 20 77 68 | 69 6c 65 20 28 65 6e 64 |X. wh|ile (end|
|00005390| 20 3e 20 30 20 26 26 20 | 69 73 73 70 61 63 65 28 | > 0 && |isspace(|
|000053a0| 73 76 5f 6c 69 73 74 5b | 65 6e 64 20 2d 20 31 5d |sv_list[|end - 1]|
|000053b0| 29 29 0a 58 09 09 20 65 | 6e 64 2d 2d 3b 0a 58 09 |)).X.. e|nd--;.X.|
|000053c0| 20 20 20 20 73 76 5f 6c | 69 73 74 5b 65 6e 64 5d | sv_l|ist[end]|
|000053d0| 20 3d 20 27 5c 30 27 3b | 09 09 2f 2a 20 73 74 72 | = '\0';|../* str|
|000053e0| 69 70 20 74 72 61 69 6c | 69 6e 67 20 77 68 69 74 |ip trail|ing whit|
|000053f0| 65 73 70 61 63 65 20 2a | 2f 0a 58 09 20 20 20 20 |espace *|/.X. |
|00005400| 69 66 20 28 73 76 5f 6c | 69 73 74 5b 30 5d 20 3d |if (sv_l|ist[0] =|
|00005410| 3d 20 30 29 09 09 2f 2a | 20 73 6b 69 70 20 62 6c |= 0)../*| skip bl|
|00005420| 61 6e 6b 20 6c 69 6e 65 | 73 20 2a 2f 0a 58 09 09 |ank line|s */.X..|
|00005430| 63 6f 6e 74 69 6e 75 65 | 3b 0a 58 09 20 20 20 20 |continue|;.X. |
|00005440| 69 66 20 28 28 63 6c 5f | 6c 69 73 74 20 3d 20 73 |if ((cl_|list = s|
|00005450| 74 72 63 68 72 28 73 76 | 5f 6c 69 73 74 2c 20 27 |trchr(sv|_list, '|
|00005460| 3a 27 29 29 20 3d 3d 20 | 30 29 20 7b 0a 58 09 09 |:')) == |0) {.X..|
|00005470| 73 79 73 6c 6f 67 28 4c | 4f 47 5f 45 52 52 2c 20 |syslog(L|OG_ERR, |
|00005480| 22 25 73 3a 20 6d 61 6c | 66 6f 72 6d 65 64 20 65 |"%s: mal|formed e|
|00005490| 6e 74 72 79 3a 20 5c 22 | 25 73 5c 22 22 2c 20 74 |ntry: \"|%s\"", t|
|000054a0| 61 62 6c 65 2c 20 73 76 | 5f 6c 69 73 74 29 3b 0a |able, sv|_list);.|
|000054b0| 58 09 09 63 6f 6e 74 69 | 6e 75 65 3b 0a 58 09 20 |X..conti|nue;.X. |
|000054c0| 20 20 20 7d 0a 58 09 20 | 20 20 20 2a 63 6c 5f 6c | }.X. | *cl_l|
|000054d0| 69 73 74 2b 2b 20 3d 20 | 27 5c 30 27 3b 09 09 09 |ist++ = |'\0';...|
|000054e0| 2f 2a 20 73 70 6c 69 74 | 20 31 73 74 20 61 6e 64 |/* split| 1st and|
|000054f0| 20 32 6e 64 20 66 69 65 | 6c 64 73 20 2a 2f 0a 58 | 2nd fie|lds */.X|
|00005500| 09 20 20 20 20 69 66 20 | 28 28 73 68 5f 63 6d 64 |. if |((sh_cmd|
|00005510| 20 3d 20 73 74 72 63 68 | 72 28 63 6c 5f 6c 69 73 | = strch|r(cl_lis|
|00005520| 74 2c 20 27 3a 27 29 29 | 20 21 3d 20 30 29 0a 58 |t, ':'))| != 0).X|
|00005530| 09 09 2a 73 68 5f 63 6d | 64 2b 2b 20 3d 20 27 5c |..*sh_cm|d++ = '\|
|00005540| 30 27 3b 09 09 2f 2a 20 | 73 70 6c 69 74 20 32 6e |0';../* |split 2n|
|00005550| 64 20 61 6e 64 20 33 72 | 64 20 66 69 65 6c 64 73 |d and 3r|d fields|
|00005560| 20 2a 2f 0a 58 09 20 20 | 20 20 69 66 20 28 28 73 | */.X. | if ((s|
|00005570| 76 5f 6d 61 74 63 68 20 | 3d 20 6c 69 73 74 5f 6d |v_match |= list_m|
|00005580| 61 74 63 68 28 73 76 5f | 6c 69 73 74 2c 20 64 61 |atch(sv_|list, da|
|00005590| 65 6d 6f 6e 2c 20 73 74 | 72 69 6e 67 5f 6d 61 74 |emon, st|ring_mat|
|000055a0| 63 68 29 29 29 0a 58 09 | 09 63 6c 5f 6d 61 74 63 |ch))).X.|.cl_matc|
|000055b0| 68 20 3d 20 6c 69 73 74 | 5f 6d 61 74 63 68 28 63 |h = list|_match(c|
|000055c0| 6c 5f 6c 69 73 74 2c 20 | 28 63 68 61 72 20 2a 29 |l_list, |(char *)|
|000055d0| 20 63 6c 69 65 6e 74 2c | 20 43 4c 49 45 4e 54 5f | client,| CLIENT_|
|000055e0| 4d 41 54 43 48 29 3b 0a | 58 09 7d 0a 58 09 28 76 |MATCH);.|X.}.X.(v|
|000055f0| 6f 69 64 29 20 66 63 6c | 6f 73 65 28 66 70 29 3b |oid) fcl|ose(fp);|
|00005600| 0a 58 20 20 20 20 7d 20 | 65 6c 73 65 20 69 66 20 |.X } |else if |
|00005610| 28 65 72 72 6e 6f 20 21 | 3d 20 45 4e 4f 45 4e 54 |(errno !|= ENOENT|
|00005620| 29 20 7b 0a 58 09 73 79 | 73 6c 6f 67 28 4c 4f 47 |) {.X.sy|slog(LOG|
|00005630| 5f 45 52 52 2c 20 22 63 | 61 6e 6e 6f 74 20 6f 70 |_ERR, "c|annot op|
|00005640| 65 6e 20 25 73 3a 20 25 | 6d 22 2c 20 74 61 62 6c |en %s: %|m", tabl|
|00005650| 65 29 3b 0a 58 20 20 20 | 20 7d 0a 58 20 20 20 20 |e);.X | }.X |
|00005660| 6d 61 74 63 68 20 3d 20 | 28 73 76 5f 6d 61 74 63 |match = |(sv_matc|
|00005670| 68 20 3d 3d 20 59 45 53 | 20 26 26 20 63 6c 5f 6d |h == YES| && cl_m|
|00005680| 61 74 63 68 20 3d 3d 20 | 59 45 53 29 3b 0a 58 20 |atch == |YES);.X |
|00005690| 20 20 20 69 66 20 28 6d | 61 74 63 68 20 26 26 20 | if (m|atch && |
|000056a0| 73 68 5f 63 6d 64 29 0a | 58 09 4f 50 54 49 4f 4e |sh_cmd).|X.OPTION|
|000056b0| 53 5f 53 54 59 4c 45 28 | 73 68 5f 63 6d 64 2c 20 |S_STYLE(|sh_cmd, |
|000056c0| 64 61 65 6d 6f 6e 2c 20 | 63 6c 69 65 6e 74 29 3b |daemon, |client);|
|000056d0| 0a 58 20 20 20 20 72 65 | 74 75 72 6e 20 28 6d 61 |.X re|turn (ma|
|000056e0| 74 63 68 29 3b 0a 58 7d | 0a 58 0a 58 2f 2a 20 6c |tch);.X}|.X.X/* l|
|000056f0| 69 73 74 5f 6d 61 74 63 | 68 20 2d 20 6d 61 74 63 |ist_matc|h - matc|
|00005700| 68 20 61 6e 20 69 74 65 | 6d 20 61 67 61 69 6e 73 |h an ite|m agains|
|00005710| 74 20 61 20 6c 69 73 74 | 20 6f 66 20 74 6f 6b 65 |t a list| of toke|
|00005720| 6e 73 20 77 69 74 68 20 | 65 78 63 65 70 74 69 6f |ns with |exceptio|
|00005730| 6e 73 20 2a 2f 0a 58 0a | 58 73 74 61 74 69 63 20 |ns */.X.|Xstatic |
|00005740| 69 6e 74 20 6c 69 73 74 | 5f 6d 61 74 63 68 28 6c |int list|_match(l|
|00005750| 69 73 74 2c 20 69 74 65 | 6d 2c 20 6d 61 74 63 68 |ist, ite|m, match|
|00005760| 5f 66 6e 29 0a 58 63 68 | 61 72 20 20 20 2a 6c 69 |_fn).Xch|ar *li|
|00005770| 73 74 3b 0a 58 63 68 61 | 72 20 20 20 2a 69 74 65 |st;.Xcha|r *ite|
|00005780| 6d 3b 0a 58 69 6e 74 20 | 20 20 28 2a 6d 61 74 63 |m;.Xint | (*matc|
|00005790| 68 5f 66 6e 29 20 28 29 | 3b 0a 58 7b 0a 58 20 20 |h_fn) ()|;.X{.X |
|000057a0| 20 20 63 68 61 72 20 20 | 20 2a 74 6f 6b 3b 0a 58 | char | *tok;.X|
|000057b0| 20 20 20 20 69 6e 74 20 | 20 20 20 20 6d 61 74 63 | int | matc|
|000057c0| 68 20 3d 20 4e 4f 3b 0a | 58 0a 58 20 20 20 20 2f |h = NO;.|X.X /|
|000057d0| 2a 0a 58 20 20 20 20 20 | 2a 20 50 72 6f 63 65 73 |*.X |* Proces|
|000057e0| 73 20 74 6f 6b 65 6e 73 | 20 6f 6e 65 20 61 74 20 |s tokens| one at |
|000057f0| 61 20 74 69 6d 65 2e 20 | 57 65 20 68 61 76 65 20 |a time. |We have |
|00005800| 65 78 68 61 75 73 74 65 | 64 20 61 6c 6c 20 70 6f |exhauste|d all po|
|00005810| 73 73 69 62 6c 65 20 6d | 61 74 63 68 65 73 0a 58 |ssible m|atches.X|
|00005820| 20 20 20 20 20 2a 20 77 | 68 65 6e 20 77 65 20 72 | * w|hen we r|
|00005830| 65 61 63 68 20 61 6e 20 | 22 45 58 43 45 50 54 22 |each an |"EXCEPT"|
|00005840| 20 74 6f 6b 65 6e 20 6f | 72 20 74 68 65 20 65 6e | token o|r the en|
|00005850| 64 20 6f 66 20 74 68 65 | 20 6c 69 73 74 2e 20 49 |d of the| list. I|
|00005860| 66 20 77 65 20 64 6f 20 | 66 69 6e 64 0a 58 20 20 |f we do |find.X |
|00005870| 20 20 20 2a 20 61 20 6d | 61 74 63 68 2c 20 6c 6f | * a m|atch, lo|
|00005880| 6f 6b 20 66 6f 72 20 61 | 6e 20 22 45 58 43 45 50 |ok for a|n "EXCEP|
|00005890| 54 22 20 6c 69 73 74 20 | 61 6e 64 20 72 65 63 75 |T" list |and recu|
|000058a0| 72 73 65 20 74 6f 20 64 | 65 74 65 72 6d 69 6e 65 |rse to d|etermine|
|000058b0| 20 77 68 65 74 68 65 72 | 0a 58 20 20 20 20 20 2a | whether|.X *|
|000058c0| 20 74 68 65 20 6d 61 74 | 63 68 20 69 73 20 61 66 | the mat|ch is af|
|000058d0| 66 65 63 74 65 64 20 62 | 79 20 61 6e 79 20 65 78 |fected b|y any ex|
|000058e0| 63 65 70 74 69 6f 6e 73 | 2e 0a 58 20 20 20 20 20 |ceptions|..X |
|000058f0| 2a 2f 0a 58 0a 58 20 20 | 20 20 66 6f 72 20 28 74 |*/.X.X | for (t|
|00005900| 6f 6b 20 3d 20 73 74 72 | 74 6f 6b 28 6c 69 73 74 |ok = str|tok(list|
|00005910| 2c 20 73 65 70 29 3b 20 | 74 6f 6b 20 21 3d 20 30 |, sep); |tok != 0|
|00005920| 3b 20 74 6f 6b 20 3d 20 | 73 74 72 74 6f 6b 28 28 |; tok = |strtok((|
|00005930| 63 68 61 72 20 2a 29 20 | 30 2c 20 73 65 70 29 29 |char *) |0, sep))|
|00005940| 20 7b 0a 58 09 69 66 20 | 28 73 74 72 63 61 73 65 | {.X.if |(strcase|
|00005950| 63 6d 70 28 74 6f 6b 2c | 20 22 45 58 43 45 50 54 |cmp(tok,| "EXCEPT|
|00005960| 22 29 20 3d 3d 20 30 29 | 09 2f 2a 20 45 58 43 45 |") == 0)|./* EXCE|
|00005970| 50 54 3a 20 67 69 76 65 | 20 75 70 20 2a 2f 0a 58 |PT: give| up */.X|
|00005980| 09 20 20 20 20 62 72 65 | 61 6b 3b 0a 58 09 69 66 |. bre|ak;.X.if|
|00005990| 20 28 6d 61 74 63 68 20 | 3d 20 28 2a 6d 61 74 63 | (match |= (*matc|
|000059a0| 68 5f 66 6e 29 20 28 74 | 6f 6b 2c 20 69 74 65 6d |h_fn) (t|ok, item|
|000059b0| 29 29 09 2f 2a 20 59 45 | 53 20 6f 72 20 46 41 49 |))./* YE|S or FAI|
|000059c0| 4c 20 2a 2f 0a 58 09 20 | 20 20 20 62 72 65 61 6b |L */.X. | break|
|000059d0| 3b 0a 58 20 20 20 20 7d | 0a 58 20 20 20 20 2f 2a |;.X }|.X /*|
|000059e0| 20 50 72 6f 63 65 73 73 | 20 65 78 63 65 70 74 69 | Process| excepti|
|000059f0| 6f 6e 73 20 74 6f 20 59 | 45 53 20 6f 72 20 46 41 |ons to Y|ES or FA|
|00005a00| 49 4c 20 6d 61 74 63 68 | 65 73 2e 20 2a 2f 0a 58 |IL match|es. */.X|
|00005a10| 0a 58 20 20 20 20 69 66 | 20 28 6d 61 74 63 68 20 |.X if| (match |
|00005a20| 21 3d 20 4e 4f 29 20 7b | 0a 58 09 77 68 69 6c 65 |!= NO) {|.X.while|
|00005a30| 20 28 28 74 6f 6b 20 3d | 20 73 74 72 74 6f 6b 28 | ((tok =| strtok(|
|00005a40| 28 63 68 61 72 20 2a 29 | 20 30 2c 20 73 65 70 29 |(char *)| 0, sep)|
|00005a50| 29 20 26 26 20 73 74 72 | 63 61 73 65 63 6d 70 28 |) && str|casecmp(|
|00005a60| 74 6f 6b 2c 20 22 45 58 | 43 45 50 54 22 29 29 0a |tok, "EX|CEPT")).|
|00005a70| 58 09 20 20 20 20 20 2f | 2a 20 56 4f 49 44 20 2a |X. /|* VOID *|
|00005a80| 2f 20 3b 0a 58 09 69 66 | 20 28 74 6f 6b 20 3d 3d |/ ;.X.if| (tok ==|
|00005a90| 20 30 20 7c 7c 20 6c 69 | 73 74 5f 6d 61 74 63 68 | 0 || li|st_match|
|00005aa0| 28 28 63 68 61 72 20 2a | 29 20 30 2c 20 69 74 65 |((char *|) 0, ite|
|00005ab0| 6d 2c 20 6d 61 74 63 68 | 5f 66 6e 29 20 3d 3d 20 |m, match|_fn) == |
|00005ac0| 4e 4f 29 0a 58 09 20 20 | 20 20 72 65 74 75 72 6e |NO).X. | return|
|00005ad0| 20 28 6d 61 74 63 68 29 | 3b 0a 58 20 20 20 20 7d | (match)|;.X }|
|00005ae0| 0a 58 20 20 20 20 72 65 | 74 75 72 6e 20 28 4e 4f |.X re|turn (NO|
|00005af0| 29 3b 0a 58 7d 0a 58 0a | 58 2f 2a 20 63 6c 69 65 |);.X}.X.|X/* clie|
|00005b00| 6e 74 5f 6d 61 74 63 68 | 20 2d 20 6d 61 74 63 68 |nt_match| - match|
|00005b10| 20 68 6f 73 74 20 6e 61 | 6d 65 20 61 6e 64 20 61 | host na|me and a|
|00005b20| 64 64 72 65 73 73 20 61 | 67 61 69 6e 73 74 20 74 |ddress a|gainst t|
|00005b30| 6f 6b 65 6e 20 2a 2f 0a | 58 0a 58 73 74 61 74 69 |oken */.|X.Xstati|
|00005b40| 63 20 69 6e 74 20 63 6c | 69 65 6e 74 5f 6d 61 74 |c int cl|ient_mat|
|00005b50| 63 68 28 74 6f 6b 2c 20 | 69 74 65 6d 29 0a 58 63 |ch(tok, |item).Xc|
|00005b60| 68 61 72 20 20 20 2a 74 | 6f 6b 3b 0a 58 63 68 61 |har *t|ok;.Xcha|
|00005b70| 72 20 20 20 2a 69 74 65 | 6d 3b 0a 58 7b 0a 58 20 |r *ite|m;.X{.X |
|00005b80| 20 20 20 73 74 72 75 63 | 74 20 66 72 6f 6d 5f 68 | struc|t from_h|
|00005b90| 6f 73 74 20 2a 63 6c 69 | 65 6e 74 20 3d 20 28 73 |ost *cli|ent = (s|
|00005ba0| 74 72 75 63 74 20 66 72 | 6f 6d 5f 68 6f 73 74 20 |truct fr|om_host |
|00005bb0| 2a 29 20 69 74 65 6d 3b | 0a 58 20 20 20 20 69 6e |*) item;|.X in|
|00005bc0| 74 20 20 20 20 20 6d 61 | 74 63 68 3b 0a 58 0a 58 |t ma|tch;.X.X|
|00005bd0| 20 20 20 20 2f 2a 0a 58 | 20 20 20 20 20 2a 20 54 | /*.X| * T|
|00005be0| 72 79 20 74 6f 20 6d 61 | 74 63 68 20 74 68 65 20 |ry to ma|tch the |
|00005bf0| 61 64 64 72 65 73 73 20 | 66 69 72 73 74 2e 20 49 |address |first. I|
|00005c00| 66 20 74 68 61 74 20 66 | 61 69 6c 73 2c 20 74 72 |f that f|ails, tr|
|00005c10| 79 20 74 6f 20 6d 61 74 | 63 68 20 74 68 65 20 68 |y to mat|ch the h|
|00005c20| 6f 73 74 0a 58 20 20 20 | 20 20 2a 20 6e 61 6d 65 |ost.X | * name|
|00005c30| 20 69 66 20 61 76 61 69 | 6c 61 62 6c 65 2e 0a 58 | if avai|lable..X|
|00005c40| 20 20 20 20 20 2a 2f 0a | 58 0a 58 20 20 20 20 69 | */.|X.X i|
|00005c50| 66 20 28 28 6d 61 74 63 | 68 20 3d 20 73 74 72 69 |f ((matc|h = stri|
|00005c60| 6e 67 5f 6d 61 74 63 68 | 28 74 6f 6b 2c 20 63 6c |ng_match|(tok, cl|
|00005c70| 69 65 6e 74 2d 3e 61 64 | 64 72 29 29 20 3d 3d 20 |ient->ad|dr)) == |
|00005c80| 30 29 0a 58 09 69 66 20 | 28 63 6c 69 65 6e 74 2d |0).X.if |(client-|
|00005c90| 3e 6e 61 6d 65 5b 30 5d | 20 21 3d 20 30 29 0a 58 |>name[0]| != 0).X|
|00005ca0| 09 20 20 20 20 6d 61 74 | 63 68 20 3d 20 73 74 72 |. mat|ch = str|
|00005cb0| 69 6e 67 5f 6d 61 74 63 | 68 28 74 6f 6b 2c 20 63 |ing_matc|h(tok, c|
|00005cc0| 6c 69 65 6e 74 2d 3e 6e | 61 6d 65 29 3b 0a 58 20 |lient->n|ame);.X |
|00005cd0| 20 20 20 72 65 74 75 72 | 6e 20 28 6d 61 74 63 68 | retur|n (match|
|00005ce0| 29 3b 0a 58 7d 0a 58 0a | 58 23 69 66 64 65 66 20 |);.X}.X.|X#ifdef |
|00005cf0| 55 53 45 52 5f 41 54 5f | 48 4f 53 54 0a 58 0a 58 |USER_AT_|HOST.X.X|
|00005d00| 2f 2a 20 75 73 65 72 68 | 6f 73 74 5f 6d 61 74 63 |/* userh|ost_matc|
|00005d10| 68 20 2d 20 64 6f 20 75 | 73 65 72 40 68 6f 73 74 |h - do u|ser@host|
|00005d20| 20 61 63 63 65 73 73 20 | 63 6f 6e 74 72 6f 6c 20 | access |control |
|00005d30| 2a 2f 0a 58 0a 58 73 74 | 61 74 69 63 20 69 6e 74 |*/.X.Xst|atic int|
|00005d40| 20 75 73 65 72 68 6f 73 | 74 5f 6d 61 74 63 68 28 | userhos|t_match(|
|00005d50| 74 6f 6b 2c 20 69 74 65 | 6d 29 0a 58 63 68 61 72 |tok, ite|m).Xchar|
|00005d60| 20 20 20 2a 74 6f 6b 3b | 0a 58 63 68 61 72 20 20 | *tok;|.Xchar |
|00005d70| 20 2a 69 74 65 6d 3b 0a | 58 7b 0a 58 20 20 20 20 | *item;.|X{.X |
|00005d80| 73 74 72 75 63 74 20 66 | 72 6f 6d 5f 68 6f 73 74 |struct f|rom_host|
|00005d90| 20 2a 63 6c 69 65 6e 74 | 20 3d 20 28 73 74 72 75 | *client| = (stru|
|00005da0| 63 74 20 66 72 6f 6d 5f | 68 6f 73 74 20 2a 29 20 |ct from_|host *) |
|00005db0| 69 74 65 6d 3b 0a 58 20 | 20 20 20 69 6e 74 20 20 |item;.X | int |
|00005dc0| 20 20 20 6d 61 74 63 68 | 20 3d 20 4e 4f 3b 0a 58 | match| = NO;.X|
|00005dd0| 20 20 20 20 63 68 61 72 | 20 20 20 2a 61 74 3b 0a | char| *at;.|
|00005de0| 58 20 20 20 20 69 6e 74 | 20 20 20 20 20 68 6f 73 |X int| hos|
|00005df0| 74 5f 6d 61 74 63 68 3b | 0a 58 20 20 20 20 69 6e |t_match;|.X in|
|00005e00| 74 20 20 20 20 20 75 73 | 65 72 5f 6d 61 74 63 68 |t us|er_match|
|00005e10| 3b 0a 58 0a 58 20 20 20 | 20 2f 2a 0a 58 20 20 20 |;.X.X | /*.X |
|00005e20| 20 20 2a 20 57 61 72 6e | 69 6e 67 3a 20 65 78 70 | * Warn|ing: exp|
|00005e30| 65 72 69 6d 65 6e 74 61 | 6c 20 63 6f 64 65 2c 20 |erimenta|l code, |
|00005e40| 65 6e 61 62 6c 65 64 20 | 6f 6e 6c 79 20 77 68 65 |enabled |only whe|
|00005e50| 6e 20 55 53 45 52 5f 41 | 54 5f 48 4f 53 54 20 69 |n USER_A|T_HOST i|
|00005e60| 73 20 64 65 66 69 6e 65 | 64 2e 0a 58 20 20 20 20 |s define|d..X |
|00005e70| 20 2a 20 0a 58 20 20 20 | 20 20 2a 20 42 61 73 69 | * .X | * Basi|
|00005e80| 63 61 6c 6c 79 2c 20 79 | 6f 75 20 73 70 65 63 69 |cally, y|ou speci|
|00005e90| 66 79 20 75 73 65 72 5f | 70 61 74 74 65 72 6e 40 |fy user_|pattern@|
|00005ea0| 68 6f 73 74 5f 70 61 74 | 74 65 72 6e 20 77 68 65 |host_pat|tern whe|
|00005eb0| 72 65 20 72 65 6d 6f 74 | 65 20 75 73 65 72 6e 61 |re remot|e userna|
|00005ec0| 6d 65 0a 58 20 20 20 20 | 20 2a 20 6c 6f 6f 6b 75 |me.X | * looku|
|00005ed0| 70 73 20 61 72 65 20 64 | 65 73 69 72 65 64 2c 20 |ps are d|esired, |
|00005ee0| 61 6e 64 20 70 6c 61 69 | 6e 20 68 6f 73 74 5f 70 |and plai|n host_p|
|00005ef0| 61 74 74 65 72 6e 20 66 | 6f 72 20 61 6c 6c 20 6f |attern f|or all o|
|00005f00| 74 68 65 72 20 63 61 73 | 65 73 2e 20 54 68 65 0a |ther cas|es. The.|
|00005f10| 58 20 20 20 20 20 2a 20 | 73 79 6e 74 61 78 20 6f |X * |syntax o|
|00005f20| 66 20 75 73 65 72 20 6e | 61 6d 65 20 70 61 74 74 |f user n|ame patt|
|00005f30| 65 72 6e 73 20 69 73 20 | 74 68 65 20 73 61 6d 65 |erns is |the same|
|00005f40| 20 61 73 20 66 6f 72 20 | 68 6f 73 74 73 20 6f 72 | as for |hosts or|
|00005f50| 20 64 61 65 6d 6f 6e 73 | 2c 20 62 75 74 0a 58 20 | daemons|, but.X |
|00005f60| 20 20 20 20 2a 20 41 4c | 4c 20 69 73 20 70 72 6f | * AL|L is pro|
|00005f70| 62 61 62 6c 79 20 74 68 | 65 20 6f 6e 6c 79 20 75 |bably th|e only u|
|00005f80| 73 65 72 5f 70 61 74 74 | 65 72 6e 20 74 68 61 74 |ser_patt|ern that|
|00005f90| 20 6d 61 6b 65 73 20 73 | 65 6e 73 65 2e 0a 58 20 | makes s|ense..X |
|00005fa0| 20 20 20 20 2a 20 0a 58 | 20 20 20 20 20 2a 20 49 | * .X| * I|
|00005fb0| 6e 20 63 61 73 65 20 6f | 66 20 55 44 50 20 63 6f |n case o|f UDP co|
|00005fc0| 6e 6e 65 63 74 69 6f 6e | 73 2c 20 74 68 65 20 72 |nnection|s, the r|
|00005fd0| 65 73 75 6c 74 20 6f 66 | 20 75 73 65 72 6e 61 6d |esult of| usernam|
|00005fe0| 65 20 6c 6f 6f 6b 75 70 | 20 77 69 6c 6c 20 61 6c |e lookup| will al|
|00005ff0| 77 61 79 73 20 62 65 0a | 58 20 20 20 20 20 2a 20 |ways be.|X * |
|00006000| 22 75 6e 6b 6e 6f 77 6e | 22 2e 0a 58 20 20 20 20 |"unknown|"..X |
|00006010| 20 2a 20 0a 58 20 20 20 | 20 20 2a 20 52 65 74 75 | * .X | * Retu|
|00006020| 72 6e 20 46 41 49 4c 20 | 69 66 20 77 65 20 6d 61 |rn FAIL |if we ma|
|00006030| 74 63 68 20 61 20 70 61 | 74 74 65 72 6e 20 6f 66 |tch a pa|ttern of|
|00006040| 20 74 68 65 20 66 6f 72 | 6d 20 75 73 65 72 40 46 | the for|m user@F|
|00006050| 41 49 4c 20 6f 72 20 46 | 41 49 4c 40 68 6f 73 74 |AIL or F|AIL@host|
|00006060| 3a 0a 58 20 20 20 20 20 | 2a 20 46 41 49 4c 2c 20 |:.X |* FAIL, |
|00006070| 6c 69 6b 65 20 4e 4f 2c | 20 69 73 20 74 72 61 6e |like NO,| is tran|
|00006080| 73 69 74 69 76 65 2e 20 | 41 63 63 6f 72 64 69 6e |sitive. |Accordin|
|00006090| 67 20 74 6f 20 73 6f 6d | 65 20 70 65 6f 70 6c 65 |g to som|e people|
|000060a0| 2c 20 73 75 63 68 20 70 | 61 74 74 65 72 6e 73 0a |, such p|atterns.|
|000060b0| 58 20 20 20 20 20 2a 20 | 73 68 6f 75 6c 64 20 62 |X * |should b|
|000060c0| 65 20 74 61 6b 65 6e 20 | 6f 75 74 20 61 6e 64 20 |e taken |out and |
|000060d0| 73 68 6f 74 2e 20 47 6f | 6f 64 20 6e 65 77 73 3a |shot. Go|od news:|
|000060e0| 20 46 41 49 4c 20 69 73 | 20 6f 6e 20 69 74 73 20 | FAIL is| on its |
|000060f0| 77 61 79 20 6f 75 74 2e | 0a 58 20 20 20 20 20 2a |way out.|.X *|
|00006100| 2f 0a 58 0a 58 20 20 20 | 20 69 66 20 28 61 74 20 |/.X.X | if (at |
|00006110| 3d 20 73 74 72 63 68 72 | 28 74 6f 6b 20 2b 20 31 |= strchr|(tok + 1|
|00006120| 2c 20 27 40 27 29 29 20 | 7b 09 09 2f 2a 20 75 73 |, '@')) |{../* us|
|00006130| 65 72 40 68 6f 73 74 20 | 2a 2f 0a 58 09 2a 61 74 |er@host |*/.X.*at|
|00006140| 20 3d 20 30 3b 0a 58 09 | 69 66 20 28 68 6f 73 74 | = 0;.X.|if (host|
|00006150| 5f 6d 61 74 63 68 20 3d | 20 63 6c 69 65 6e 74 5f |_match =| client_|
|00006160| 6d 61 74 63 68 28 61 74 | 20 2b 20 31 2c 20 69 74 |match(at| + 1, it|
|00006170| 65 6d 29 29 20 7b 0a 58 | 09 20 20 20 20 69 66 20 |em)) {.X|. if |
|00006180| 28 63 6c 69 65 6e 74 2d | 3e 75 73 65 72 5b 30 5d |(client-|>user[0]|
|00006190| 20 3d 3d 20 30 29 20 7b | 0a 58 09 09 69 66 20 28 | == 0) {|.X..if (|
|000061a0| 63 6c 69 65 6e 74 2d 3e | 73 6f 63 6b 5f 74 79 70 |client->|sock_typ|
|000061b0| 65 20 21 3d 20 46 52 4f | 4d 5f 43 4f 4e 4e 45 43 |e != FRO|M_CONNEC|
|000061c0| 54 45 44 29 20 7b 0a 58 | 09 09 20 20 20 20 63 6c |TED) {.X|.. cl|
|000061d0| 69 65 6e 74 2d 3e 75 73 | 65 72 20 3d 20 46 52 4f |ient->us|er = FRO|
|000061e0| 4d 5f 55 4e 4b 4e 4f 57 | 4e 3b 0a 58 09 09 7d 20 |M_UNKNOW|N;.X..} |
|000061f0| 65 6c 73 65 20 69 66 20 | 28 63 6c 69 65 6e 74 2d |else if |(client-|
|00006200| 3e 73 69 6e 20 3d 3d 20 | 30 29 20 7b 0a 58 09 09 |>sin == |0) {.X..|
|00006210| 20 20 20 20 73 79 73 6c | 6f 67 28 4c 4f 47 5f 45 | sysl|og(LOG_E|
|00006220| 52 52 2c 20 22 6e 6f 20 | 73 6f 63 6b 65 74 20 69 |RR, "no |socket i|
|00006230| 6e 66 6f 20 66 6f 72 20 | 75 73 65 72 20 6e 61 6d |nfo for |user nam|
|00006240| 65 20 6c 6f 6f 6b 75 70 | 22 29 3b 0a 58 09 09 20 |e lookup|");.X.. |
|00006250| 20 20 20 63 6c 69 65 6e | 74 2d 3e 75 73 65 72 20 | clien|t->user |
|00006260| 3d 20 46 52 4f 4d 5f 55 | 4e 4b 4e 4f 57 4e 3b 0a |= FROM_U|NKNOWN;.|
|00006270| 58 09 09 7d 20 65 6c 73 | 65 20 7b 0a 58 09 09 20 |X..} els|e {.X.. |
|00006280| 20 20 20 63 6c 69 65 6e | 74 2d 3e 75 73 65 72 20 | clien|t->user |
|00006290| 3d 20 72 66 63 39 33 31 | 5f 6e 61 6d 65 28 63 6c |= rfc931|_name(cl|
|000062a0| 69 65 6e 74 2d 3e 73 69 | 6e 29 3b 0a 58 09 09 7d |ient->si|n);.X..}|
|000062b0| 0a 58 09 20 20 20 20 7d | 0a 58 09 20 20 20 20 75 |.X. }|.X. u|
|000062c0| 73 65 72 5f 6d 61 74 63 | 68 20 3d 20 73 74 72 69 |ser_matc|h = stri|
|000062d0| 6e 67 5f 6d 61 74 63 68 | 28 74 6f 6b 2c 20 63 6c |ng_match|(tok, cl|
|000062e0| 69 65 6e 74 2d 3e 75 73 | 65 72 29 3b 0a 58 09 20 |ient->us|er);.X. |
|000062f0| 20 20 20 69 66 20 28 75 | 73 65 72 5f 6d 61 74 63 | if (u|ser_matc|
|00006300| 68 20 3d 3d 20 4e 4f 20 | 7c 7c 20 75 73 65 72 5f |h == NO ||| user_|
|00006310| 6d 61 74 63 68 20 3d 3d | 20 46 41 49 4c 29 20 7b |match ==| FAIL) {|
|00006320| 0a 58 09 09 6d 61 74 63 | 68 20 3d 20 75 73 65 72 |.X..matc|h = user|
|00006330| 5f 6d 61 74 63 68 3b 0a | 58 09 20 20 20 20 7d 20 |_match;.|X. } |
|00006340| 65 6c 73 65 20 7b 0a 58 | 09 09 6d 61 74 63 68 20 |else {.X|..match |
|00006350| 3d 20 68 6f 73 74 5f 6d | 61 74 63 68 3b 0a 58 09 |= host_m|atch;.X.|
|00006360| 20 20 20 20 7d 0a 58 09 | 7d 0a 58 09 2a 61 74 20 | }.X.|}.X.*at |
|00006370| 3d 20 27 40 27 3b 0a 58 | 20 20 20 20 7d 20 65 6c |= '@';.X| } el|
|00006380| 73 65 20 7b 09 09 09 09 | 09 2f 2a 20 68 6f 73 74 |se {....|./* host|
|00006390| 20 2a 2f 0a 58 09 6d 61 | 74 63 68 20 3d 20 63 6c | */.X.ma|tch = cl|
|000063a0| 69 65 6e 74 5f 6d 61 74 | 63 68 28 74 6f 6b 2c 20 |ient_mat|ch(tok, |
|000063b0| 69 74 65 6d 29 3b 0a 58 | 20 20 20 20 7d 0a 58 20 |item);.X| }.X |
|000063c0| 20 20 20 72 65 74 75 72 | 6e 20 28 6d 61 74 63 68 | retur|n (match|
|000063d0| 29 3b 0a 58 7d 0a 58 0a | 58 23 65 6e 64 69 66 20 |);.X}.X.|X#endif |
|000063e0| 2f 2a 20 55 53 45 52 5f | 41 54 5f 48 4f 53 54 20 |/* USER_|AT_HOST |
|000063f0| 2a 2f 0a 58 0a 58 2f 2a | 20 73 74 72 69 6e 67 5f |*/.X.X/*| string_|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.