home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3299 < prev    next >
SHell self-extracting ARchive  |  1991-05-07  |  51.9 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

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

You can browse this item here: 3299

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



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 3a 20 62 72 | 6e 73 74 6e 64 40 6b 72 |From: br|nstnd@kr|
|00000010| 61 6d 64 65 6e 2e 61 63 | 66 2e 6e 79 75 2e 65 64 |amden.ac|f.nyu.ed|
|00000020| 75 20 28 44 61 6e 20 42 | 65 72 6e 73 74 65 69 6e |u (Dan B|ernstein|
|00000030| 29 0a 4e 65 77 73 67 72 | 6f 75 70 73 3a 20 61 6c |).Newsgr|oups: al|
|00000040| 74 2e 73 6f 75 72 63 65 | 73 0a 53 75 62 6a 65 63 |t.source|s.Subjec|
|00000050| 74 3a 20 6b 73 74 75 66 | 66 20 30 2e 31 38 20 28 |t: kstuf|f 0.18 (|
|00000060| 70 61 72 74 20 34 2f 36 | 29 0a 4d 65 73 73 61 67 |part 4/6|).Messag|
|00000070| 65 2d 49 44 3a 20 3c 36 | 30 37 35 3a 4d 61 79 37 |e-ID: <6|075:May7|
|00000080| 30 34 3a 35 30 3a 35 39 | 39 31 40 6b 72 61 6d 64 |04:50:59|91@kramd|
|00000090| 65 6e 2e 61 63 66 2e 6e | 79 75 2e 65 64 75 3e 0a |en.acf.n|yu.edu>.|
|000000a0| 44 61 74 65 3a 20 37 20 | 4d 61 79 20 39 31 20 30 |Date: 7 |May 91 0|
|000000b0| 34 3a 35 30 3a 35 39 20 | 47 4d 54 0a 0a 23 21 20 |4:50:59 |GMT..#! |
|000000c0| 2f 62 69 6e 2f 73 68 0a | 23 20 54 68 69 73 20 69 |/bin/sh.|# This i|
|000000d0| 73 20 61 20 73 68 65 6c | 6c 20 61 72 63 68 69 76 |s a shel|l archiv|
|000000e0| 65 2e 20 20 52 65 6d 6f | 76 65 20 61 6e 79 74 68 |e. Remo|ve anyth|
|000000f0| 69 6e 67 20 62 65 66 6f | 72 65 20 74 68 69 73 20 |ing befo|re this |
|00000100| 6c 69 6e 65 2c 20 74 68 | 65 6e 20 75 6e 70 61 63 |line, th|en unpac|
|00000110| 6b 0a 23 20 69 74 20 62 | 79 20 73 61 76 69 6e 67 |k.# it b|y saving|
|00000120| 20 69 74 20 69 6e 74 6f | 20 61 20 66 69 6c 65 20 | it into| a file |
|00000130| 61 6e 64 20 74 79 70 69 | 6e 67 20 22 73 68 20 66 |and typi|ng "sh f|
|00000140| 69 6c 65 22 2e 20 20 54 | 6f 20 6f 76 65 72 77 72 |ile". T|o overwr|
|00000150| 69 74 65 20 65 78 69 73 | 74 69 6e 67 0a 23 20 66 |ite exis|ting.# f|
|00000160| 69 6c 65 73 2c 20 74 79 | 70 65 20 22 73 68 20 66 |iles, ty|pe "sh f|
|00000170| 69 6c 65 20 2d 63 22 2e | 20 20 59 6f 75 20 63 61 |ile -c".| You ca|
|00000180| 6e 20 61 6c 73 6f 20 66 | 65 65 64 20 74 68 69 73 |n also f|eed this|
|00000190| 20 61 73 20 73 74 61 6e | 64 61 72 64 20 69 6e 70 | as stan|dard inp|
|000001a0| 75 74 20 76 69 61 0a 23 | 20 75 6e 73 68 61 72 2c |ut via.#| unshar,|
|000001b0| 20 6f 72 20 62 79 20 74 | 79 70 69 6e 67 20 22 73 | or by t|yping "s|
|000001c0| 68 20 3c 66 69 6c 65 22 | 2c 20 65 2e 67 2e 2e 20 |h <file"|, e.g.. |
|000001d0| 20 49 66 20 74 68 69 73 | 20 61 72 63 68 69 76 65 | If this| archive|
|000001e0| 20 69 73 20 63 6f 6d 70 | 6c 65 74 65 2c 20 79 6f | is comp|lete, yo|
|000001f0| 75 0a 23 20 77 69 6c 6c | 20 73 65 65 20 74 68 65 |u.# will| see the|
|00000200| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 6d 65 73 73 61 | followi|ng messa|
|00000210| 67 65 20 61 74 20 74 68 | 65 20 65 6e 64 3a 0a 23 |ge at th|e end:.#|
|00000220| 09 09 22 45 6e 64 20 6f | 66 20 61 72 63 68 69 76 |.."End o|f archiv|
|00000230| 65 20 34 20 28 6f 66 20 | 36 29 2e 22 0a 23 20 43 |e 4 (of |6).".# C|
|00000240| 6f 6e 74 65 6e 74 73 3a | 20 20 49 4e 53 54 41 4c |ontents:| INSTAL|
|00000250| 4c 20 4f 46 49 4c 45 53 | 2e 68 69 73 74 20 61 75 |L OFILES|.hist au|
|00000260| 74 68 64 2e 63 20 66 69 | 6e 64 69 6e 6f 64 65 2f |thd.c fi|ndinode/|
|00000270| 52 45 41 44 4d 45 0a 23 | 20 20 20 66 69 6e 64 69 |README.#| findi|
|00000280| 6e 6f 64 65 2f 66 69 64 | 2e 63 20 67 65 74 6e 6f |node/fid|.c getno|
|00000290| 64 65 2e 63 20 67 65 74 | 73 6f 63 6b 65 74 2e 63 |de.c get|socket.c|
|000002a0| 20 67 65 74 75 73 65 72 | 2e 63 20 6d 6e 74 6f 70 | getuser|.c mntop|
|000002b0| 73 2e 63 0a 23 20 57 72 | 61 70 70 65 64 20 62 79 |s.c.# Wr|apped by|
|000002c0| 20 62 72 6e 73 74 6e 64 | 40 6b 72 61 6d 64 65 6e | brnstnd|@kramden|
|000002d0| 20 6f 6e 20 4d 6f 6e 20 | 4d 61 79 20 20 36 20 32 | on Mon |May 6 2|
|000002e0| 33 3a 35 39 3a 30 31 20 | 31 39 39 31 0a 50 41 54 |3:59:01 |1991.PAT|
|000002f0| 48 3d 2f 62 69 6e 3a 2f | 75 73 72 2f 62 69 6e 3a |H=/bin:/|usr/bin:|
|00000300| 2f 75 73 72 2f 75 63 62 | 20 3b 20 65 78 70 6f 72 |/usr/ucb| ; expor|
|00000310| 74 20 50 41 54 48 0a 69 | 66 20 74 65 73 74 20 2d |t PATH.i|f test -|
|00000320| 66 20 27 49 4e 53 54 41 | 4c 4c 27 20 2d 61 20 22 |f 'INSTA|LL' -a "|
|00000330| 24 7b 31 7d 22 20 21 3d | 20 22 2d 63 22 20 3b 20 |${1}" !=| "-c" ; |
|00000340| 74 68 65 6e 20 0a 20 20 | 65 63 68 6f 20 73 68 61 |then . |echo sha|
|00000350| 72 3a 20 57 69 6c 6c 20 | 6e 6f 74 20 63 6c 6f 62 |r: Will |not clob|
|00000360| 62 65 72 20 65 78 69 73 | 74 69 6e 67 20 66 69 6c |ber exis|ting fil|
|00000370| 65 20 5c 22 27 49 4e 53 | 54 41 4c 4c 27 5c 22 0a |e \"'INS|TALL'\".|
|00000380| 65 6c 73 65 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |else.ech|o shar: |
|00000390| 45 78 74 72 61 63 74 69 | 6e 67 20 5c 22 27 49 4e |Extracti|ng \"'IN|
|000003a0| 53 54 41 4c 4c 27 5c 22 | 20 5c 28 35 37 31 37 20 |STALL'\"| \(5717 |
|000003b0| 63 68 61 72 61 63 74 65 | 72 73 5c 29 0a 73 65 64 |characte|rs\).sed|
|000003c0| 20 22 73 2f 5e 58 2f 2f | 22 20 3e 27 49 4e 53 54 | "s/^X//|" >'INST|
|000003d0| 41 4c 4c 27 20 3c 3c 27 | 45 4e 44 5f 4f 46 5f 46 |ALL' <<'|END_OF_F|
|000003e0| 49 4c 45 27 0a 58 23 21 | 2f 62 69 6e 2f 73 68 0a |ILE'.X#!|/bin/sh.|
|000003f0| 58 0a 58 23 20 41 63 74 | 69 6f 6e 73 2e 0a 58 23 |X.X# Act|ions..X#|
|00000400| 20 43 68 61 6e 67 65 20 | 6b 6d 65 6d 20 74 6f 20 | Change |kmem to |
|00000410| 61 6e 79 74 68 69 6e 67 | 20 61 6e 64 20 6d 6f 64 |anything| and mod|
|00000420| 65 20 74 6f 20 30 37 35 | 35 20 69 66 20 79 6f 75 |e to 075|5 if you|
|00000430| 20 64 6f 6e 27 74 20 68 | 61 76 65 20 61 20 6b 6d | don't h|ave a km|
|00000440| 65 6d 20 67 72 6f 75 70 | 2c 0a 58 23 20 6f 72 20 |em group|,.X# or |
|00000450| 63 68 61 6e 67 65 20 6b | 6d 65 6d 20 74 6f 20 61 |change k|mem to a|
|00000460| 6e 79 74 68 69 6e 67 20 | 61 6e 64 20 6d 6f 64 65 |nything |and mode|
|00000470| 20 74 6f 20 30 37 30 30 | 20 69 66 20 79 6f 75 20 | to 0700| if you |
|00000480| 64 6f 6e 27 74 20 77 61 | 6e 74 20 6e 6f 72 6d 61 |don't wa|nt norma|
|00000490| 6c 0a 58 23 20 75 73 65 | 72 73 20 74 6f 20 62 65 |l.X# use|rs to be|
|000004a0| 20 61 62 6c 65 20 74 6f | 20 75 73 65 20 74 68 65 | able to| use the|
|000004b0| 73 65 20 75 74 69 6c 69 | 74 69 65 73 2e 0a 58 4d |se utili|ties..XM|
|000004c0| 4f 44 45 3d 30 32 37 35 | 35 20 20 23 20 6c 6f 61 |ODE=0275|5 # loa|
|000004d0| 64 2c 20 70 66 66 0a 58 | 53 59 53 4d 4f 44 45 3d |d, pff.X|SYSMODE=|
|000004e0| 30 32 37 35 35 20 20 23 | 20 61 75 74 68 64 2c 20 |02755 #| authd, |
|000004f0| 74 63 70 75 69 64 2c 20 | 74 63 70 75 6e 61 6d 65 |tcpuid, |tcpuname|
|00000500| 2c 20 6e 65 74 73 74 61 | 74 75 69 64 73 0a 58 47 |, netsta|tuids.XG|
|00000510| 52 4f 55 50 3d 6b 6d 65 | 6d 0a 58 49 4e 53 54 41 |ROUP=kme|m.XINSTA|
|00000520| 4c 4c 3d 22 69 6e 73 74 | 61 6c 6c 20 2d 63 22 0a |LL="inst|all -c".|
|00000530| 58 50 52 4f 47 49 4e 53 | 54 41 4c 4c 3d 22 24 49 |XPROGINS|TALL="$I|
|00000540| 4e 53 54 41 4c 4c 20 2d | 67 20 24 47 52 4f 55 50 |NSTALL -|g $GROUP|
|00000550| 20 2d 6d 20 24 4d 4f 44 | 45 22 0a 58 53 59 53 49 | -m $MOD|E".XSYSI|
|00000560| 4e 53 54 41 4c 4c 3d 22 | 24 49 4e 53 54 41 4c 4c |NSTALL="|$INSTALL|
|00000570| 20 2d 67 20 24 47 52 4f | 55 50 20 2d 6d 20 24 53 | -g $GRO|UP -m $S|
|00000580| 59 53 4d 4f 44 45 22 0a | 58 4c 49 42 49 4e 53 54 |YSMODE".|XLIBINST|
|00000590| 41 4c 4c 3d 22 24 49 4e | 53 54 41 4c 4c 20 2d 6d |ALL="$IN|STALL -m|
|000005a0| 20 30 34 34 34 22 20 20 | 20 23 20 72 65 61 6c 6c | 0444" | # reall|
|000005b0| 79 20 65 6e 64 73 20 75 | 70 20 30 36 34 34 0a 58 |y ends u|p 0644.X|
|000005c0| 4d 41 4e 49 4e 53 54 41 | 4c 4c 3d 22 24 49 4e 53 |MANINSTA|LL="$INS|
|000005d0| 54 41 4c 4c 20 2d 6d 20 | 30 34 34 34 22 0a 58 0a |TALL -m |0444".X.|
|000005e0| 58 23 20 44 69 72 65 63 | 74 6f 72 69 65 73 2e 0a |X# Direc|tories..|
|000005f0| 58 42 49 4e 3d 2f 75 73 | 72 2f 6c 6f 63 61 6c 2f |XBIN=/us|r/local/|
|00000600| 62 69 6e 0a 58 45 54 43 | 3d 2f 65 74 63 0a 58 4c |bin.XETC|=/etc.XL|
|00000610| 49 42 3d 2f 75 73 72 2f | 6c 69 62 0a 58 49 4e 43 |IB=/usr/|lib.XINC|
|00000620| 4c 55 44 45 3d 2f 75 73 | 72 2f 69 6e 63 6c 75 64 |LUDE=/us|r/includ|
|00000630| 65 0a 58 4d 41 4e 3d 2f | 75 73 72 2f 6d 61 6e 0a |e.XMAN=/|usr/man.|
|00000640| 58 0a 58 23 20 50 72 6f | 67 72 61 6d 73 2e 0a 58 |X.X# Pro|grams..X|
|00000650| 50 46 46 3d 22 24 42 49 | 4e 22 2f 70 66 66 0a 58 |PFF="$BI|N"/pff.X|
|00000660| 4c 4f 41 44 3d 22 24 42 | 49 4e 22 2f 6c 6f 61 64 |LOAD="$B|IN"/load|
|00000670| 0a 58 41 55 54 48 44 3d | 22 24 45 54 43 22 2f 61 |.XAUTHD=|"$ETC"/a|
|00000680| 75 74 68 64 0a 58 54 43 | 50 55 49 44 3d 22 24 45 |uthd.XTC|PUID="$E|
|00000690| 54 43 22 2f 74 63 70 75 | 69 64 20 23 20 6d 75 73 |TC"/tcpu|id # mus|
|000006a0| 74 20 62 65 20 6f 6e 20 | 73 61 6d 65 20 66 69 6c |t be on |same fil|
|000006b0| 65 73 79 73 74 65 6d 20 | 61 73 20 61 75 74 68 64 |esystem |as authd|
|000006c0| 0a 58 54 43 50 55 4e 41 | 4d 45 3d 22 24 45 54 43 |.XTCPUNA|ME="$ETC|
|000006d0| 22 2f 74 63 70 75 6e 61 | 6d 65 20 23 20 64 69 74 |"/tcpuna|me # dit|
|000006e0| 74 6f 0a 58 4e 45 54 53 | 54 41 54 55 49 44 53 3d |to.XNETS|TATUIDS=|
|000006f0| 22 24 45 54 43 22 2f 6e | 65 74 73 74 61 74 75 69 |"$ETC"/n|etstatui|
|00000700| 64 73 0a 58 41 55 54 48 | 55 53 45 52 3d 22 24 4c |ds.XAUTH|USER="$L|
|00000710| 49 42 22 2f 6c 69 62 61 | 75 74 68 75 73 65 72 2e |IB"/liba|uthuser.|
|00000720| 61 0a 58 41 55 54 48 55 | 53 45 52 48 3d 22 24 49 |a.XAUTHU|SERH="$I|
|00000730| 4e 43 4c 55 44 45 22 2f | 61 75 74 68 75 73 65 72 |NCLUDE"/|authuser|
|00000740| 2e 68 0a 58 0a 58 23 20 | 4d 61 6e 20 70 61 67 65 |.h.X.X# |Man page|
|00000750| 73 2e 0a 58 4d 50 46 46 | 3d 22 24 4d 41 4e 22 2f |s..XMPFF|="$MAN"/|
|00000760| 6d 61 6e 31 2f 70 66 66 | 2e 31 20 20 23 20 58 58 |man1/pff|.1 # XX|
|00000770| 58 3a 20 6e 6f 74 20 75 | 73 65 64 0a 58 4d 4c 4f |X: not u|sed.XMLO|
|00000780| 41 44 3d 22 24 4d 41 4e | 22 2f 6d 61 6e 31 2f 6c |AD="$MAN|"/man1/l|
|00000790| 6f 61 64 2e 31 0a 58 4d | 41 55 54 48 55 53 45 52 |oad.1.XM|AUTHUSER|
|000007a0| 3d 22 24 4d 41 4e 22 2f | 6d 61 6e 33 2f 61 75 74 |="$MAN"/|man3/aut|
|000007b0| 68 75 73 65 72 2e 33 0a | 58 4d 41 55 54 48 44 3d |huser.3.|XMAUTHD=|
|000007c0| 22 24 4d 41 4e 22 2f 6d | 61 6e 38 2f 61 75 74 68 |"$MAN"/m|an8/auth|
|000007d0| 64 2e 38 0a 58 4d 54 43 | 50 55 49 44 3d 22 24 4d |d.8.XMTC|PUID="$M|
|000007e0| 41 4e 22 2f 6d 61 6e 38 | 2f 74 63 70 75 69 64 2e |AN"/man8|/tcpuid.|
|000007f0| 38 0a 58 4d 54 43 50 55 | 4e 41 4d 45 3d 22 24 4d |8.XMTCPU|NAME="$M|
|00000800| 41 4e 22 2f 6d 61 6e 38 | 2f 74 63 70 75 6e 61 6d |AN"/man8|/tcpunam|
|00000810| 65 2e 38 0a 58 4d 4e 45 | 54 53 54 41 54 55 49 44 |e.8.XMNE|TSTATUID|
|00000820| 53 3d 22 24 4d 41 4e 22 | 2f 6d 61 6e 38 2f 6e 65 |S="$MAN"|/man8/ne|
|00000830| 74 73 74 61 74 75 69 64 | 73 2e 38 20 20 23 20 58 |tstatuid|s.8 # X|
|00000840| 58 58 3a 20 6e 6f 74 20 | 75 73 65 64 0a 58 0a 58 |XX: not |used.X.X|
|00000850| 23 20 4e 61 6d 65 20 6f | 66 20 70 6f 72 74 20 31 |# Name o|f port 1|
|00000860| 31 33 20 69 6e 20 2f 65 | 74 63 2f 73 65 72 76 69 |13 in /e|tc/servi|
|00000870| 63 65 73 2e 0a 58 50 4f | 52 54 4e 41 4d 45 3d 61 |ces..XPO|RTNAME=a|
|00000880| 75 74 68 0a 58 0a 58 65 | 63 68 6f 20 22 45 61 63 |uth.X.Xe|cho "Eac|
|00000890| 68 20 61 63 74 69 6f 6e | 20 77 69 6c 6c 20 62 65 |h action| will be|
|000008a0| 20 70 72 69 6e 74 65 64 | 20 62 65 66 6f 72 65 20 | printed| before |
|000008b0| 69 74 20 69 73 20 72 75 | 6e 2e 20 50 72 65 73 73 |it is ru|n. Press|
|000008c0| 20 72 65 74 75 72 6e 20 | 74 6f 20 70 72 6f 63 65 | return |to proce|
|000008d0| 65 64 2e 22 0a 58 65 63 | 68 6f 20 22 54 79 70 65 |ed.".Xec|ho "Type|
|000008e0| 20 73 6b 69 70 20 28 6f | 72 20 61 6e 79 74 68 69 | skip (o|r anythi|
|000008f0| 6e 67 20 73 74 61 72 74 | 69 6e 67 20 77 69 74 68 |ng start|ing with|
|00000900| 20 61 6e 20 73 29 20 74 | 6f 20 73 6b 69 70 20 61 | an s) t|o skip a|
|00000910| 20 73 74 65 70 2e 22 0a | 58 65 63 68 6f 20 22 28 | step.".|Xecho "(|
|00000920| 54 6f 20 73 65 65 20 61 | 6c 6c 20 61 63 74 69 6f |To see a|ll actio|
|00000930| 6e 73 2c 20 64 6f 20 73 | 6f 6d 65 74 68 69 6e 67 |ns, do s|omething|
|00000940| 20 6c 69 6b 65 20 25 20 | 79 65 73 20 73 6b 69 70 | like % |yes skip|
|00000950| 20 7c 20 73 68 20 49 4e | 53 54 41 4c 4c 2e 29 22 | | sh IN|STALL.)"|
|00000960| 0a 58 0a 58 65 63 68 6f | 20 22 31 2e 20 49 6e 73 |.X.Xecho| "1. Ins|
|00000970| 74 61 6c 6c 20 6c 6f 61 | 64 20 61 6e 64 20 70 66 |tall loa|d and pf|
|00000980| 66 2e 22 0a 58 65 63 68 | 6f 20 22 21 20 24 50 52 |f.".Xech|o "! $PR|
|00000990| 4f 47 49 4e 53 54 41 4c | 4c 20 70 66 66 20 24 50 |OGINSTAL|L pff $P|
|000009a0| 46 46 3a 20 22 20 7c 20 | 74 72 20 2d 64 20 27 5c |FF: " | |tr -d '\|
|000009b0| 30 31 32 27 0a 58 72 65 | 61 64 20 6c 69 6e 65 3b |012'.Xre|ad line;|
|000009c0| 20 63 61 73 65 20 22 24 | 6c 69 6e 65 22 20 69 6e | case "$|line" in|
|000009d0| 0a 58 73 2a 29 20 65 63 | 68 6f 20 22 5b 73 6b 69 |.Xs*) ec|ho "[ski|
|000009e0| 70 70 65 64 5d 22 20 3b | 3b 0a 58 2a 29 20 65 76 |pped]" ;|;.X*) ev|
|000009f0| 61 6c 20 22 24 50 52 4f | 47 49 4e 53 54 41 4c 4c |al "$PRO|GINSTALL|
|00000a00| 22 20 70 66 66 20 22 24 | 50 46 46 22 20 3b 3b 0a |" pff "$|PFF" ;;.|
|00000a10| 58 65 73 61 63 0a 58 0a | 58 65 63 68 6f 20 22 21 |Xesac.X.|Xecho "!|
|00000a20| 20 24 50 52 4f 47 49 4e | 53 54 41 4c 4c 20 6c 6f | $PROGIN|STALL lo|
|00000a30| 61 64 20 24 4c 4f 41 44 | 3a 20 22 20 7c 20 74 72 |ad $LOAD|: " | tr|
|00000a40| 20 2d 64 20 27 5c 30 31 | 32 27 0a 58 72 65 61 64 | -d '\01|2'.Xread|
|00000a50| 20 6c 69 6e 65 3b 20 63 | 61 73 65 20 22 24 6c 69 | line; c|ase "$li|
|00000a60| 6e 65 22 20 69 6e 0a 58 | 73 2a 29 20 65 63 68 6f |ne" in.X|s*) echo|
|00000a70| 20 22 5b 73 6b 69 70 70 | 65 64 5d 22 20 3b 3b 0a | "[skipp|ed]" ;;.|
|00000a80| 58 2a 29 20 65 76 61 6c | 20 22 24 50 52 4f 47 49 |X*) eval| "$PROGI|
|00000a90| 4e 53 54 41 4c 4c 22 20 | 6c 6f 61 64 20 22 24 4c |NSTALL" |load "$L|
|00000aa0| 4f 41 44 22 20 3b 3b 0a | 58 65 73 61 63 0a 58 0a |OAD" ;;.|Xesac.X.|
|00000ab0| 58 65 63 68 6f 20 22 32 | 2e 20 49 6e 73 74 61 6c |Xecho "2|. Instal|
|00000ac0| 6c 20 61 75 74 68 64 2c | 20 74 63 70 75 69 64 2c |l authd,| tcpuid,|
|00000ad0| 20 74 63 70 75 6e 61 6d | 65 2c 20 61 6e 64 20 6e | tcpunam|e, and n|
|00000ae0| 65 74 73 74 61 74 75 69 | 64 73 2e 22 0a 58 65 63 |etstatui|ds.".Xec|
|00000af0| 68 6f 20 22 21 20 24 53 | 59 53 49 4e 53 54 41 4c |ho "! $S|YSINSTAL|
|00000b00| 4c 20 61 75 74 68 64 20 | 24 41 55 54 48 44 3a 20 |L authd |$AUTHD: |
|00000b10| 22 20 7c 20 74 72 20 2d | 64 20 27 5c 30 31 32 27 |" | tr -|d '\012'|
|00000b20| 0a 58 72 65 61 64 20 6c | 69 6e 65 3b 20 63 61 73 |.Xread l|ine; cas|
|00000b30| 65 20 22 24 6c 69 6e 65 | 22 20 69 6e 0a 58 73 2a |e "$line|" in.Xs*|
|00000b40| 29 20 65 63 68 6f 20 22 | 5b 73 6b 69 70 70 65 64 |) echo "|[skipped|
|00000b50| 5d 22 20 3b 3b 0a 58 2a | 29 20 65 76 61 6c 20 22 |]" ;;.X*|) eval "|
|00000b60| 24 53 59 53 49 4e 53 54 | 41 4c 4c 22 20 61 75 74 |$SYSINST|ALL" aut|
|00000b70| 68 64 20 22 24 41 55 54 | 48 44 22 20 3b 3b 0a 58 |hd "$AUT|HD" ;;.X|
|00000b80| 65 73 61 63 0a 58 0a 58 | 65 63 68 6f 20 22 21 20 |esac.X.X|echo "! |
|00000b90| 72 6d 20 2d 66 20 24 54 | 43 50 55 49 44 3b 20 6c |rm -f $T|CPUID; l|
|00000ba0| 6e 20 24 41 55 54 48 44 | 20 24 54 43 50 55 49 44 |n $AUTHD| $TCPUID|
|00000bb0| 3a 20 22 20 7c 20 74 72 | 20 2d 64 20 27 5c 30 31 |: " | tr| -d '\01|
|00000bc0| 32 27 0a 58 72 65 61 64 | 20 6c 69 6e 65 3b 20 63 |2'.Xread| line; c|
|00000bd0| 61 73 65 20 22 24 6c 69 | 6e 65 22 20 69 6e 0a 58 |ase "$li|ne" in.X|
|00000be0| 73 2a 29 20 65 63 68 6f | 20 22 5b 73 6b 69 70 70 |s*) echo| "[skipp|
|00000bf0| 65 64 5d 22 20 3b 3b 0a | 58 2a 29 20 72 6d 20 2d |ed]" ;;.|X*) rm -|
|00000c00| 66 20 22 24 54 43 50 55 | 49 44 22 3b 20 6c 6e 20 |f "$TCPU|ID"; ln |
|00000c10| 22 24 41 55 54 48 44 22 | 20 22 24 54 43 50 55 49 |"$AUTHD"| "$TCPUI|
|00000c20| 44 22 20 3b 3b 0a 58 65 | 73 61 63 0a 58 0a 58 65 |D" ;;.Xe|sac.X.Xe|
|00000c30| 63 68 6f 20 22 21 20 72 | 6d 20 2d 66 20 24 54 43 |cho "! r|m -f $TC|
|00000c40| 50 55 4e 41 4d 45 3b 20 | 6c 6e 20 24 41 55 54 48 |PUNAME; |ln $AUTH|
|00000c50| 44 20 24 54 43 50 55 4e | 41 4d 45 3a 20 22 20 7c |D $TCPUN|AME: " ||
|00000c60| 20 74 72 20 2d 64 20 27 | 5c 30 31 32 27 0a 58 72 | tr -d '|\012'.Xr|
|00000c70| 65 61 64 20 6c 69 6e 65 | 3b 20 63 61 73 65 20 22 |ead line|; case "|
|00000c80| 24 6c 69 6e 65 22 20 69 | 6e 0a 58 73 2a 29 20 65 |$line" i|n.Xs*) e|
|00000c90| 63 68 6f 20 22 5b 73 6b | 69 70 70 65 64 5d 22 20 |cho "[sk|ipped]" |
|00000ca0| 3b 3b 0a 58 2a 29 20 72 | 6d 20 2d 66 20 22 24 54 |;;.X*) r|m -f "$T|
|00000cb0| 43 50 55 4e 41 4d 45 22 | 3b 20 6c 6e 20 22 24 41 |CPUNAME"|; ln "$A|
|00000cc0| 55 54 48 44 22 20 22 24 | 54 43 50 55 4e 41 4d 45 |UTHD" "$|TCPUNAME|
|00000cd0| 22 20 3b 3b 0a 58 65 73 | 61 63 0a 58 0a 58 65 63 |" ;;.Xes|ac.X.Xec|
|00000ce0| 68 6f 20 22 21 20 24 53 | 59 53 49 4e 53 54 41 4c |ho "! $S|YSINSTAL|
|00000cf0| 4c 20 6e 65 74 73 74 61 | 74 75 69 64 73 20 24 4e |L netsta|tuids $N|
|00000d00| 45 54 53 54 41 54 55 49 | 44 53 3a 20 22 20 7c 20 |ETSTATUI|DS: " | |
|00000d10| 74 72 20 2d 64 20 27 5c | 30 31 32 27 0a 58 72 65 |tr -d '\|012'.Xre|
|00000d20| 61 64 20 6c 69 6e 65 3b | 20 63 61 73 65 20 22 24 |ad line;| case "$|
|00000d30| 6c 69 6e 65 22 20 69 6e | 0a 58 73 2a 29 20 65 63 |line" in|.Xs*) ec|
|00000d40| 68 6f 20 22 5b 73 6b 69 | 70 70 65 64 5d 22 20 3b |ho "[ski|pped]" ;|
|00000d50| 3b 0a 58 2a 29 20 65 76 | 61 6c 20 22 24 53 59 53 |;.X*) ev|al "$SYS|
|00000d60| 49 4e 53 54 41 4c 4c 22 | 20 6e 65 74 73 74 61 74 |INSTALL"| netstat|
|00000d70| 75 69 64 73 20 22 24 4e | 45 54 53 54 41 54 55 49 |uids "$N|ETSTATUI|
|00000d80| 44 53 22 20 3b 3b 0a 58 | 65 73 61 63 0a 58 0a 58 |DS" ;;.X|esac.X.X|
|00000d90| 65 63 68 6f 20 22 33 2e | 20 49 6e 73 74 61 6c 6c |echo "3.| Install|
|00000da0| 20 74 68 65 20 61 75 74 | 68 75 73 65 72 20 6c 69 | the aut|huser li|
|00000db0| 62 72 61 72 79 2e 22 0a | 58 65 63 68 6f 20 22 21 |brary.".|Xecho "!|
|00000dc0| 20 24 4c 49 42 49 4e 53 | 54 41 4c 4c 20 61 75 74 | $LIBINS|TALL aut|
|00000dd0| 68 75 73 65 72 2e 68 20 | 24 41 55 54 48 55 53 45 |huser.h |$AUTHUSE|
|00000de0| 52 48 3a 20 22 20 7c 20 | 74 72 20 2d 64 20 27 5c |RH: " | |tr -d '\|
|00000df0| 30 31 32 27 0a 58 72 65 | 61 64 20 6c 69 6e 65 3b |012'.Xre|ad line;|
|00000e00| 20 63 61 73 65 20 22 24 | 6c 69 6e 65 22 20 69 6e | case "$|line" in|
|00000e10| 0a 58 73 2a 29 20 65 63 | 68 6f 20 22 5b 73 6b 69 |.Xs*) ec|ho "[ski|
|00000e20| 70 70 65 64 5d 22 20 3b | 3b 0a 58 2a 29 20 65 76 |pped]" ;|;.X*) ev|
|00000e30| 61 6c 20 22 24 4c 49 42 | 49 4e 53 54 41 4c 4c 22 |al "$LIB|INSTALL"|
|00000e40| 20 61 75 74 68 75 73 65 | 72 2e 68 20 22 24 41 55 | authuse|r.h "$AU|
|00000e50| 54 48 55 53 45 52 48 22 | 20 3b 3b 0a 58 65 73 61 |THUSERH"| ;;.Xesa|
|00000e60| 63 0a 58 0a 58 65 63 68 | 6f 20 22 21 20 61 72 20 |c.X.Xech|o "! ar |
|00000e70| 72 76 20 24 41 55 54 48 | 55 53 45 52 20 61 75 74 |rv $AUTH|USER aut|
|00000e80| 68 75 73 65 72 2e 6f 3a | 20 22 20 7c 20 74 72 20 |huser.o:| " | tr |
|00000e90| 2d 64 20 27 5c 30 31 32 | 27 0a 58 72 65 61 64 20 |-d '\012|'.Xread |
|00000ea0| 6c 69 6e 65 3b 20 63 61 | 73 65 20 22 24 6c 69 6e |line; ca|se "$lin|
|00000eb0| 65 22 20 69 6e 0a 58 73 | 2a 29 20 65 63 68 6f 20 |e" in.Xs|*) echo |
|00000ec0| 22 5b 73 6b 69 70 70 65 | 64 5d 22 20 3b 3b 0a 58 |"[skippe|d]" ;;.X|
|00000ed0| 2a 29 20 61 72 20 72 76 | 20 22 24 41 55 54 48 55 |*) ar rv| "$AUTHU|
|00000ee0| 53 45 52 22 20 61 75 74 | 68 75 73 65 72 2e 6f 20 |SER" aut|huser.o |
|00000ef0| 3b 3b 0a 58 65 73 61 63 | 0a 58 0a 58 65 63 68 6f |;;.Xesac|.X.Xecho|
|00000f00| 20 22 21 20 72 61 6e 6c | 69 62 20 24 41 55 54 48 | "! ranl|ib $AUTH|
|00000f10| 55 53 45 52 3a 20 22 20 | 7c 20 74 72 20 2d 64 20 |USER: " || tr -d |
|00000f20| 27 5c 30 31 32 27 0a 58 | 72 65 61 64 20 6c 69 6e |'\012'.X|read lin|
|00000f30| 65 3b 20 63 61 73 65 20 | 22 24 6c 69 6e 65 22 20 |e; case |"$line" |
|00000f40| 69 6e 0a 58 73 2a 29 20 | 65 63 68 6f 20 22 5b 73 |in.Xs*) |echo "[s|
|00000f50| 6b 69 70 70 65 64 5d 22 | 20 3b 3b 0a 58 2a 29 20 |kipped]"| ;;.X*) |
|00000f60| 72 61 6e 6c 69 62 20 22 | 24 41 55 54 48 55 53 45 |ranlib "|$AUTHUSE|
|00000f70| 52 22 20 3b 3b 0a 58 65 | 73 61 63 0a 58 0a 58 65 |R" ;;.Xe|sac.X.Xe|
|00000f80| 63 68 6f 20 22 21 20 63 | 68 6d 6f 64 20 36 34 34 |cho "! c|hmod 644|
|00000f90| 20 24 41 55 54 48 55 53 | 45 52 3a 20 22 20 7c 20 | $AUTHUS|ER: " | |
|00000fa0| 74 72 20 2d 64 20 27 5c | 30 31 32 27 0a 58 72 65 |tr -d '\|012'.Xre|
|00000fb0| 61 64 20 6c 69 6e 65 3b | 20 63 61 73 65 20 22 24 |ad line;| case "$|
|00000fc0| 6c 69 6e 65 22 20 69 6e | 0a 58 73 2a 29 20 65 63 |line" in|.Xs*) ec|
|00000fd0| 68 6f 20 22 5b 73 6b 69 | 70 70 65 64 5d 22 20 3b |ho "[ski|pped]" ;|
|00000fe0| 3b 0a 58 2a 29 20 63 68 | 6d 6f 64 20 36 34 34 20 |;.X*) ch|mod 644 |
|00000ff0| 22 24 41 55 54 48 55 53 | 45 52 22 20 3b 3b 0a 58 |"$AUTHUS|ER" ;;.X|
|00001000| 65 73 61 63 0a 58 0a 58 | 65 63 68 6f 20 22 34 2e |esac.X.X|echo "4.|
|00001010| 20 4d 61 6b 65 20 74 68 | 65 20 6d 61 6e 20 70 61 | Make th|e man pa|
|00001020| 67 65 73 20 61 76 61 69 | 6c 61 62 6c 65 2e 22 0a |ges avai|lable.".|
|00001030| 58 65 63 68 6f 20 22 21 | 20 24 4d 41 4e 49 4e 53 |Xecho "!| $MANINS|
|00001040| 54 41 4c 4c 20 61 75 74 | 68 75 73 65 72 2e 33 20 |TALL aut|huser.3 |
|00001050| 24 4d 41 55 54 48 55 53 | 45 52 3a 20 22 20 7c 20 |$MAUTHUS|ER: " | |
|00001060| 74 72 20 2d 64 20 27 5c | 30 31 32 27 0a 58 72 65 |tr -d '\|012'.Xre|
|00001070| 61 64 20 6c 69 6e 65 3b | 20 63 61 73 65 20 22 24 |ad line;| case "$|
|00001080| 6c 69 6e 65 22 20 69 6e | 0a 58 73 2a 29 20 65 63 |line" in|.Xs*) ec|
|00001090| 68 6f 20 22 5b 73 6b 69 | 70 70 65 64 5d 22 20 3b |ho "[ski|pped]" ;|
|000010a0| 3b 0a 58 2a 29 20 65 76 | 61 6c 20 22 24 4d 41 4e |;.X*) ev|al "$MAN|
|000010b0| 49 4e 53 54 41 4c 4c 22 | 20 61 75 74 68 75 73 65 |INSTALL"| authuse|
|000010c0| 72 2e 33 20 22 24 4d 41 | 55 54 48 55 53 45 52 22 |r.3 "$MA|UTHUSER"|
|000010d0| 20 3b 3b 0a 58 65 73 61 | 63 0a 58 0a 58 65 63 68 | ;;.Xesa|c.X.Xech|
|000010e0| 6f 20 22 21 20 24 4d 41 | 4e 49 4e 53 54 41 4c 4c |o "! $MA|NINSTALL|
|000010f0| 20 6c 6f 61 64 2e 31 20 | 24 4d 4c 4f 41 44 3a 20 | load.1 |$MLOAD: |
|00001100| 22 20 7c 20 74 72 20 2d | 64 20 27 5c 30 31 32 27 |" | tr -|d '\012'|
|00001110| 0a 58 72 65 61 64 20 6c | 69 6e 65 3b 20 63 61 73 |.Xread l|ine; cas|
|00001120| 65 20 22 24 6c 69 6e 65 | 22 20 69 6e 0a 58 73 2a |e "$line|" in.Xs*|
|00001130| 29 20 65 63 68 6f 20 22 | 5b 73 6b 69 70 70 65 64 |) echo "|[skipped|
|00001140| 5d 22 20 3b 3b 0a 58 2a | 29 20 65 76 61 6c 20 22 |]" ;;.X*|) eval "|
|00001150| 24 4d 41 4e 49 4e 53 54 | 41 4c 4c 22 20 6c 6f 61 |$MANINST|ALL" loa|
|00001160| 64 2e 31 20 22 24 4d 4c | 4f 41 44 22 20 3b 3b 0a |d.1 "$ML|OAD" ;;.|
|00001170| 58 65 73 61 63 0a 58 0a | 58 65 63 68 6f 20 22 21 |Xesac.X.|Xecho "!|
|00001180| 20 24 4d 41 4e 49 4e 53 | 54 41 4c 4c 20 61 75 74 | $MANINS|TALL aut|
|00001190| 68 64 2e 38 20 24 4d 41 | 55 54 48 44 3a 20 22 20 |hd.8 $MA|UTHD: " |
|000011a0| 7c 20 74 72 20 2d 64 20 | 27 5c 30 31 32 27 0a 58 || tr -d |'\012'.X|
|000011b0| 72 65 61 64 20 6c 69 6e | 65 3b 20 63 61 73 65 20 |read lin|e; case |
|000011c0| 22 24 6c 69 6e 65 22 20 | 69 6e 0a 58 73 2a 29 20 |"$line" |in.Xs*) |
|000011d0| 65 63 68 6f 20 22 5b 73 | 6b 69 70 70 65 64 5d 22 |echo "[s|kipped]"|
|000011e0| 20 3b 3b 0a 58 2a 29 20 | 65 76 61 6c 20 22 24 4d | ;;.X*) |eval "$M|
|000011f0| 41 4e 49 4e 53 54 41 4c | 4c 22 20 61 75 74 68 64 |ANINSTAL|L" authd|
|00001200| 2e 38 20 22 24 4d 41 55 | 54 48 44 22 20 3b 3b 0a |.8 "$MAU|THD" ;;.|
|00001210| 58 65 73 61 63 0a 58 0a | 58 65 63 68 6f 20 22 21 |Xesac.X.|Xecho "!|
|00001220| 20 24 4d 41 4e 49 4e 53 | 54 41 4c 4c 20 74 63 70 | $MANINS|TALL tcp|
|00001230| 75 69 64 2e 38 20 24 4d | 54 43 50 55 49 44 3a 20 |uid.8 $M|TCPUID: |
|00001240| 22 20 7c 20 74 72 20 2d | 64 20 27 5c 30 31 32 27 |" | tr -|d '\012'|
|00001250| 0a 58 72 65 61 64 20 6c | 69 6e 65 3b 20 63 61 73 |.Xread l|ine; cas|
|00001260| 65 20 22 24 6c 69 6e 65 | 22 20 69 6e 0a 58 73 2a |e "$line|" in.Xs*|
|00001270| 29 20 65 63 68 6f 20 22 | 5b 73 6b 69 70 70 65 64 |) echo "|[skipped|
|00001280| 5d 22 20 3b 3b 0a 58 2a | 29 20 65 76 61 6c 20 22 |]" ;;.X*|) eval "|
|00001290| 24 4d 41 4e 49 4e 53 54 | 41 4c 4c 22 20 74 63 70 |$MANINST|ALL" tcp|
|000012a0| 75 69 64 2e 38 20 22 24 | 4d 54 43 50 55 49 44 22 |uid.8 "$|MTCPUID"|
|000012b0| 20 3b 3b 0a 58 65 73 61 | 63 0a 58 0a 58 65 63 68 | ;;.Xesa|c.X.Xech|
|000012c0| 6f 20 22 21 20 24 4d 41 | 4e 49 4e 53 54 41 4c 4c |o "! $MA|NINSTALL|
|000012d0| 20 74 63 70 75 6e 61 6d | 65 2e 38 20 24 4d 54 43 | tcpunam|e.8 $MTC|
|000012e0| 50 55 4e 41 4d 45 3a 20 | 22 20 7c 20 74 72 20 2d |PUNAME: |" | tr -|
|000012f0| 64 20 27 5c 30 31 32 27 | 0a 58 72 65 61 64 20 6c |d '\012'|.Xread l|
|00001300| 69 6e 65 3b 20 63 61 73 | 65 20 22 24 6c 69 6e 65 |ine; cas|e "$line|
|00001310| 22 20 69 6e 0a 58 73 2a | 29 20 65 63 68 6f 20 22 |" in.Xs*|) echo "|
|00001320| 5b 73 6b 69 70 70 65 64 | 5d 22 20 3b 3b 0a 58 2a |[skipped|]" ;;.X*|
|00001330| 29 20 65 76 61 6c 20 22 | 24 4d 41 4e 49 4e 53 54 |) eval "|$MANINST|
|00001340| 41 4c 4c 22 20 74 63 70 | 75 6e 61 6d 65 2e 38 20 |ALL" tcp|uname.8 |
|00001350| 22 24 4d 54 43 50 55 4e | 41 4d 45 22 20 3b 3b 0a |"$MTCPUN|AME" ;;.|
|00001360| 58 65 73 61 63 0a 58 0a | 58 65 63 68 6f 20 22 35 |Xesac.X.|Xecho "5|
|00001370| 2e 20 4d 61 6b 65 20 73 | 75 72 65 20 61 6e 20 61 |. Make s|ure an a|
|00001380| 75 74 68 20 70 6f 72 74 | 20 69 73 20 69 6e 20 2f |uth port| is in /|
|00001390| 65 74 63 2f 73 65 72 76 | 69 63 65 73 2e 22 0a 58 |etc/serv|ices.".X|
|000013a0| 65 63 68 6f 20 22 4c 65 | 74 20 6d 65 20 67 6c 61 |echo "Le|t me gla|
|000013b0| 6e 63 65 20 61 74 20 2f | 65 74 63 2f 73 65 72 76 |nce at /|etc/serv|
|000013c0| 69 63 65 73 20 66 6f 72 | 20 79 6f 75 2e 2e 2e 22 |ices for| you..."|
|000013d0| 0a 58 69 66 20 67 72 65 | 70 20 27 5e 27 24 50 4f |.Xif gre|p '^'$PO|
|000013e0| 52 54 4e 41 4d 45 27 5b | 20 09 5d 2a 31 31 33 2f |RTNAME'[| .]*113/|
|000013f0| 74 63 70 27 20 2f 65 74 | 63 2f 73 65 72 76 69 63 |tcp' /et|c/servic|
|00001400| 65 73 20 3e 2f 64 65 76 | 2f 6e 75 6c 6c 20 32 3e |es >/dev|/null 2>|
|00001410| 26 31 0a 58 74 68 65 6e | 20 65 63 68 6f 20 22 4f |&1.Xthen| echo "O|
|00001420| 6b 61 79 2c 20 79 6f 75 | 20 68 61 76 65 20 69 74 |kay, you| have it|
|00001430| 20 61 6c 72 65 61 64 79 | 2e 20 4c 65 74 27 73 20 | already|. Let's |
|00001440| 63 6f 6e 74 69 6e 75 65 | 2e 22 0a 58 65 6c 73 65 |continue|.".Xelse|
|00001450| 20 65 63 68 6f 20 22 4e | 6f 70 65 2c 20 69 74 27 | echo "N|ope, it'|
|00001460| 73 20 6e 6f 74 20 74 68 | 65 72 65 2e 22 0a 58 20 |s not th|ere.".X |
|00001470| 20 20 20 20 65 63 68 6f | 20 22 4c 65 74 20 6d 65 | echo| "Let me|
|00001480| 20 63 68 65 63 6b 20 74 | 68 61 74 20 79 6f 75 20 | check t|hat you |
|00001490| 64 6f 6e 27 74 20 68 61 | 76 65 20 61 20 64 69 66 |don't ha|ve a dif|
|000014a0| 66 65 72 65 6e 74 20 61 | 75 74 68 20 70 6f 72 74 |ferent a|uth port|
|000014b0| 2e 2e 2e 22 0a 58 20 20 | 20 20 20 69 66 20 67 72 |...".X | if gr|
|000014c0| 65 70 20 27 5e 27 24 50 | 4f 52 54 4e 41 4d 45 27 |ep '^'$P|ORTNAME'|
|000014d0| 5b 20 09 5d 5b 20 09 5d | 2a 27 20 2f 65 74 63 2f |[ .][ .]|*' /etc/|
|000014e0| 73 65 72 76 69 63 65 73 | 20 3e 2f 64 65 76 2f 6e |services| >/dev/n|
|000014f0| 75 6c 6c 20 32 3e 26 31 | 0a 58 20 20 20 20 20 74 |ull 2>&1|.X t|
|00001500| 68 65 6e 20 65 63 68 6f | 20 22 41 61 61 63 6b 21 |hen echo| "Aaack!|
|00001510| 20 24 50 4f 52 54 4e 41 | 4d 45 20 69 73 20 61 6c | $PORTNA|ME is al|
|00001520| 72 65 61 64 79 20 75 73 | 65 64 20 69 6e 20 2f 65 |ready us|ed in /e|
|00001530| 74 63 2f 73 65 72 76 69 | 63 65 73 2e 20 45 78 69 |tc/servi|ces. Exi|
|00001540| 74 69 6e 67 2e 22 0a 58 | 09 20 20 65 78 69 74 20 |ting.".X|. exit |
|00001550| 31 0a 58 20 20 20 20 20 | 66 69 0a 58 20 20 20 20 |1.X |fi.X |
|00001560| 20 65 63 68 6f 20 22 21 | 20 65 63 68 6f 20 24 50 | echo "!| echo $P|
|00001570| 4f 52 54 4e 41 4d 45 27 | 09 31 31 33 2f 74 63 70 |ORTNAME'|.113/tcp|
|00001580| 27 20 3e 3e 20 2f 65 74 | 63 2f 73 65 72 76 69 63 |' >> /et|c/servic|
|00001590| 65 73 3a 20 22 20 7c 20 | 74 72 20 2d 64 20 27 5c |es: " | |tr -d '\|
|000015a0| 30 31 32 27 0a 58 20 20 | 20 20 20 72 65 61 64 20 |012'.X | read |
|000015b0| 6c 69 6e 65 3b 20 63 61 | 73 65 20 22 24 6c 69 6e |line; ca|se "$lin|
|000015c0| 65 22 20 69 6e 0a 58 20 | 20 20 20 20 73 2a 29 20 |e" in.X | s*) |
|000015d0| 65 63 68 6f 20 22 5b 73 | 6b 69 70 70 65 64 5d 22 |echo "[s|kipped]"|
|000015e0| 20 3b 3b 0a 58 20 20 20 | 20 20 2a 29 20 65 63 68 | ;;.X | *) ech|
|000015f0| 6f 20 22 24 50 4f 52 54 | 4e 41 4d 45 22 27 09 09 |o "$PORT|NAME"'..|
|00001600| 31 31 33 2f 74 63 70 27 | 20 3e 3e 20 2f 65 74 63 |113/tcp'| >> /etc|
|00001610| 2f 73 65 72 76 69 63 65 | 73 20 3b 3b 0a 58 20 20 |/service|s ;;.X |
|00001620| 20 20 20 65 73 61 63 0a | 58 66 69 0a 58 0a 58 65 | esac.|Xfi.X.Xe|
|00001630| 63 68 6f 20 22 36 2e 20 | 45 6e 61 62 6c 65 20 61 |cho "6. |Enable a|
|00001640| 75 74 68 20 69 6e 20 2f | 65 74 63 2f 69 6e 65 74 |uth in /|etc/inet|
|00001650| 64 2e 63 6f 6e 66 2e 22 | 0a 58 65 63 68 6f 20 22 |d.conf."|.Xecho "|
|00001660| 4c 65 74 20 6d 65 20 67 | 6c 61 6e 63 65 20 61 74 |Let me g|lance at|
|00001670| 20 2f 65 74 63 2f 69 6e | 65 74 64 2e 63 6f 6e 66 | /etc/in|etd.conf|
|00001680| 20 66 6f 72 20 79 6f 75 | 2e 2e 2e 22 0a 58 69 66 | for you|...".Xif|
|00001690| 20 67 72 65 70 20 27 5e | 27 22 24 50 4f 52 54 4e | grep '^|'"$PORTN|
|000016a0| 41 4d 45 22 27 5b 20 09 | 5d 27 20 2f 65 74 63 2f |AME"'[ .|]' /etc/|
|000016b0| 69 6e 65 74 64 2e 63 6f | 6e 66 20 3e 2f 64 65 76 |inetd.co|nf >/dev|
|000016c0| 2f 6e 75 6c 6c 20 32 3e | 26 31 0a 58 74 68 65 6e |/null 2>|&1.Xthen|
|000016d0| 20 65 63 68 6f 20 22 4f | 6b 61 79 2c 20 69 74 27 | echo "O|kay, it'|
|000016e0| 73 20 61 6c 72 65 61 64 | 79 20 74 68 65 72 65 2e |s alread|y there.|
|000016f0| 20 54 68 61 74 27 73 20 | 69 74 21 22 0a 58 20 20 | That's |it!".X |
|00001700| 20 20 20 65 78 69 74 20 | 30 0a 58 66 69 0a 58 69 | exit |0.Xfi.Xi|
|00001710| 66 20 67 72 65 70 20 27 | 74 65 6c 6e 65 74 2e 2a |f grep '|telnet.*|
|00001720| 72 6f 6f 74 27 20 2f 65 | 74 63 2f 69 6e 65 74 64 |root' /e|tc/inetd|
|00001730| 2e 63 6f 6e 66 20 3e 2f | 64 65 76 2f 6e 75 6c 6c |.conf >/|dev/null|
|00001740| 20 32 3e 26 31 0a 58 74 | 68 65 6e 20 65 63 68 6f | 2>&1.Xt|hen echo|
|00001750| 20 22 49 74 27 73 20 6e | 6f 74 20 74 68 65 72 65 | "It's n|ot there|
|00001760| 20 79 65 74 2e 20 48 6d | 6d 6d 2c 20 6c 6f 6f 6b | yet. Hm|mm, look|
|00001770| 73 20 6c 69 6b 65 20 79 | 6f 75 20 68 61 76 65 20 |s like y|ou have |
|00001780| 61 20 53 75 6e 2d 73 74 | 79 6c 65 20 69 6e 65 74 |a Sun-st|yle inet|
|00001790| 64 2e 22 0a 58 20 20 20 | 20 20 65 63 68 6f 20 22 |d.".X | echo "|
|000017a0| 21 20 65 63 68 6f 20 24 | 50 4f 52 54 4e 41 4d 45 |! echo $|PORTNAME|
|000017b0| 27 20 73 74 72 65 61 6d | 20 74 63 70 20 6e 6f 77 |' stream| tcp now|
|000017c0| 61 69 74 20 72 6f 6f 74 | 20 27 24 41 55 54 48 44 |ait root| '$AUTHD|
|000017d0| 27 20 61 75 74 68 64 27 | 20 3e 3e 20 2f 65 74 63 |' authd'| >> /etc|
|000017e0| 2f 69 6e 65 74 64 2e 63 | 6f 6e 66 3a 20 22 20 7c |/inetd.c|onf: " ||
|000017f0| 20 74 72 20 2d 64 20 27 | 5c 30 31 32 27 0a 58 20 | tr -d '|\012'.X |
|00001800| 20 20 20 20 72 65 61 64 | 20 6c 69 6e 65 3b 20 63 | read| line; c|
|00001810| 61 73 65 20 22 24 6c 69 | 6e 65 22 20 69 6e 0a 58 |ase "$li|ne" in.X|
|00001820| 20 20 20 20 20 73 2a 29 | 20 65 63 68 6f 20 22 5b | s*)| echo "[|
|00001830| 73 6b 69 70 70 65 64 5d | 22 20 3b 3b 0a 58 20 20 |skipped]|" ;;.X |
|00001840| 20 20 20 2a 29 20 65 63 | 68 6f 20 22 24 50 4f 52 | *) ec|ho "$POR|
|00001850| 54 4e 41 4d 45 22 27 09 | 73 74 72 65 61 6d 09 74 |TNAME"'.|stream.t|
|00001860| 63 70 09 6e 6f 77 61 69 | 74 09 72 6f 6f 74 09 27 |cp.nowai|t.root.'|
|00001870| 22 24 41 55 54 48 44 22 | 27 09 61 75 74 68 64 27 |"$AUTHD"|'.authd'|
|00001880| 20 3e 3e 20 2f 65 74 63 | 2f 69 6e 65 74 64 2e 63 | >> /etc|/inetd.c|
|00001890| 6f 6e 66 20 3b 3b 0a 58 | 20 20 20 20 20 65 73 61 |onf ;;.X| esa|
|000018a0| 63 0a 58 65 6c 73 65 20 | 65 63 68 6f 20 22 49 74 |c.Xelse |echo "It|
|000018b0| 27 73 20 6e 6f 74 20 74 | 68 65 72 65 20 79 65 74 |'s not t|here yet|
|000018c0| 2e 22 0a 58 20 20 20 20 | 20 65 63 68 6f 20 22 21 |.".X | echo "!|
|000018d0| 20 65 63 68 6f 20 24 50 | 4f 52 54 4e 41 4d 45 27 | echo $P|ORTNAME'|
|000018e0| 20 73 74 72 65 61 6d 20 | 74 63 70 20 6e 6f 77 61 | stream |tcp nowa|
|000018f0| 69 74 20 27 24 41 55 54 | 48 44 27 20 61 75 74 68 |it '$AUT|HD' auth|
|00001900| 64 27 20 3e 3e 20 2f 65 | 74 63 2f 69 6e 65 74 64 |d' >> /e|tc/inetd|
|00001910| 2e 63 6f 6e 66 3a 20 22 | 20 7c 20 74 72 20 2d 64 |.conf: "| | tr -d|
|00001920| 20 27 5c 30 31 32 27 0a | 58 20 20 20 20 20 72 65 | '\012'.|X re|
|00001930| 61 64 20 6c 69 6e 65 3b | 20 63 61 73 65 20 22 24 |ad line;| case "$|
|00001940| 6c 69 6e 65 22 20 69 6e | 0a 58 20 20 20 20 20 73 |line" in|.X s|
|00001950| 2a 29 20 65 63 68 6f 20 | 22 5b 73 6b 69 70 70 65 |*) echo |"[skippe|
|00001960| 64 5d 22 20 3b 3b 0a 58 | 20 20 20 20 20 2a 29 20 |d]" ;;.X| *) |
|00001970| 65 63 68 6f 20 22 24 50 | 4f 52 54 4e 41 4d 45 22 |echo "$P|ORTNAME"|
|00001980| 27 09 73 74 72 65 61 6d | 09 74 63 70 09 6e 6f 77 |'.stream|.tcp.now|
|00001990| 61 69 74 09 27 22 24 41 | 55 54 48 44 22 27 09 61 |ait.'"$A|UTHD"'.a|
|000019a0| 75 74 68 64 27 20 3e 3e | 20 2f 65 74 63 2f 69 6e |uthd' >>| /etc/in|
|000019b0| 65 74 64 2e 63 6f 6e 66 | 20 3b 3b 0a 58 20 20 20 |etd.conf| ;;.X |
|000019c0| 20 20 65 73 61 63 0a 58 | 66 69 0a 58 0a 58 65 63 | esac.X|fi.X.Xec|
|000019d0| 68 6f 20 22 37 2e 20 4c | 65 74 20 69 6e 65 74 64 |ho "7. L|et inetd|
|000019e0| 20 6b 6e 6f 77 20 61 62 | 6f 75 74 20 74 68 65 20 | know ab|out the |
|000019f0| 6e 65 77 20 73 65 72 76 | 69 63 65 2e 22 0a 58 65 |new serv|ice.".Xe|
|00001a00| 63 68 6f 20 22 4f 6e 20 | 6d 6f 73 74 20 6d 61 63 |cho "On |most mac|
|00001a10| 68 69 6e 65 73 20 79 6f | 75 20 68 61 76 65 20 74 |hines yo|u have t|
|00001a20| 6f 20 25 20 6b 69 6c 6c | 20 2d 48 55 50 20 6e 6e |o % kill| -HUP nn|
|00001a30| 22 0a 58 65 63 68 6f 20 | 22 77 68 65 72 65 20 6e |".Xecho |"where n|
|00001a40| 6e 20 69 73 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |n is the| number |
|00001a50| 6f 66 20 74 68 65 20 69 | 6e 65 74 64 20 70 72 6f |of the i|netd pro|
|00001a60| 63 65 73 73 2e 22 0a 58 | 65 63 68 6f 20 22 48 65 |cess.".X|echo "He|
|00001a70| 72 65 27 73 20 77 68 61 | 74 20 70 73 20 61 63 75 |re's wha|t ps acu|
|00001a80| 67 78 20 73 68 6f 77 73 | 20 61 62 6f 75 74 20 69 |gx shows| about i|
|00001a90| 6e 65 74 64 3a 22 0a 58 | 70 73 20 61 63 75 67 78 |netd:".X|ps acugx|
|00001aa0| 20 7c 20 73 65 64 20 2d | 6e 20 2d 65 20 31 70 20 | | sed -|n -e 1p |
|00001ab0| 2d 65 20 2f 69 6e 65 74 | 64 2f 70 0a 58 65 63 68 |-e /inet|d/p.Xech|
|00001ac0| 6f 20 22 49 27 6c 6c 20 | 6c 65 61 76 65 20 74 68 |o "I'll |leave th|
|00001ad0| 69 73 20 73 74 65 70 20 | 74 6f 20 79 6f 75 2e 20 |is step |to you. |
|00001ae0| 54 68 61 74 27 73 20 69 | 74 21 22 0a 58 0a 58 65 |That's i|t!".X.Xe|
|00001af0| 78 69 74 20 30 0a 45 4e | 44 5f 4f 46 5f 46 49 4c |xit 0.EN|D_OF_FIL|
|00001b00| 45 0a 69 66 20 74 65 73 | 74 20 35 37 31 37 20 2d |E.if tes|t 5717 -|
|00001b10| 6e 65 20 60 77 63 20 2d | 63 20 3c 27 49 4e 53 54 |ne `wc -|c <'INST|
|00001b20| 41 4c 4c 27 60 3b 20 74 | 68 65 6e 0a 20 20 20 20 |ALL'`; t|hen. |
|00001b30| 65 63 68 6f 20 73 68 61 | 72 3a 20 5c 22 27 49 4e |echo sha|r: \"'IN|
|00001b40| 53 54 41 4c 4c 27 5c 22 | 20 75 6e 70 61 63 6b 65 |STALL'\"| unpacke|
|00001b50| 64 20 77 69 74 68 20 77 | 72 6f 6e 67 20 73 69 7a |d with w|rong siz|
|00001b60| 65 21 0a 66 69 0a 63 68 | 6d 6f 64 20 2b 78 20 27 |e!.fi.ch|mod +x '|
|00001b70| 49 4e 53 54 41 4c 4c 27 | 0a 23 20 65 6e 64 20 6f |INSTALL'|.# end o|
|00001b80| 66 20 27 49 4e 53 54 41 | 4c 4c 27 0a 66 69 0a 69 |f 'INSTA|LL'.fi.i|
|00001b90| 66 20 74 65 73 74 20 2d | 66 20 27 4f 46 49 4c 45 |f test -|f 'OFILE|
|00001ba0| 53 2e 68 69 73 74 27 20 | 2d 61 20 22 24 7b 31 7d |S.hist' |-a "${1}|
|00001bb0| 22 20 21 3d 20 22 2d 63 | 22 20 3b 20 74 68 65 6e |" != "-c|" ; then|
|00001bc0| 20 0a 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 57 | . echo| shar: W|
|00001bd0| 69 6c 6c 20 6e 6f 74 20 | 63 6c 6f 62 62 65 72 20 |ill not |clobber |
|00001be0| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 5c 22 |existing| file \"|
|00001bf0| 27 4f 46 49 4c 45 53 2e | 68 69 73 74 27 5c 22 0a |'OFILES.|hist'\".|
|00001c00| 65 6c 73 65 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |else.ech|o shar: |
|00001c10| 45 78 74 72 61 63 74 69 | 6e 67 20 5c 22 27 4f 46 |Extracti|ng \"'OF|
|00001c20| 49 4c 45 53 2e 68 69 73 | 74 27 5c 22 20 5c 28 36 |ILES.his|t'\" \(6|
|00001c30| 31 30 31 20 63 68 61 72 | 61 63 74 65 72 73 5c 29 |101 char|acters\)|
|00001c40| 0a 73 65 64 20 22 73 2f | 5e 58 2f 2f 22 20 3e 27 |.sed "s/|^X//" >'|
|00001c50| 4f 46 49 4c 45 53 2e 68 | 69 73 74 27 20 3c 3c 27 |OFILES.h|ist' <<'|
|00001c60| 45 4e 44 5f 4f 46 5f 46 | 49 4c 45 27 0a 58 41 20 |END_OF_F|ILE'.XA |
|00001c70| 68 69 73 74 6f 72 79 20 | 6f 66 20 6f 66 69 6c 65 |history |of ofile|
|00001c80| 73 0a 58 44 61 6e 20 42 | 65 72 6e 73 74 65 69 6e |s.XDan B|ernstein|
|00001c90| 0a 58 34 2f 36 2f 39 31 | 0a 58 0a 58 0a 58 31 2e |.X4/6/91|.X.X.X1.|
|00001ca0| 20 43 6f 6e 74 72 69 62 | 75 74 6f 72 73 20 74 6f | Contrib|utors to|
|00001cb0| 20 6f 66 69 6c 65 73 2f | 66 73 74 61 74 2f 70 66 | ofiles/|fstat/pf|
|00001cc0| 66 0a 58 0a 58 43 2e 20 | 53 70 65 6e 63 65 72 20 |f.X.XC. |Spencer |
|00001cd0| 3c 3f 3f 3f 20 61 74 20 | 42 42 4e 3e 20 77 61 73 |<??? at |BBN> was|
|00001ce0| 20 74 68 65 20 6f 72 69 | 67 69 6e 61 6c 20 61 75 | the ori|ginal au|
|00001cf0| 74 68 6f 72 20 6f 66 20 | 6f 66 69 6c 65 73 2e 0a |thor of |ofiles..|
|00001d00| 58 0a 58 56 69 63 20 41 | 62 65 6c 6c 20 3c 61 62 |X.XVic A|bell <ab|
|00001d10| 65 40 6d 61 63 65 2e 63 | 63 2e 70 75 72 64 75 65 |e@mace.c|c.purdue|
|00001d20| 2e 65 64 75 3e 0a 58 44 | 61 6e 20 42 65 72 6e 73 |.edu>.XD|an Berns|
|00001d30| 74 65 69 6e 20 3c 62 72 | 6e 73 74 6e 64 40 6e 79 |tein <br|nstnd@ny|
|00001d40| 75 2e 65 64 75 3e 0a 58 | 57 69 6c 6c 20 43 72 6f |u.edu>.X|Will Cro|
|00001d50| 77 64 65 72 20 3c 77 69 | 6c 6c 63 72 40 69 73 6d |wder <wi|llcr@ism|
|00001d60| 2e 69 73 63 2e 63 6f 6d | 3e 0a 58 54 6f 6d 20 43 |.isc.com|>.XTom C|
|00001d70| 68 72 69 73 74 69 61 6e | 73 65 6e 20 3c 74 63 68 |hristian|sen <tch|
|00001d80| 72 69 73 74 40 63 6f 6e | 76 65 78 2e 63 6f 6d 3e |rist@con|vex.com>|
|00001d90| 0a 58 4d 69 63 68 61 65 | 6c 20 44 69 74 74 6f 20 |.XMichae|l Ditto |
|00001da0| 3c 3f 3f 3f 3e 0a 58 56 | 69 6b 74 6f 72 20 44 75 |<???>.XV|iktor Du|
|00001db0| 6b 68 6f 76 6e 69 20 3c | 76 69 6b 74 6f 72 40 73 |khovni <|viktor@s|
|00001dc0| 68 65 61 72 73 6f 6e 2e | 63 6f 6d 3e 0a 58 54 6f |hearson.|com>.XTo|
|00001dd0| 6d 20 44 75 6e 69 67 61 | 6e 20 3c 64 75 6e 69 67 |m Duniga|n <dunig|
|00001de0| 61 6e 40 6d 73 72 2e 65 | 70 6d 2e 6f 72 6e 6c 2e |an@msr.e|pm.ornl.|
|00001df0| 67 6f 76 3e 0a 58 41 6c | 65 78 61 6e 64 65 72 20 |gov>.XAl|exander |
|00001e00| 44 75 70 75 79 20 3c 64 | 75 70 75 79 40 63 73 2e |Dupuy <d|upuy@cs.|
|00001e10| 63 6f 6c 75 6d 62 69 61 | 2e 65 64 75 3e 0a 58 56 |columbia|.edu>.XV|
|00001e20| 69 6b 20 4c 61 6c 6c 20 | 3c 3f 3f 3f 3e 0a 58 43 |ik Lall |<???>.XC|
|00001e30| 72 61 69 67 20 4c 65 72 | 65 73 20 3c 6c 65 72 65 |raig Ler|es <lere|
|00001e40| 73 40 68 65 6c 69 6f 73 | 2e 65 65 2e 6c 62 6c 2e |s@helios|.ee.lbl.|
|00001e50| 67 6f 76 3e 0a 58 52 61 | 79 20 4d 6f 6f 64 79 20 |gov>.XRa|y Moody |
|00001e60| 3c 52 61 79 2e 4d 6f 6f | 64 79 40 74 69 6d 62 75 |<Ray.Moo|dy@timbu|
|00001e70| 6b 2e 63 72 61 79 2e 63 | 6f 6d 3e 0a 58 47 61 72 |k.cray.c|om>.XGar|
|00001e80| 79 20 4e 65 62 62 65 74 | 74 20 3c 67 72 6e 40 73 |y Nebbet|t <grn@s|
|00001e90| 74 6c 2e 73 74 63 2e 63 | 6f 2e 75 6b 20 6c 61 73 |tl.stc.c|o.uk las|
|00001ea0| 74 20 6b 6e 6f 77 6e 20 | 61 64 64 72 65 73 73 3e |t known |address>|
|00001eb0| 0a 58 54 69 6d 20 52 6f | 73 6d 75 73 20 3c 74 69 |.XTim Ro|smus <ti|
|00001ec0| 6d 40 70 69 6c 63 68 75 | 63 6b 2e 64 61 74 61 2d |m@pilchu|ck.data-|
|00001ed0| 69 6f 2e 63 6f 6d 3e 0a | 58 4d 69 6b 65 20 53 70 |io.com>.|XMike Sp|
|00001ee0| 69 74 7a 65 72 20 3c 3f | 3f 3f 3e 0a 58 52 69 63 |itzer <?|??>.XRic|
|00001ef0| 68 61 72 64 20 54 6f 62 | 69 6e 20 3c 72 69 63 68 |hard Tob|in <rich|
|00001f00| 61 72 64 40 61 69 61 69 | 2e 65 64 2e 61 63 2e 75 |ard@aiai|.ed.ac.u|
|00001f10| 6b 3e 0a 58 0a 58 50 61 | 72 74 69 63 75 6c 61 72 |k>.X.XPa|rticular|
|00001f20| 20 74 68 61 6e 6b 73 20 | 74 6f 20 56 69 63 20 41 | thanks |to Vic A|
|00001f30| 62 65 6c 6c 2c 20 41 6c | 65 78 61 6e 64 65 72 20 |bell, Al|exander |
|00001f40| 44 75 70 75 79 2c 20 61 | 6e 64 20 43 72 61 69 67 |Dupuy, a|nd Craig|
|00001f50| 20 4c 65 72 65 73 20 66 | 6f 72 20 61 0a 58 6c 6f | Leres f|or a.Xlo|
|00001f60| 74 20 6f 66 20 74 68 65 | 20 69 6e 66 6f 72 6d 61 |t of the| informa|
|00001f70| 74 69 6f 6e 20 63 6f 6e | 74 61 69 6e 65 64 20 68 |tion con|tained h|
|00001f80| 65 72 65 2e 20 54 68 61 | 6e 6b 73 20 61 6c 73 6f |ere. Tha|nks also|
|00001f90| 20 74 6f 20 45 64 75 61 | 72 64 6f 20 4b 72 65 6c | to Edua|rdo Krel|
|00001fa0| 6c 0a 58 3c 65 6b 72 65 | 6c 6c 40 75 6c 79 73 73 |l.X<ekre|ll@ulyss|
|00001fb0| 65 73 2e 61 74 74 2e 63 | 6f 6d 3e 20 66 6f 72 20 |es.att.c|om> for |
|00001fc0| 62 72 69 6e 67 69 6e 67 | 20 74 68 65 20 44 75 70 |bringing| the Dup|
|00001fd0| 75 79 20 76 65 72 73 69 | 6f 6e 20 6f 66 20 6f 66 |uy versi|on of of|
|00001fe0| 69 6c 65 73 20 74 6f 20 | 6d 79 0a 58 61 74 74 65 |iles to |my.Xatte|
|00001ff0| 6e 74 69 6f 6e 2e 0a 58 | 0a 58 0a 58 32 2e 20 54 |ntion..X|.X.X2. T|
|00002000| 68 65 20 6f 66 69 6c 65 | 73 2f 66 73 74 61 74 2f |he ofile|s/fstat/|
|00002010| 70 66 66 20 74 72 65 65 | 0a 58 0a 58 20 20 6f 72 |pff tree|.X.X or|
|00002020| 69 67 69 6e 61 6c 20 6f | 66 69 6c 65 73 0a 58 09 |iginal o|files.X.|
|00002030| 20 7c 0a 58 20 20 6d 6f | 64 69 66 69 65 64 20 6f | |.X mo|dified o|
|00002040| 72 69 67 69 6e 61 6c 20 | 6f 66 69 6c 65 73 20 20 |riginal |ofiles |
|00002050| 66 69 6e 64 2d 66 73 20 | 20 20 42 53 44 20 34 2e |find-fs | BSD 4.|
|00002060| 33 2d 54 61 68 6f 65 20 | 66 73 74 61 74 0a 58 09 |3-Tahoe |fstat.X.|
|00002070| 20 7c 20 20 20 20 20 20 | 20 20 20 20 20 20 20 5c | | | \|
|00002080| 20 20 20 20 20 7c 20 20 | 20 20 20 20 20 20 20 20 | | | |
|00002090| 20 20 20 20 20 20 20 7c | 0a 58 20 20 41 62 65 6c | ||.X Abel|
|000020a0| 6c 20 6f 66 69 6c 65 73 | 20 20 20 20 20 20 44 75 |l ofiles| Du|
|000020b0| 70 75 79 20 6f 66 69 6c | 65 73 20 20 20 20 20 20 |puy ofil|es |
|000020c0| 20 20 41 62 65 6c 6c 20 | 66 73 74 61 74 0a 58 09 | Abell |fstat.X.|
|000020d0| 20 7c 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |
|000020e0| 20 20 20 20 20 7c 20 20 | 20 20 20 20 20 20 20 20 | | | |
|000020f0| 20 20 20 20 20 20 20 7c | 0a 58 20 20 6d 6f 64 69 | ||.X modi|
|00002100| 66 69 65 64 20 41 62 65 | 6c 6c 20 6f 66 69 6c 65 |fied Abe|ll ofile|
|00002110| 73 20 20 20 20 20 20 7c | 20 20 20 20 20 20 20 20 |s || |
|00002120| 43 68 72 69 73 74 69 61 | 6e 73 65 6e 20 66 73 74 |Christia|nsen fst|
|00002130| 61 74 0a 58 09 09 20 20 | 5c 20 20 20 20 20 20 20 |at.X.. |\ |
|00002140| 20 20 20 7c 20 20 20 20 | 20 20 20 20 20 2f 0a 58 | | | /.X|
|00002150| 09 09 20 20 20 2d 2d 2d | 2d 2d 2d 2d 2d 2d 70 66 |.. ---|------pf|
|00002160| 66 2d 2d 2d 2d 2d 2d 2d | 2d 0a 58 0a 58 54 68 65 |f-------|-.X.XThe|
|00002170| 20 6c 69 6e 65 73 20 68 | 65 72 65 20 74 72 61 63 | lines h|ere trac|
|00002180| 65 20 69 64 65 61 73 2c | 20 6e 6f 74 20 6a 75 73 |e ideas,| not jus|
|00002190| 74 20 63 6f 64 65 2e 20 | 70 66 66 20 64 6f 65 73 |t code. |pff does|
|000021a0| 20 6e 6f 74 20 75 73 65 | 20 61 6e 79 20 66 73 74 | not use| any fst|
|000021b0| 61 74 0a 58 63 6f 64 65 | 2c 20 62 75 74 20 69 74 |at.Xcode|, but it|
|000021c0| 20 62 6f 72 72 6f 77 73 | 20 68 65 61 76 69 6c 79 | borrows| heavily|
|000021d0| 20 66 72 6f 6d 20 74 68 | 65 20 66 73 74 61 74 20 | from th|e fstat |
|000021e0| 6f 75 74 70 75 74 20 66 | 6f 72 6d 61 74 2c 20 66 |output f|ormat, f|
|000021f0| 6f 72 20 65 78 61 6d 70 | 6c 65 2e 0a 58 0a 58 0a |or examp|le..X.X.|
|00002200| 58 33 2e 20 57 68 6f 2c | 20 77 68 61 74 2c 20 77 |X3. Who,| what, w|
|00002210| 68 65 6e 0a 58 0a 58 43 | 2e 20 53 70 65 6e 63 65 |hen.X.XC|. Spence|
|00002220| 72 20 3c 3f 3f 3f 20 61 | 74 20 42 42 4e 3e 20 77 |r <??? a|t BBN> w|
|00002230| 72 6f 74 65 20 74 68 65 | 20 6f 72 69 67 69 6e 61 |rote the| origina|
|00002240| 6c 20 6f 66 69 6c 65 73 | 20 66 6f 72 20 42 53 44 |l ofiles| for BSD|
|00002250| 20 34 2e 32 2c 20 61 72 | 6f 75 6e 64 0a 58 4d 61 | 4.2, ar|ound.XMa|
|00002260| 79 20 31 39 38 35 2e 20 | 54 68 69 73 20 69 73 20 |y 1985. |This is |
|00002270| 74 68 65 20 60 60 6f 72 | 69 67 69 6e 61 6c 20 6f |the ``or|iginal o|
|00002280| 66 69 6c 65 73 27 27 20 | 6e 6f 64 65 20 61 62 6f |files'' |node abo|
|00002290| 76 65 2e 0a 58 0a 58 41 | 6c 65 78 61 6e 64 65 72 |ve..X.XA|lexander|
|000022a0| 20 44 75 70 75 79 20 3c | 64 75 70 75 79 40 63 73 | Dupuy <|dupuy@cs|
|000022b0| 2e 63 6f 6c 75 6d 62 69 | 61 2e 65 64 75 3e 20 6d |.columbi|a.edu> m|
|000022c0| 61 69 6e 74 61 69 6e 65 | 64 20 6f 66 69 6c 65 73 |aintaine|d ofiles|
|000022d0| 20 69 6e 20 53 65 70 74 | 65 6d 62 65 72 0a 58 61 | in Sept|ember.Xa|
|000022e0| 6e 64 20 4f 63 74 6f 62 | 65 72 20 31 39 38 38 2e |nd Octob|er 1988.|
|000022f0| 20 48 65 20 69 6e 74 65 | 67 72 61 74 65 64 20 61 | He inte|grated a|
|00002300| 20 76 6e 6f 64 65 20 76 | 65 72 73 69 6f 6e 20 77 | vnode v|ersion w|
|00002310| 69 74 68 20 44 59 4e 49 | 58 20 73 75 70 70 6f 72 |ith DYNI|X suppor|
|00002320| 74 20 66 72 6f 6d 0a 58 | 54 6f 6d 20 44 75 6e 69 |t from.X|Tom Duni|
|00002330| 67 61 6e 20 3c 64 75 6e | 69 67 61 6e 40 6d 73 72 |gan <dun|igan@msr|
|00002340| 2e 65 70 6d 2e 6f 72 6e | 6c 2e 67 6f 76 3e 2c 20 |.epm.orn|l.gov>, |
|00002350| 6d 6f 64 69 66 69 65 64 | 20 69 74 20 74 6f 20 77 |modified| it to w|
|00002360| 6f 72 6b 20 77 69 74 68 | 20 72 65 6d 6f 74 65 0a |ork with| remote.|
|00002370| 58 66 69 6c 65 73 20 61 | 6e 64 20 66 69 6c 65 73 |Xfiles a|nd files|
|00002380| 79 73 74 65 6d 73 2c 20 | 61 64 64 65 64 20 73 75 |ystems, |added su|
|00002390| 70 70 6f 72 74 20 66 6f | 72 20 65 78 61 6d 69 6e |pport fo|r examin|
|000023a0| 69 6e 67 20 74 68 65 20 | 64 65 73 63 72 69 70 74 |ing the |descript|
|000023b0| 6f 72 20 74 61 62 6c 65 | 73 0a 58 6f 66 20 73 65 |or table|s.Xof se|
|000023c0| 6c 65 63 74 65 64 20 70 | 72 6f 63 65 73 73 65 73 |lected p|rocesses|
|000023d0| 2c 20 61 64 64 65 64 20 | 74 65 78 74 20 73 65 67 |, added |text seg|
|000023e0| 6d 65 6e 74 20 73 75 70 | 70 6f 72 74 2c 20 6d 65 |ment sup|port, me|
|000023f0| 72 67 65 64 20 65 6e 68 | 61 6e 63 65 6d 65 6e 74 |rged enh|ancement|
|00002400| 73 0a 58 74 6f 20 74 68 | 65 20 76 6e 6f 64 65 20 |s.Xto th|e vnode |
|00002410| 76 65 72 73 69 6f 6e 20 | 77 69 74 68 20 74 68 65 |version |with the|
|00002420| 20 69 6e 6f 64 65 20 76 | 65 72 73 69 6f 6e 2c 20 | inode v|ersion, |
|00002430| 61 64 64 65 64 20 73 6f | 63 6b 65 74 2d 70 72 69 |added so|cket-pri|
|00002440| 6e 74 69 6e 67 0a 58 6f | 70 74 69 6f 6e 73 20 64 |nting.Xo|ptions d|
|00002450| 6f 6e 65 20 69 6e 20 41 | 75 67 75 73 74 20 31 39 |one in A|ugust 19|
|00002460| 38 38 20 62 79 20 43 72 | 61 69 67 20 4c 65 72 65 |88 by Cr|aig Lere|
|00002470| 73 20 3c 6c 65 72 65 73 | 40 68 65 6c 69 6f 73 2e |s <leres|@helios.|
|00002480| 65 65 2e 6c 62 6c 2e 67 | 6f 76 3e 2c 0a 58 61 6e |ee.lbl.g|ov>,.Xan|
|00002490| 64 20 70 6f 72 74 65 64 | 20 6f 66 69 6c 65 73 20 |d ported| ofiles |
|000024a0| 74 6f 20 55 6c 74 72 69 | 78 20 32 2e 30 2e 0a 58 |to Ultri|x 2.0..X|
|000024b0| 0a 58 41 74 20 73 6f 6d | 65 20 70 6f 69 6e 74 20 |.XAt som|e point |
|000024c0| 28 76 69 7a 2e 2c 20 60 | 60 6d 6f 64 69 66 69 65 |(viz., `|`modifie|
|000024d0| 64 20 6f 72 69 67 69 6e | 61 6c 20 6f 66 69 6c 65 |d origin|al ofile|
|000024e0| 73 27 27 29 2c 20 61 6e | 6f 74 68 65 72 20 76 65 |s''), an|other ve|
|000024f0| 72 73 69 6f 6e 20 6f 66 | 0a 58 6f 66 69 6c 65 73 |rsion of|.Xofiles|
|00002500| 2d 2d 2d 74 68 65 20 60 | 60 41 62 65 6c 6c 20 6f |---the `|`Abell o|
|00002510| 66 69 6c 65 73 27 27 2c | 20 6d 61 69 6e 74 61 69 |files'',| maintai|
|00002520| 6e 65 64 20 62 79 20 56 | 69 63 20 41 62 65 6c 6c |ned by V|ic Abell|
|00002530| 0a 58 3c 61 62 65 40 6d | 61 63 65 2e 63 63 2e 70 |.X<abe@m|ace.cc.p|
|00002540| 75 72 64 75 65 2e 65 64 | 75 3e 2d 2d 2d 73 70 6c |urdue.ed|u>---spl|
|00002550| 69 74 20 6f 66 66 20 74 | 68 65 20 61 62 6f 76 65 |it off t|he above|
|00002560| 20 62 72 61 6e 63 68 2e | 20 53 65 65 20 62 65 6c | branch.| See bel|
|00002570| 6f 77 20 66 6f 72 0a 58 | 66 75 72 74 68 65 72 20 |ow for.X|further |
|00002580| 64 65 74 61 69 6c 73 2e | 0a 58 0a 58 49 6e 20 4a |details.|.X.XIn J|
|00002590| 75 6c 79 20 31 39 39 30 | 20 44 75 70 75 79 20 65 |uly 1990| Dupuy e|
|000025a0| 6c 69 6d 69 6e 61 74 65 | 64 20 74 68 65 20 44 59 |liminate|d the DY|
|000025b0| 4e 49 58 20 73 75 70 70 | 6f 72 74 20 62 75 74 20 |NIX supp|ort but |
|000025c0| 69 6e 74 65 67 72 61 74 | 65 64 20 73 65 76 65 72 |integrat|ed sever|
|000025d0| 61 6c 0a 58 66 75 72 74 | 68 65 72 20 76 65 72 73 |al.Xfurt|her vers|
|000025e0| 69 6f 6e 73 2c 20 69 6e | 63 6c 75 64 69 6e 67 20 |ions, in|cluding |
|000025f0| 61 6e 20 69 6e 69 74 69 | 61 6c 20 53 75 6e 4f 53 |an initi|al SunOS|
|00002600| 20 34 2e 30 20 70 6f 72 | 74 20 62 79 20 47 61 72 | 4.0 por|t by Gar|
|00002610| 79 20 4e 65 62 62 65 74 | 74 0a 58 3c 6c 61 73 74 |y Nebbet|t.X<last|
|00002620| 20 6b 6e 6f 77 6e 20 61 | 64 64 72 65 73 73 20 67 | known a|ddress g|
|00002630| 72 6e 40 73 74 6c 2e 73 | 74 63 2e 63 6f 2e 75 6b |rn@stl.s|tc.co.uk|
|00002640| 3e 20 61 6e 64 20 73 6f | 63 6b 65 74 2d 73 65 61 |> and so|cket-sea|
|00002650| 72 63 68 69 6e 67 20 65 | 6e 68 61 6e 63 65 6d 65 |rching e|nhanceme|
|00002660| 6e 74 73 0a 58 62 79 20 | 56 69 6b 74 6f 72 20 44 |nts.Xby |Viktor D|
|00002670| 75 6b 68 6f 76 6e 69 20 | 3c 76 69 6b 74 6f 72 40 |ukhovni |<viktor@|
|00002680| 73 68 65 61 72 73 6f 6e | 2e 63 6f 6d 3e 2e 20 48 |shearson|.com>. H|
|00002690| 65 20 74 68 65 6e 20 70 | 6f 72 74 65 64 20 6f 66 |e then p|orted of|
|000026a0| 69 6c 65 73 20 74 6f 20 | 61 20 56 41 58 0a 58 72 |iles to |a VAX.Xr|
|000026b0| 75 6e 6e 69 6e 67 20 34 | 2e 33 2b 4e 46 53 20 61 |unning 4|.3+NFS a|
|000026c0| 6e 64 20 66 69 6e 69 73 | 68 65 64 20 69 6e 74 65 |nd finis|hed inte|
|000026d0| 67 72 61 74 69 6e 67 20 | 44 75 6b 68 6f 76 6e 69 |grating |Dukhovni|
|000026e0| 27 73 20 4d 61 79 20 31 | 39 39 30 20 53 75 6e 4f |'s May 1|990 SunO|
|000026f0| 53 20 34 2e 31 0a 58 70 | 6f 72 74 2e 20 54 68 69 |S 4.1.Xp|ort. Thi|
|00002700| 73 20 76 65 72 73 69 6f | 6e 20 77 61 73 20 64 69 |s versio|n was di|
|00002710| 73 74 72 69 62 75 74 65 | 64 2e 20 49 6e 20 6c 61 |stribute|d. In la|
|00002720| 74 65 20 4a 75 6e 65 20 | 31 39 39 30 20 44 75 70 |te June |1990 Dup|
|00002730| 75 79 20 69 6e 74 65 67 | 72 61 74 65 64 20 61 0a |uy integ|rated a.|
|00002740| 58 70 61 74 63 68 20 66 | 72 6f 6d 20 54 69 6d 20 |Xpatch f|rom Tim |
|00002750| 52 6f 73 6d 75 73 20 3c | 74 69 6d 40 70 69 6c 63 |Rosmus <|tim@pilc|
|00002760| 68 75 63 6b 2e 64 61 74 | 61 2d 69 6f 2e 63 6f 6d |huck.dat|a-io.com|
|00002770| 3e 20 74 6f 20 64 69 73 | 74 69 6e 67 75 69 73 68 |> to dis|tinguish|
|00002780| 20 62 65 74 77 65 65 6e | 0a 58 4e 46 53 34 20 76 | between|.XNFS4 v|
|00002790| 6e 6f 64 65 73 20 61 6e | 64 20 53 75 6e 4f 53 20 |nodes an|d SunOS |
|000027a0| 34 27 73 20 4e 46 53 2c | 20 74 6f 20 68 61 6e 64 |4's NFS,| to hand|
|000027b0| 6c 65 20 4d 74 2e 20 58 | 49 4e 55 20 73 79 73 74 |le Mt. X|INU syst|
|000027c0| 65 6d 73 2e 20 54 68 61 | 74 20 76 65 72 73 69 6f |ems. Tha|t versio|
|000027d0| 6e 0a 58 69 73 20 74 68 | 65 20 60 60 44 75 70 75 |n.Xis th|e ``Dupu|
|000027e0| 79 20 6f 66 69 6c 65 73 | 27 27 20 6e 6f 64 65 20 |y ofiles|'' node |
|000027f0| 69 6e 20 74 68 65 20 74 | 72 65 65 2e 0a 58 0a 58 |in the t|ree..X.X|
|00002800| 54 68 65 20 41 62 65 6c | 6c 20 6f 66 69 6c 65 73 |The Abel|l ofiles|
|00002810| 20 67 69 76 65 73 20 63 | 72 65 64 69 74 20 74 6f | gives c|redit to|
|00002820| 20 44 75 6e 69 67 61 6e | 2c 20 44 75 70 75 79 2c | Dunigan|, Dupuy,|
|00002830| 20 4e 65 62 62 65 74 74 | 2c 20 4d 69 63 68 61 65 | Nebbett|, Michae|
|00002840| 6c 20 44 69 74 74 6f 0a | 58 3c 3f 3f 3f 3e 2c 20 |l Ditto.|X<???>, |
|00002850| 61 6e 64 20 52 69 63 68 | 61 72 64 20 54 6f 62 69 |and Rich|ard Tobi|
|00002860| 6e 20 3c 72 69 63 68 61 | 72 64 40 61 69 61 69 2e |n <richa|rd@aiai.|
|00002870| 65 64 2e 61 63 2e 75 6b | 3e 2e 20 20 49 74 20 69 |ed.ac.uk|>. It i|
|00002880| 73 20 6e 6f 74 20 63 6c | 65 61 72 20 77 68 65 6e |s not cl|ear when|
|00002890| 0a 58 74 68 69 73 20 76 | 65 72 73 69 6f 6e 20 73 |.Xthis v|ersion s|
|000028a0| 70 6c 69 74 20 6f 66 66 | 3b 20 69 74 20 6d 61 79 |plit off|; it may|
|000028b0| 20 68 61 76 65 20 62 65 | 65 6e 20 64 69 72 65 63 | have be|en direc|
|000028c0| 74 6c 79 20 66 72 6f 6d | 20 74 68 65 20 6f 72 69 |tly from| the ori|
|000028d0| 67 69 6e 61 6c 0a 58 6f | 66 69 6c 65 73 2c 20 61 |ginal.Xo|files, a|
|000028e0| 73 20 69 74 20 64 6f 65 | 73 20 6e 6f 74 20 73 75 |s it doe|s not su|
|000028f0| 70 70 6f 72 74 20 4e 46 | 53 2e 20 41 62 65 6c 6c |pport NF|S. Abell|
|00002900| 20 74 72 61 63 6b 65 64 | 20 64 6f 77 6e 20 74 68 | tracked| down th|
|00002910| 65 20 61 62 6f 76 65 20 | 6e 61 6d 65 73 3b 0a 58 |e above |names;.X|
|00002920| 74 68 65 79 20 64 69 64 | 20 6e 6f 74 20 28 6e 65 |they did| not (ne|
|00002930| 63 65 73 73 61 72 69 6c | 79 29 20 63 6f 6e 74 72 |cessaril|y) contr|
|00002940| 69 62 75 74 65 20 74 6f | 20 74 68 61 74 20 76 65 |ibute to| that ve|
|00002950| 72 73 69 6f 6e 2e 20 28 | 49 6e 20 66 61 63 74 2c |rsion. (|In fact,|
|00002960| 20 54 6f 62 69 6e 0a 58 | 61 70 70 61 72 65 6e 74 | Tobin.X|apparent|
|00002970| 6c 79 20 64 69 64 20 6e | 6f 74 20 77 6f 72 6b 20 |ly did n|ot work |
|00002980| 6f 6e 20 6f 66 69 6c 65 | 73 3b 20 44 75 70 75 79 |on ofile|s; Dupuy|
|00002990| 20 74 6f 6f 6b 20 74 68 | 65 20 74 65 78 74 20 73 | took th|e text s|
|000029a0| 65 67 6d 65 6e 74 20 73 | 65 61 72 63 68 0a 58 63 |egment s|earch.Xc|
|000029b0| 6f 64 65 20 66 72 6f 6d | 20 54 6f 62 69 6e 27 73 |ode from| Tobin's|
|000029c0| 20 66 69 6e 64 2d 66 73 | 2c 20 77 68 69 63 68 20 | find-fs|, which |
|000029d0| 68 65 20 70 6f 73 74 65 | 64 20 74 6f 20 53 75 6e |he poste|d to Sun|
|000029e0| 2d 53 70 6f 74 73 20 61 | 74 20 73 6f 6d 65 20 70 |-Spots a|t some p|
|000029f0| 6f 69 6e 74 2e 29 0a 58 | 0a 58 41 74 20 74 68 65 |oint.).X|.XAt the|
|00002a00| 20 50 75 72 64 75 65 20 | 55 6e 69 76 65 72 73 69 | Purdue |Universi|
|00002a10| 74 79 20 43 6f 6d 70 75 | 74 65 72 20 43 65 6e 74 |ty Compu|ter Cent|
|00002a20| 65 72 2c 20 4d 69 6b 65 | 20 53 70 69 74 7a 65 72 |er, Mike| Spitzer|
|00002a30| 20 3c 3f 3f 3f 3e 20 70 | 6f 72 74 65 64 0a 58 6f | <???> p|orted.Xo|
|00002a40| 66 69 6c 65 73 20 74 6f | 20 42 53 44 20 34 2e 33 |files to| BSD 4.3|
|00002a50| 20 61 6e 64 20 44 59 4e | 49 58 20 33 2e 30 2e 31 | and DYN|IX 3.0.1|
|00002a60| 5b 32 34 5d 2c 20 52 61 | 79 20 4d 6f 6f 64 79 20 |[24], Ra|y Moody |
|00002a70| 3c 72 61 79 40 6d 61 63 | 65 2e 63 63 2e 70 75 72 |<ray@mac|e.cc.pur|
|00002a80| 64 75 65 2e 65 64 75 3e | 0a 58 61 64 64 65 64 20 |due.edu>|.Xadded |
|00002a90| 63 6f 64 65 20 74 6f 20 | 72 65 70 6f 72 74 20 6f |code to |report o|
|00002aa0| 6e 20 73 68 61 72 65 64 | 20 61 6e 64 20 65 78 63 |n shared| and exc|
|00002ab0| 6c 75 73 69 76 65 20 6c | 6f 63 6b 73 2c 20 56 69 |lusive l|ocks, Vi|
|00002ac0| 6b 20 4c 61 6c 6c 20 3c | 3f 3f 3f 3e 0a 58 61 70 |k Lall <|???>.Xap|
|00002ad0| 70 61 72 65 6e 74 6c 79 | 20 64 69 64 20 73 6f 6d |parently| did som|
|00002ae0| 65 20 70 6f 72 74 73 2c | 20 73 6f 6d 65 62 6f 64 |e ports,| somebod|
|00002af0| 79 20 70 6f 72 74 65 64 | 20 69 74 20 74 6f 20 53 |y ported| it to S|
|00002b00| 75 6e 4f 53 20 34 2e 30 | 20 61 6e 64 20 55 6c 74 |unOS 4.0| and Ult|
|00002b10| 72 69 78 0a 58 32 2e 32 | 2c 20 61 6e 64 20 41 62 |rix.X2.2|, and Ab|
|00002b20| 65 6c 6c 20 61 64 64 65 | 64 20 61 6e 20 6f 70 74 |ell adde|d an opt|
|00002b30| 69 6f 6e 20 74 6f 20 6c | 6f 6f 6b 20 75 70 20 6e |ion to l|ook up n|
|00002b40| 65 74 77 6f 72 6b 20 63 | 6f 6e 6e 65 63 74 69 6f |etwork c|onnectio|
|00002b50| 6e 73 20 62 79 0a 58 70 | 72 6f 74 6f 63 6f 6c 20 |ns by.Xp|rotocol |
|00002b60| 63 6f 6e 74 72 6f 6c 20 | 62 6c 6f 63 6b 20 61 64 |control |block ad|
|00002b70| 64 72 65 73 73 2e 20 54 | 68 69 73 20 62 65 63 61 |dress. T|his beca|
|00002b80| 6d 65 20 74 68 65 20 41 | 62 65 6c 6c 20 6f 66 69 |me the A|bell ofi|
|00002b90| 6c 65 73 2c 20 77 68 69 | 63 68 0a 58 61 70 70 65 |les, whi|ch.Xappe|
|00002ba0| 61 72 65 64 20 6f 6e 20 | 63 6f 6d 70 2e 73 6f 75 |ared on |comp.sou|
|00002bb0| 72 63 65 73 2e 75 6e 69 | 78 20 69 6e 20 76 6f 6c |rces.uni|x in vol|
|00002bc0| 75 6d 65 20 31 38 2e 20 | 57 69 6c 6c 20 43 72 6f |ume 18. |Will Cro|
|00002bd0| 77 64 65 72 0a 58 3c 77 | 69 6c 6c 63 72 40 69 73 |wder.X<w|illcr@is|
|00002be0| 6d 2e 69 73 63 2e 63 6f | 6d 3e 20 70 61 74 63 68 |m.isc.co|m> patch|
|00002bf0| 65 64 20 74 68 65 20 41 | 62 65 6c 6c 20 6f 66 69 |ed the A|bell ofi|
|00002c00| 6c 65 73 20 66 6f 72 20 | 53 75 6e 4f 53 20 34 2e |les for |SunOS 4.|
|00002c10| 31 3b 20 74 68 69 73 2c | 20 61 6e 64 0a 58 61 6e |1; this,| and.Xan|
|00002c20| 79 20 6f 74 68 65 72 20 | 6d 6f 64 69 66 69 63 61 |y other |modifica|
|00002c30| 74 69 6f 6e 73 20 74 6f | 20 74 68 61 74 20 76 65 |tions to| that ve|
|00002c40| 72 73 69 6f 6e 20 61 66 | 74 65 72 20 74 68 65 20 |rsion af|ter the |
|00002c50| 63 6f 6d 70 2e 73 6f 75 | 72 63 65 73 2e 75 6e 69 |comp.sou|rces.uni|
|00002c60| 78 0a 58 72 65 6c 65 61 | 73 65 2c 20 61 70 70 65 |x.Xrelea|se, appe|
|00002c70| 61 72 20 61 74 20 74 68 | 65 20 60 60 6d 6f 64 69 |ar at th|e ``modi|
|00002c80| 66 69 65 64 20 41 62 65 | 6c 6c 20 6f 66 69 6c 65 |fied Abe|ll ofile|
|00002c90| 73 27 27 20 6e 6f 64 65 | 2e 0a 58 0a 58 49 6e 20 |s'' node|..X.XIn |
|00002ca0| 74 68 65 20 6d 65 61 6e | 74 69 6d 65 2c 20 61 6e |the mean|time, an|
|00002cb0| 20 69 6e 64 65 70 65 6e | 64 65 6e 74 20 66 73 74 | indepen|dent fst|
|00002cc0| 61 74 20 70 72 6f 67 72 | 61 6d 20 61 70 70 65 61 |at progr|am appea|
|00002cd0| 72 65 64 20 69 6e 20 42 | 53 44 20 34 2e 33 2d 54 |red in B|SD 4.3-T|
|00002ce0| 61 68 6f 65 0a 58 28 77 | 68 65 6e 3f 29 2e 20 66 |ahoe.X(w|hen?). f|
|00002cf0| 73 74 61 74 20 70 65 72 | 66 6f 72 6d 73 20 6d 75 |stat per|forms mu|
|00002d00| 63 68 20 6f 66 20 74 68 | 65 20 73 61 6d 65 20 66 |ch of th|e same f|
|00002d10| 75 6e 63 74 69 6f 6e 20 | 61 73 20 6f 66 69 6c 65 |unction |as ofile|
|00002d20| 73 20 69 6e 20 61 0a 58 | 73 6f 6d 65 77 68 61 74 |s in a.X|somewhat|
|00002d30| 20 64 69 66 66 65 72 65 | 6e 74 20 77 61 79 2e 20 | differe|nt way. |
|00002d40| 54 68 65 20 34 2e 33 2d | 54 61 68 6f 65 20 76 65 |The 4.3-|Tahoe ve|
|00002d50| 72 73 69 6f 6e 20 64 6f | 65 73 20 6e 6f 74 20 73 |rsion do|es not s|
|00002d60| 75 70 70 6f 72 74 20 4e | 46 53 2e 0a 58 41 62 65 |upport N|FS..XAbe|
|00002d70| 6c 6c 20 70 6f 72 74 65 | 64 20 66 73 74 61 74 20 |ll porte|d fstat |
|00002d80| 74 6f 20 76 61 72 69 6f | 75 73 20 73 79 73 74 65 |to vario|us syste|
|00002d90| 6d 73 20 61 6e 64 20 73 | 65 6e 74 20 69 74 20 74 |ms and s|ent it t|
|00002da0| 6f 20 63 6f 6d 70 2e 73 | 6f 75 72 63 65 73 2e 75 |o comp.s|ources.u|
|00002db0| 6e 69 78 0a 58 76 6f 6c | 75 6d 65 20 31 38 2e 20 |nix.Xvol|ume 18. |
|00002dc0| 54 6f 6d 20 43 68 72 69 | 73 74 69 61 6e 73 65 6e |Tom Chri|stiansen|
|00002dd0| 20 3c 74 63 68 72 69 73 | 74 40 63 6f 6e 76 65 78 | <tchris|t@convex|
|00002de0| 2e 63 6f 6d 3e 20 70 6f | 72 74 65 64 20 69 74 20 |.com> po|rted it |
|00002df0| 74 6f 20 74 68 65 20 43 | 6f 6e 76 65 78 0a 58 61 |to the C|onvex.Xa|
|00002e00| 6e 64 20 61 64 64 65 64 | 20 70 61 72 74 69 61 6c |nd added| partial|
|00002e10| 20 4e 46 53 20 73 75 70 | 70 6f 72 74 20 28 68 69 | NFS sup|port (hi|
|00002e20| 73 20 76 65 72 73 69 6f | 6e 20 64 69 64 6e 27 74 |s versio|n didn't|
|00002e30| 20 64 65 63 6f 64 65 20 | 74 68 65 20 66 69 6c 65 | decode |the file|
|00002e40| 73 79 73 74 65 6d 0a 58 | 66 72 6f 6d 20 2f 65 74 |system.X|from /et|
|00002e50| 63 2f 6d 74 61 62 20 61 | 73 20 74 68 65 20 44 75 |c/mtab a|s the Du|
|00002e60| 70 75 79 20 6f 66 69 6c | 65 73 20 64 6f 65 73 29 |puy ofil|es does)|
|00002e70| 3b 20 6e 6f 74 65 20 74 | 68 61 74 20 73 6f 75 72 |; note t|hat sour|
|00002e80| 63 65 20 74 6f 20 74 68 | 69 73 0a 58 76 65 72 73 |ce to th|is.Xvers|
|00002e90| 69 6f 6e 20 69 73 20 6e | 6f 74 20 61 76 61 69 6c |ion is n|ot avail|
|00002ea0| 61 62 6c 65 20 62 65 63 | 61 75 73 65 20 43 6f 6e |able bec|ause Con|
|00002eb0| 76 65 78 20 69 73 2c 20 | 77 65 6c 6c 2c 20 75 6d |vex is, |well, um|
|00002ec0| 2c 20 73 74 69 6e 67 79 | 2e 0a 58 0a 58 49 6e 20 |, stingy|..X.XIn |
|00002ed0| 4d 61 72 63 68 20 61 6e | 64 20 41 70 72 69 6c 20 |March an|d April |
|00002ee0| 31 39 39 31 2c 20 44 61 | 6e 20 42 65 72 6e 73 74 |1991, Da|n Bernst|
|00002ef0| 65 69 6e 20 3c 62 72 6e | 73 74 6e 64 40 6e 79 75 |ein <brn|stnd@nyu|
|00002f00| 2e 65 64 75 2d 2d 2d 74 | 68 61 74 27 73 20 6d 65 |.edu---t|hat's me|
|00002f10| 3e 0a 58 69 6e 74 65 67 | 72 61 74 65 64 20 74 68 |>.Xinteg|rated th|
|00002f20| 65 20 76 61 72 69 6f 75 | 73 20 76 65 72 73 69 6f |e variou|s versio|
|00002f30| 6e 73 20 6f 66 20 6f 66 | 69 6c 65 73 2c 20 73 74 |ns of of|iles, st|
|00002f40| 6f 6c 65 20 73 6f 6d 65 | 20 69 64 65 61 73 20 28 |ole some| ideas (|
|00002f50| 74 68 6f 75 67 68 20 6e | 6f 74 0a 58 63 6f 64 65 |though n|ot.Xcode|
|00002f60| 29 20 66 72 6f 6d 20 66 | 73 74 61 74 2c 20 61 6e |) from f|stat, an|
|00002f70| 64 20 72 65 77 72 6f 74 | 65 20 6d 6f 73 74 20 6f |d rewrot|e most o|
|00002f80| 66 20 74 68 65 20 70 72 | 6f 67 72 61 6d 20 28 74 |f the pr|ogram (t|
|00002f90| 68 65 20 65 61 73 79 20 | 70 61 72 74 73 29 20 66 |he easy |parts) f|
|00002fa0| 72 6f 6d 0a 58 73 63 72 | 61 74 63 68 2e 20 60 60 |rom.Xscr|atch. ``|
|00002fb0| 70 66 66 27 27 20 28 70 | 72 6f 63 65 73 73 2d 66 |pff'' (p|rocess-f|
|00002fc0| 69 6c 65 2d 66 69 6c 65 | 29 20 68 61 73 20 67 65 |ile-file|) has ge|
|00002fd0| 74 75 73 65 72 28 29 20 | 61 6e 64 20 76 61 72 69 |tuser() |and vari|
|00002fe0| 6f 75 73 20 6f 74 68 65 | 72 0a 58 70 69 65 63 65 |ous othe|r.Xpiece|
|00002ff0| 73 20 6f 66 20 74 68 65 | 20 41 62 65 6c 6c 20 6f |s of the| Abell o|
|00003000| 66 69 6c 65 73 2c 20 6d | 6d 61 70 20 61 6e 64 20 |files, m|map and |
|00003010| 74 65 78 74 20 73 65 67 | 6d 65 6e 74 20 73 75 70 |text seg|ment sup|
|00003020| 70 6f 72 74 20 66 72 6f | 6d 20 74 68 65 20 44 75 |port fro|m the Du|
|00003030| 70 75 79 0a 58 6f 66 69 | 6c 65 73 2c 20 43 6f 6e |puy.Xofi|les, Con|
|00003040| 76 65 78 20 73 75 70 70 | 6f 72 74 20 61 73 20 69 |vex supp|ort as i|
|00003050| 6e 20 74 68 65 20 43 68 | 72 69 73 74 69 61 6e 73 |n the Ch|ristians|
|00003060| 65 6e 20 66 73 74 61 74 | 2c 20 6f 66 66 73 65 74 |en fstat|, offset|
|00003070| 20 72 65 70 6f 72 74 69 | 6e 67 20 61 73 0a 58 69 | reporti|ng as.Xi|
|00003080| 6e 20 66 73 74 61 74 2c | 20 63 6f 6e 74 72 6f 6c |n fstat,| control|
|00003090| 6c 69 6e 67 20 74 74 79 | 73 2c 20 6f 70 65 6e 20 |ling tty|s, open |
|000030a0| 66 69 6c 65 20 66 6c 61 | 67 73 20 28 6c 69 6b 65 |file fla|gs (like|
|000030b0| 20 72 77 61 20 66 6f 72 | 20 72 65 61 64 2c 20 77 | rwa for| read, w|
|000030c0| 72 69 74 65 2c 0a 58 61 | 70 70 65 6e 64 29 2c 20 |rite,.Xa|ppend), |
|000030d0| 76 6e 6f 64 65 20 61 6e | 64 20 64 65 76 69 63 65 |vnode an|d device|
|000030e0| 20 70 72 69 6e 74 69 6e | 67 20 6d 6f 73 74 6c 79 | printin|g mostly|
|000030f0| 20 66 72 6f 6d 20 74 68 | 65 20 44 75 70 75 79 20 | from th|e Dupuy |
|00003100| 6f 66 69 6c 65 73 2c 20 | 4e 46 53 0a 58 73 75 70 |ofiles, |NFS.Xsup|
|00003110| 70 6f 72 74 20 61 73 20 | 69 6e 20 74 68 65 20 44 |port as |in the D|
|00003120| 75 70 75 79 20 6f 66 69 | 6c 65 73 20 61 6e 64 20 |upuy ofi|les and |
|00003130| 74 68 65 20 43 68 72 69 | 73 74 69 61 6e 73 65 6e |the Chri|stiansen|
|00003140| 20 66 73 74 61 74 2c 20 | 73 6f 63 6b 65 74 0a 58 | fstat, |socket.X|
|00003150| 73 65 61 72 63 68 69 6e | 67 20 73 69 6d 69 6c 61 |searchin|g simila|
|00003160| 72 20 74 6f 20 74 68 65 | 20 44 75 70 75 79 20 6f |r to the| Dupuy o|
|00003170| 66 69 6c 65 73 2c 20 61 | 6e 64 20 73 65 76 65 72 |files, a|nd sever|
|00003180| 61 6c 20 6f 75 74 70 75 | 74 20 66 6f 72 6d 61 74 |al outpu|t format|
|00003190| 73 0a 58 69 6d 69 74 61 | 74 69 6e 67 20 74 68 65 |s.Ximita|ting the|
|000031a0| 20 6f 75 74 70 75 74 20 | 66 6f 72 6d 61 74 73 20 | output |formats |
|000031b0| 6f 66 20 74 68 65 20 6f | 6c 64 65 72 20 70 72 6f |of the o|lder pro|
|000031c0| 67 72 61 6d 73 2e 20 70 | 66 66 20 63 61 6e 20 61 |grams. p|ff can a|
|000031d0| 6c 73 6f 20 72 65 70 6f | 72 74 0a 58 70 72 6f 63 |lso repo|rt.Xproc|
|000031e0| 65 73 73 20 73 74 61 74 | 75 73 2c 20 69 6e 63 6c |ess stat|us, incl|
|000031f0| 75 64 69 6e 67 20 72 65 | 73 6f 75 72 63 65 20 75 |uding re|source u|
|00003200| 73 61 67 65 20 61 6e 64 | 20 73 69 67 6e 61 6c 20 |sage and| signal |
|00003210| 68 61 6e 64 6c 69 6e 67 | 2e 0a 58 0a 58 70 66 66 |handling|..X.Xpff|
|00003220| 20 64 6f 65 73 20 2a 6e | 6f 74 2a 20 73 75 70 70 | does *n|ot* supp|
|00003230| 6f 72 74 20 74 68 65 20 | 44 59 4e 49 58 20 63 6f |ort the |DYNIX co|
|00003240| 72 65 20 66 69 6c 65 20 | 72 65 61 64 69 6e 67 20 |re file |reading |
|00003250| 66 72 6f 6d 20 74 68 65 | 20 41 62 65 6c 6c 20 6f |from the| Abell o|
|00003260| 66 69 6c 65 73 2c 0a 58 | 61 6e 79 20 73 6f 72 74 |files,.X|any sort|
|00003270| 20 6f 66 20 64 65 62 75 | 67 67 69 6e 67 20 6f 75 | of debu|gging ou|
|00003280| 74 70 75 74 2c 20 66 69 | 6c 65 20 73 69 7a 65 20 |tput, fi|le size |
|00003290| 72 65 70 6f 72 74 69 6e | 67 20 61 73 20 69 6e 20 |reportin|g as in |
|000032a0| 66 73 74 61 74 2c 20 76 | 61 72 69 6f 75 73 0a 58 |fstat, v|arious.X|
|000032b0| 6e 61 6d 65 20 6c 6f 6f | 6b 75 70 73 20 28 65 2e |name loo|kups (e.|
|000032c0| 67 2e 2c 20 68 6f 73 74 | 6e 61 6d 65 73 2c 20 73 |g., host|names, s|
|000032d0| 65 72 76 69 63 65 73 29 | 2c 20 61 6e 64 20 73 6f |ervices)|, and so|
|000032e0| 63 6b 65 74 20 73 65 61 | 72 63 68 65 73 20 62 79 |cket sea|rches by|
|000032f0| 0a 58 70 72 6f 74 6f 63 | 6f 6c 2e 20 49 74 27 73 |.Xprotoc|ol. It's|
|00003300| 20 61 6c 73 6f 20 72 61 | 74 68 65 72 20 73 68 6f | also ra|ther sho|
|00003310| 64 64 79 20 6f 6e 20 65 | 72 72 6f 72 2d 63 68 65 |ddy on e|rror-che|
|00003320| 63 6b 69 6e 67 2e 20 4f | 74 68 65 72 20 74 68 61 |cking. O|ther tha|
|00003330| 6e 20 74 68 69 73 2c 20 | 70 66 66 0a 58 61 70 70 |n this, |pff.Xapp|
|00003340| 65 61 72 73 20 74 6f 20 | 70 72 6f 76 69 64 65 20 |ears to |provide |
|00003350| 61 6c 6c 20 74 68 65 20 | 66 65 61 74 75 72 65 73 |all the |features|
|00003360| 20 6f 66 20 69 74 73 20 | 61 6e 63 65 73 74 6f 72 | of its |ancestor|
|00003370| 73 2e 20 49 74 20 77 6f | 72 6b 73 20 73 6f 20 66 |s. It wo|rks so f|
|00003380| 61 72 0a 58 75 6e 64 65 | 72 20 55 6c 74 72 69 78 |ar.Xunde|r Ultrix|
|00003390| 20 34 2e 31 2c 20 53 75 | 6e 4f 53 20 34 2e 30 2e | 4.1, Su|nOS 4.0.|
|000033a0| 33 2c 20 53 75 6e 4f 53 | 20 34 2e 31 2c 20 61 6e |3, SunOS| 4.1, an|
|000033b0| 64 20 43 6f 6e 76 65 78 | 20 55 4e 49 58 20 39 2e |d Convex| UNIX 9.|
|000033c0| 30 2e 0a 58 0a 58 49 20 | 64 6f 20 6e 6f 74 20 6b |0..X.XI |do not k|
|000033d0| 6e 6f 77 20 77 68 61 74 | 20 69 6e 74 65 72 65 73 |now what| interes|
|000033e0| 74 20 53 70 65 6e 63 65 | 72 2c 20 44 69 74 74 6f |t Spence|r, Ditto|
|000033f0| 2c 20 44 75 6e 69 67 61 | 6e 2c 20 4c 61 6c 6c 2c |, Duniga|n, Lall,|
|00003400| 20 4e 65 62 62 65 74 74 | 2c 0a 58 52 6f 73 6d 75 | Nebbett|,.XRosmu|
|00003410| 73 2c 20 6f 72 20 53 70 | 69 74 7a 65 72 20 63 75 |s, or Sp|itzer cu|
|00003420| 72 72 65 6e 74 6c 79 20 | 68 61 76 65 20 69 6e 20 |rrently |have in |
|00003430| 74 68 65 20 63 6f 64 65 | 2c 20 73 6f 20 61 73 20 |the code|, so as |
|00003440| 6e 6f 74 65 64 20 69 6e | 20 52 45 41 44 4d 45 0a |noted in| README.|
|00003450| 58 63 65 72 74 61 69 6e | 20 70 61 72 74 73 20 6f |Xcertain| parts o|
|00003460| 66 20 70 66 66 20 6d 69 | 67 68 74 20 6e 6f 74 20 |f pff mi|ght not |
|00003470| 62 65 20 66 72 65 65 6c | 79 20 64 69 73 74 72 69 |be freel|y distri|
|00003480| 62 75 74 61 62 6c 65 2e | 20 54 68 65 20 63 6f 64 |butable.| The cod|
|00003490| 65 20 49 20 77 72 6f 74 | 65 0a 58 66 6f 72 20 74 |e I wrot|e.Xfor t|
|000034a0| 68 69 73 20 70 61 63 6b | 61 67 65 20 69 73 20 61 |his pack|age is a|
|000034b0| 6c 6c 20 70 75 62 6c 69 | 63 2d 64 6f 6d 61 69 6e |ll publi|c-domain|
|000034c0| 2e 0a 45 4e 44 5f 4f 46 | 5f 46 49 4c 45 0a 69 66 |..END_OF|_FILE.if|
|000034d0| 20 74 65 73 74 20 36 31 | 30 31 20 2d 6e 65 20 60 | test 61|01 -ne `|
|000034e0| 77 63 20 2d 63 20 3c 27 | 4f 46 49 4c 45 53 2e 68 |wc -c <'|OFILES.h|
|000034f0| 69 73 74 27 60 3b 20 74 | 68 65 6e 0a 20 20 20 20 |ist'`; t|hen. |
|00003500| 65 63 68 6f 20 73 68 61 | 72 3a 20 5c 22 27 4f 46 |echo sha|r: \"'OF|
|00003510| 49 4c 45 53 2e 68 69 73 | 74 27 5c 22 20 75 6e 70 |ILES.his|t'\" unp|
|00003520| 61 63 6b 65 64 20 77 69 | 74 68 20 77 72 6f 6e 67 |acked wi|th wrong|
|00003530| 20 73 69 7a 65 21 0a 66 | 69 0a 23 20 65 6e 64 20 | size!.f|i.# end |
|00003540| 6f 66 20 27 4f 46 49 4c | 45 53 2e 68 69 73 74 27 |of 'OFIL|ES.hist'|
|00003550| 0a 66 69 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |.fi.if t|est -f '|
|00003560| 61 75 74 68 64 2e 63 27 | 20 2d 61 20 22 24 7b 31 |authd.c'| -a "${1|
|00003570| 7d 22 20 21 3d 20 22 2d | 63 22 20 3b 20 74 68 65 |}" != "-|c" ; the|
|00003580| 6e 20 0a 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |n . ech|o shar: |
|00003590| 57 69 6c 6c 20 6e 6f 74 | 20 63 6c 6f 62 62 65 72 |Will not| clobber|
|000035a0| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 5c | existin|g file \|
|000035b0| 22 27 61 75 74 68 64 2e | 63 27 5c 22 0a 65 6c 73 |"'authd.|c'\".els|
|000035c0| 65 0a 65 63 68 6f 20 73 | 68 61 72 3a 20 45 78 74 |e.echo s|har: Ext|
|000035d0| 72 61 63 74 69 6e 67 20 | 5c 22 27 61 75 74 68 64 |racting |\"'authd|
|000035e0| 2e 63 27 5c 22 20 5c 28 | 34 33 35 35 20 63 68 61 |.c'\" \(|4355 cha|
|000035f0| 72 61 63 74 65 72 73 5c | 29 0a 73 65 64 20 22 73 |racters\|).sed "s|
|00003600| 2f 5e 58 2f 2f 22 20 3e | 27 61 75 74 68 64 2e 63 |/^X//" >|'authd.c|
|00003610| 27 20 3c 3c 27 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |' <<'END|_OF_FILE|
|00003620| 27 0a 58 2f 2a 20 48 69 | 73 74 6f 72 79 3a 0a 58 |'.X/* Hi|story:.X|
|00003630| 35 2f 33 2f 39 31 20 44 | 4a 42 20 61 75 74 68 64 |5/3/91 D|JB authd|
|00003640| 20 76 65 72 73 69 6f 6e | 20 33 2e 35 20 61 6c 70 | version| 3.5 alp|
|00003650| 68 61 2e 0a 58 35 2f 33 | 2f 39 31 20 44 4a 42 20 |ha..X5/3|/91 DJB |
|00003660| 6d 6f 64 69 66 69 65 64 | 20 74 6f 20 6e 6f 74 20 |modified| to not |
|00003670| 63 6f 6d 70 69 6c 65 20 | 77 69 74 68 6f 75 74 20 |compile |without |
|00003680| 48 41 56 45 5f 55 43 52 | 45 44 0a 58 35 2f 31 2f |HAVE_UCR|ED.X5/1/|
|00003690| 39 31 20 44 4a 42 20 62 | 61 73 65 6c 69 6e 65 20 |91 DJB b|aseline |
|000036a0| 70 75 62 6c 69 63 20 64 | 6f 6d 61 69 6e 0a 58 44 |public d|omain.XD|
|000036b0| 65 72 69 76 65 64 20 66 | 72 6f 6d 20 61 75 74 68 |erived f|rom auth|
|000036c0| 64 20 33 2e 30 31 2c 20 | 44 4a 42 2e 0a 58 2a 2f |d 3.01, |DJB..X*/|
|000036d0| 0a 58 0a 58 23 69 6e 63 | 6c 75 64 65 20 22 63 6f |.X.X#inc|lude "co|
|000036e0| 6e 66 68 61 76 65 75 63 | 72 65 64 2e 68 22 0a 58 |nfhaveuc|red.h".X|
|000036f0| 23 69 66 6e 64 65 66 20 | 48 41 56 45 5f 55 43 52 |#ifndef |HAVE_UCR|
|00003700| 45 44 0a 58 65 72 72 6f | 72 21 20 65 72 72 6f 72 |ED.Xerro|r! error|
|00003710| 21 20 65 72 72 6f 72 21 | 20 58 58 58 0a 58 61 75 |! error!| XXX.Xau|
|00003720| 74 68 64 20 77 69 6c 6c | 20 6e 6f 74 20 77 6f 72 |thd will| not wor|
|00003730| 6b 20 6f 6e 20 61 20 73 | 79 73 74 65 6d 20 77 69 |k on a s|ystem wi|
|00003740| 74 68 6f 75 74 20 73 74 | 72 75 63 74 20 75 63 72 |thout st|ruct ucr|
|00003750| 65 64 2e 0a 58 23 65 6e | 64 69 66 0a 58 0a 58 23 |ed..X#en|dif.X.X#|
|00003760| 69 6e 63 6c 75 64 65 20 | 3c 73 74 64 69 6f 2e 68 |include |<stdio.h|
|00003770| 3e 0a 58 23 69 66 64 65 | 66 20 55 53 45 5f 53 59 |>.X#ifde|f USE_SY|
|00003780| 53 4c 4f 47 0a 58 23 69 | 6e 63 6c 75 64 65 20 3c |SLOG.X#i|nclude <|
|00003790| 73 79 73 6c 6f 67 2e 68 | 3e 0a 58 23 65 6e 64 69 |syslog.h|>.X#endi|
|000037a0| 66 0a 58 23 69 6e 63 6c | 75 64 65 20 22 73 74 72 |f.X#incl|ude "str|
|000037b0| 75 63 74 66 69 6c 65 2e | 68 22 0a 58 23 69 6e 63 |uctfile.|h".X#inc|
|000037c0| 6c 75 64 65 20 22 73 74 | 72 75 63 74 75 63 72 65 |lude "st|ructucre|
|000037d0| 64 2e 68 22 0a 58 23 69 | 6e 63 6c 75 64 65 20 22 |d.h".X#i|nclude "|
|000037e0| 73 74 72 75 63 74 69 6e | 70 63 62 2e 68 22 0a 58 |structin|pcb.h".X|
|000037f0| 23 69 6e 63 6c 75 64 65 | 20 22 67 65 74 66 63 72 |#include| "getfcr|
|00003800| 65 64 2e 68 22 0a 58 23 | 69 6e 63 6c 75 64 65 20 |ed.h".X#|include |
|00003810| 22 66 69 6c 65 74 61 62 | 6c 65 2e 68 22 0a 58 23 |"filetab|le.h".X#|
|00003820| 69 6e 63 6c 75 64 65 20 | 22 6e 65 74 69 6e 70 2e |include |"netinp.|
|00003830| 68 22 0a 58 23 69 6e 63 | 6c 75 64 65 20 22 61 75 |h".X#inc|lude "au|
|00003840| 72 65 61 64 2e 68 22 0a | 58 23 69 6e 63 6c 75 64 |read.h".|X#includ|
|00003850| 65 20 22 75 73 65 72 6e | 61 6d 65 2e 68 22 0a 58 |e "usern|ame.h".X|
|00003860| 0a 58 69 6e 74 20 66 6c | 61 67 70 77 6e 61 6d 20 |.Xint fl|agpwnam |
|00003870| 3d 20 30 3b 0a 58 69 6e | 74 20 66 6c 61 67 61 75 |= 0;.Xin|t flagau|
|00003880| 74 68 64 20 3d 20 30 3b | 0a 58 63 68 61 72 20 6c |thd = 0;|.Xchar l|
|00003890| 6f 63 61 6c 70 6f 72 74 | 5b 31 30 5d 3b 0a 58 63 |ocalport|[10];.Xc|
|000038a0| 68 61 72 20 72 65 6d 6f | 74 65 70 6f 72 74 5b 31 |har remo|teport[1|
|000038b0| 30 5d 3b 0a 58 0a 58 7a | 61 70 28 65 72 72 2c 61 |0];.X.Xz|ap(err,a|
|000038c0| 72 67 76 30 29 0a 58 63 | 68 61 72 20 2a 65 72 72 |rgv0).Xc|har *err|
|000038d0| 3b 0a 58 63 68 61 72 20 | 2a 61 72 67 76 30 3b 0a |;.Xchar |*argv0;.|
|000038e0| 58 7b 0a 58 20 69 66 20 | 28 66 6c 61 67 61 75 74 |X{.X if |(flagaut|
|000038f0| 68 64 29 0a 58 20 20 20 | 2f 2a 20 52 65 70 6f 72 |hd).X |/* Repor|
|00003900| 74 69 6e 67 20 65 72 72 | 6f 72 73 20 68 6f 6e 65 |ting err|ors hone|
|00003910| 73 74 6c 79 20 74 6f 20 | 61 20 72 65 6d 6f 74 65 |stly to |a remote|
|00003920| 20 68 6f 73 74 20 63 6f | 75 6c 64 20 64 61 6d 61 | host co|uld dama|
|00003930| 67 65 20 73 65 63 75 72 | 69 74 79 2e 20 2a 2f 0a |ge secur|ity. */.|
|00003940| 58 20 20 20 70 72 69 6e | 74 66 28 22 25 73 2c 20 |X prin|tf("%s, |
|00003950| 25 73 3a 20 45 52 52 4f | 52 3a 20 55 4e 4b 4e 4f |%s: ERRO|R: UNKNO|
|00003960| 57 4e 2d 45 52 52 4f 52 | 5c 72 5c 6e 22 2c 6c 6f |WN-ERROR|\r\n",lo|
|00003970| 63 61 6c 70 6f 72 74 2c | 72 65 6d 6f 74 65 70 6f |calport,|remotepo|
|00003980| 72 74 29 3b 0a 58 20 65 | 6c 73 65 0a 58 20 20 20 |rt);.X e|lse.X |
|00003990| 66 70 72 69 6e 74 66 28 | 73 74 64 65 72 72 2c 22 |fprintf(|stderr,"|
|000039a0| 25 73 3a 20 66 61 74 61 | 6c 3a 20 25 73 5c 6e 22 |%s: fata|l: %s\n"|
|000039b0| 2c 61 72 67 76 30 2c 65 | 72 72 29 3b 0a 58 20 65 |,argv0,e|rr);.X e|
|000039c0| 78 69 74 28 33 37 29 3b | 20 2f 2a 58 58 58 2a 2f |xit(37);| /*XXX*/|
|000039d0| 0a 58 7d 0a 58 0a 58 23 | 64 65 66 69 6e 65 20 5a |.X}.X.X#|define Z|
|000039e0| 41 50 28 65 72 72 29 20 | 7a 61 70 28 65 72 72 2c |AP(err) |zap(err,|
|000039f0| 61 72 67 76 5b 30 5d 29 | 0a 58 0a 58 69 6e 74 20 |argv[0])|.X.Xint |
|00003a00| 6c 6f 63 34 5b 34 5d 3b | 0a 58 69 6e 74 20 72 65 |loc4[4];|.Xint re|
|00003a10| 6d 34 5b 34 5d 3b 0a 58 | 23 64 65 66 69 6e 65 20 |m4[4];.X|#define |
|00003a20| 6c 31 20 6c 6f 63 34 5b | 30 5d 0a 58 23 64 65 66 |l1 loc4[|0].X#def|
|00003a30| 69 6e 65 20 6c 32 20 6c | 6f 63 34 5b 31 5d 0a 58 |ine l2 l|oc4[1].X|
|00003a40| 23 64 65 66 69 6e 65 20 | 6c 33 20 6c 6f 63 34 5b |#define |l3 loc4[|
|00003a50| 32 5d 0a 58 23 64 65 66 | 69 6e 65 20 6c 34 20 6c |2].X#def|ine l4 l|
|00003a60| 6f 63 34 5b 33 5d 0a 58 | 23 64 65 66 69 6e 65 20 |oc4[3].X|#define |
|00003a70| 72 31 20 72 65 6d 34 5b | 30 5d 0a 58 23 64 65 66 |r1 rem4[|0].X#def|
|00003a80| 69 6e 65 20 72 32 20 72 | 65 6d 34 5b 31 5d 0a 58 |ine r2 r|em4[1].X|
|00003a90| 23 64 65 66 69 6e 65 20 | 72 33 20 72 65 6d 34 5b |#define |r3 rem4[|
|00003aa0| 32 5d 0a 58 23 64 65 66 | 69 6e 65 20 72 34 20 72 |2].X#def|ine r4 r|
|00003ab0| 65 6d 34 5b 33 5d 0a 58 | 0a 58 69 6e 74 20 64 6f |em4[3].X|.Xint do|
|00003ac0| 69 74 28 66 70 29 0a 58 | 72 65 67 69 73 74 65 72 |it(fp).X|register|
|00003ad0| 20 73 74 72 75 63 74 20 | 66 69 6c 65 20 2a 66 70 | struct |file *fp|
|00003ae0| 3b 0a 58 7b 0a 58 20 72 | 65 67 69 73 74 65 72 20 |;.X{.X r|egister |
|00003af0| 73 74 72 75 63 74 20 75 | 63 72 65 64 20 2a 75 63 |struct u|cred *uc|
|00003b00| 3b 0a 58 20 72 65 67 69 | 73 74 65 72 20 69 6e 74 |;.X regi|ster int|
|00003b10| 20 75 69 64 3b 0a 58 20 | 63 68 61 72 20 2a 75 6e | uid;.X |char *un|
|00003b20| 3b 0a 58 0a 58 20 75 63 | 20 3d 20 67 65 74 66 63 |;.X.X uc| = getfc|
|00003b30| 72 65 64 28 66 70 29 3b | 0a 58 20 69 66 20 28 21 |red(fp);|.X if (!|
|00003b40| 75 63 29 0a 58 20 20 20 | 72 65 74 75 72 6e 20 2d |uc).X |return -|
|00003b50| 31 3b 0a 58 20 75 69 64 | 20 3d 20 28 69 6e 74 29 |1;.X uid| = (int)|
|00003b60| 20 75 63 2d 3e 63 72 5f | 72 75 69 64 3b 0a 58 20 | uc->cr_|ruid;.X |
|00003b70| 69 66 20 28 66 6c 61 67 | 70 77 6e 61 6d 29 0a 58 |if (flag|pwnam).X|
|00003b80| 20 20 7b 0a 58 20 20 20 | 69 66 20 28 75 69 64 32 | {.X |if (uid2|
|00003b90| 75 73 65 72 6e 61 6d 65 | 28 75 69 64 2c 26 75 6e |username|(uid,&un|
|00003ba0| 29 20 3d 3d 20 31 29 0a | 58 20 20 20 20 20 2f 2a |) == 1).|X /*|
|00003bb0| 20 58 58 58 3a 20 57 65 | 20 64 6f 6e 27 74 20 67 | XXX: We| don't g|
|00003bc0| 69 76 65 20 6f 75 74 20 | 75 73 65 72 69 64 73 20 |ive out |userids |
|00003bd0| 74 68 61 74 20 64 6f 6e | 27 74 20 68 61 76 65 20 |that don|'t have |
|00003be0| 75 73 65 72 6e 61 6d 65 | 73 2e 20 2a 2f 0a 58 20 |username|s. */.X |
|00003bf0| 20 20 20 20 72 65 74 75 | 72 6e 20 2d 31 3b 0a 58 | retu|rn -1;.X|
|00003c00| 20 20 20 69 66 20 28 66 | 6c 61 67 61 75 74 68 64 | if (f|lagauthd|
|00003c10| 29 0a 58 20 20 20 2f 2a | 20 55 4e 49 58 20 69 73 |).X /*| UNIX is|
|00003c20| 20 61 20 74 72 61 64 65 | 6d 61 72 6b 20 6f 66 20 | a trade|mark of |
|00003c30| 41 54 26 54 2e 20 3a 2d | 29 20 2a 2f 0a 58 20 20 |AT&T. :-|) */.X |
|00003c40| 20 2f 2a 20 58 58 58 3a | 20 57 65 20 63 6f 75 6c | /* XXX:| We coul|
|00003c50| 64 20 74 72 79 20 74 6f | 20 72 65 70 6f 72 74 20 |d try to| report |
|00003c60| 55 4e 49 58 20 76 61 72 | 69 61 6e 74 73 20 68 65 |UNIX var|iants he|
|00003c70| 72 65 2e 20 2a 2f 0a 58 | 20 20 20 20 20 70 72 69 |re. */.X| pri|
|00003c80| 6e 74 66 28 22 25 73 2c | 20 25 73 3a 20 55 53 45 |ntf("%s,| %s: USE|
|00003c90| 52 49 44 3a 20 25 73 3a | 20 25 73 5c 72 5c 6e 22 |RID: %s:| %s\r\n"|
|00003ca0| 2c 6c 6f 63 61 6c 70 6f | 72 74 2c 72 65 6d 6f 74 |,localpo|rt,remot|
|00003cb0| 65 70 6f 72 74 2c 22 55 | 4e 49 58 22 2c 75 6e 29 |eport,"U|NIX",un)|
|00003cc0| 3b 0a 58 20 20 20 65 6c | 73 65 0a 58 20 20 20 20 |;.X el|se.X |
|00003cd0| 20 70 72 69 6e 74 66 28 | 22 25 73 5c 6e 22 2c 75 | printf(|"%s\n",u|
|00003ce0| 6e 29 3b 0a 58 20 20 7d | 0a 58 20 65 6c 73 65 0a |n);.X }|.X else.|
|00003cf0| 58 20 20 20 70 72 69 6e | 74 66 28 22 25 64 5c 6e |X prin|tf("%d\n|
|00003d00| 22 2c 75 69 64 29 3b 0a | 58 20 72 65 74 75 72 6e |",uid);.|X return|
|00003d10| 20 30 3b 0a 58 7d 0a 58 | 0a 58 6d 61 69 6e 28 61 | 0;.X}.X|.Xmain(a|
|00003d20| 72 67 63 2c 61 72 67 76 | 29 0a 58 69 6e 74 20 61 |rgc,argv|).Xint a|
|00003d30| 72 67 63 3b 0a 58 63 68 | 61 72 20 2a 61 72 67 76 |rgc;.Xch|ar *argv|
|00003d40| 5b 5d 3b 0a 58 7b 0a 58 | 20 72 65 67 69 73 74 65 |[];.X{.X| registe|
|00003d50| 72 20 73 74 72 75 63 74 | 20 66 69 6c 65 20 2a 78 |r struct| file *x|
|00003d60| 66 69 6c 65 3b 0a 58 20 | 72 65 67 69 73 74 65 72 |file;.X |register|
|00003d70| 20 73 74 72 75 63 74 20 | 66 69 6c 65 20 2a 66 70 | struct |file *fp|
|00003d80| 3b 0a 58 20 72 65 67 69 | 73 74 65 72 20 73 74 72 |;.X regi|ster str|
|00003d90| 75 63 74 20 69 6e 70 63 | 62 20 2a 69 6e 70 3b 0a |uct inpc|b *inp;.|
|00003da0| 58 20 69 6e 74 20 6c 70 | 3b 0a 58 20 69 6e 74 20 |X int lp|;.X int |
|00003db0| 72 70 3b 0a 58 20 0a 58 | 20 69 66 20 28 28 21 73 |rp;.X .X| if ((!s|
|00003dc0| 74 72 63 6d 70 28 61 72 | 67 76 5b 30 5d 2c 22 61 |trcmp(ar|gv[0],"a|
|00003dd0| 75 74 68 64 22 29 29 0a | 58 20 20 7c 7c 20 28 28 |uthd")).|X || ((|
|00003de0| 73 74 72 6c 65 6e 28 61 | 72 67 76 5b 30 5d 29 20 |strlen(a|rgv[0]) |
|00003df0| 3e 3d 20 36 29 0a 58 20 | 20 20 26 26 20 28 21 73 |>= 6).X | && (!s|
|00003e00| 74 72 63 6d 70 28 61 72 | 67 76 5b 30 5d 20 2b 20 |trcmp(ar|gv[0] + |
|00003e10| 73 74 72 6c 65 6e 28 61 | 72 67 76 5b 30 5d 29 20 |strlen(a|rgv[0]) |
|00003e20| 2d 20 36 2c 22 2f 61 75 | 74 68 64 22 29 29 29 29 |- 6,"/au|thd"))))|
|00003e30| 0a 58 20 20 20 66 6c 61 | 67 61 75 74 68 64 20 3d |.X fla|gauthd =|
|00003e40| 20 66 6c 61 67 70 77 6e | 61 6d 20 3d 20 31 3b 0a | flagpwn|am = 1;.|
|00003e50| 58 20 65 6c 73 65 0a 58 | 20 20 20 69 66 20 28 28 |X else.X| if ((|
|00003e60| 21 73 74 72 63 6d 70 28 | 61 72 67 76 5b 30 5d 2c |!strcmp(|argv[0],|
|00003e70| 22 74 63 70 75 6e 61 6d | 65 22 29 29 0a 58 20 20 |"tcpunam|e")).X |
|00003e80| 20 20 7c 7c 20 28 28 73 | 74 72 6c 65 6e 28 61 72 | || ((s|trlen(ar|
|00003e90| 67 76 5b 30 5d 29 20 3e | 3d 20 39 29 0a 58 20 20 |gv[0]) >|= 9).X |
|00003ea0| 20 20 20 26 26 20 28 21 | 73 74 72 63 6d 70 28 61 | && (!|strcmp(a|
|00003eb0| 72 67 76 5b 30 5d 20 2b | 20 73 74 72 6c 65 6e 28 |rgv[0] +| strlen(|
|00003ec0| 61 72 67 76 5b 30 5d 29 | 20 2d 20 39 2c 22 2f 74 |argv[0])| - 9,"/t|
|00003ed0| 63 70 75 6e 61 6d 65 22 | 29 29 29 29 0a 58 20 20 |cpuname"|)))).X |
|00003ee0| 20 20 20 66 6c 61 67 70 | 77 6e 61 6d 20 3d 20 31 | flagp|wnam = 1|
|00003ef0| 3b 0a 58 0a 58 20 69 66 | 20 28 66 6c 61 67 61 75 |;.X.X if| (flagau|
|00003f00| 74 68 64 29 0a 58 20 20 | 7b 0a 58 20 20 20 69 66 |thd).X |{.X if|
|00003f10| 20 28 72 65 61 64 6c 72 | 28 6c 6f 63 61 6c 70 6f | (readlr|(localpo|
|00003f20| 72 74 2c 72 65 6d 6f 74 | 65 70 6f 72 74 2c 6c 6f |rt,remot|eport,lo|
|00003f30| 63 34 2c 72 65 6d 34 2c | 26 6c 70 2c 26 72 70 29 |c4,rem4,|&lp,&rp)|
|00003f40| 20 3d 3d 20 2d 31 29 0a | 58 20 20 20 20 20 65 78 | == -1).|X ex|
|00003f50| 69 74 28 31 29 3b 20 2f | 2a 58 58 58 2a 2f 0a 58 |it(1); /|*XXX*/.X|
|00003f60| 23 69 66 64 65 66 20 55 | 53 45 5f 53 59 53 4c 4f |#ifdef U|SE_SYSLO|
|00003f70| 47 0a 58 20 2f 2a 20 54 | 68 69 73 20 69 73 6e 27 |G.X /* T|his isn'|
|00003f80| 74 20 77 6f 72 74 68 20 | 74 68 65 20 74 69 6d 65 |t worth |the time|
|00003f90| 20 66 6f 72 20 74 68 65 | 20 70 72 6f 63 65 64 75 | for the| procedu|
|00003fa0| 72 65 20 63 61 6c 6c 2c | 20 62 75 74 20 69 66 20 |re call,| but if |
|00003fb0| 79 6f 75 20 77 61 6e 74 | 2e 2e 2e 20 2a 2f 0a 58 |you want|... */.X|
|00003fc0| 20 20 20 73 79 73 6c 6f | 67 28 4c 4f 47 5f 44 45 | syslo|g(LOG_DE|
|00003fd0| 42 55 47 2c 22 61 75 74 | 68 64 3a 20 63 68 65 63 |BUG,"aut|hd: chec|
|00003fe0| 6b 69 6e 67 20 75 70 20 | 6f 6e 20 25 64 2e 25 64 |king up |on %d.%d|
|00003ff0| 2e 25 64 2e 25 64 20 25 | 64 20 25 64 2e 25 64 2e |.%d.%d %|d %d.%d.|
|00004000| 25 64 2e 25 64 20 25 64 | 5c 6e 22 2c 0a 58 20 20 |%d.%d %d|\n",.X |
|00004010| 20 20 20 72 31 2c 72 32 | 2c 72 33 2c 72 34 2c 72 | r1,r2|,r3,r4,r|
|00004020| 70 2c 6c 31 2c 6c 32 2c | 6c 33 2c 6c 34 2c 6c 70 |p,l1,l2,|l3,l4,lp|
|00004030| 29 3b 0a 58 23 65 6e 64 | 69 66 0a 58 20 20 7d 0a |);.X#end|if.X }.|
|00004040| 58 20 65 6c 73 65 0a 58 | 20 20 7b 0a 58 20 20 20 |X else.X| {.X |
|00004050| 69 66 20 28 61 72 67 63 | 20 3c 20 34 29 0a 58 20 |if (argc| < 4).X |
|00004060| 20 20 20 20 5a 41 50 28 | 22 6e 65 65 64 20 66 6f | ZAP(|"need fo|
|00004070| 75 72 20 61 72 67 75 6d | 65 6e 74 73 22 29 3b 0a |ur argum|ents");.|
|00004080| 58 20 20 20 69 66 20 28 | 73 73 63 61 6e 66 28 61 |X if (|sscanf(a|
|00004090| 72 67 76 5b 31 5d 2c 22 | 25 64 2e 25 64 2e 25 64 |rgv[1],"|%d.%d.%d|
|000040a0| 2e 25 64 22 2c 26 72 31 | 2c 26 72 32 2c 26 72 33 |.%d",&r1|,&r2,&r3|
|000040b0| 2c 26 72 34 29 20 3c 20 | 34 29 0a 58 20 20 20 20 |,&r4) < |4).X |
|000040c0| 20 5a 41 50 28 22 61 72 | 67 20 31 20 6d 75 73 74 | ZAP("ar|g 1 must|
|000040d0| 20 62 65 20 61 2e 62 2e | 63 2e 64 22 29 3b 0a 58 | be a.b.|c.d");.X|
|000040e0| 20 20 20 69 66 20 28 73 | 73 63 61 6e 66 28 61 72 | if (s|scanf(ar|
|000040f0| 67 76 5b 32 5d 2c 22 25 | 64 22 2c 26 72 70 29 20 |gv[2],"%|d",&rp) |
|00004100| 3c 20 31 29 0a 58 20 20 | 20 20 20 5a 41 50 28 22 |< 1).X | ZAP("|
|00004110| 61 72 67 20 32 20 6d 75 | 73 74 20 62 65 20 69 6e |arg 2 mu|st be in|
|00004120| 74 65 67 65 72 22 29 3b | 0a 58 20 20 20 69 66 20 |teger");|.X if |
|00004130| 28 73 73 63 61 6e 66 28 | 61 72 67 76 5b 33 5d 2c |(sscanf(|argv[3],|
|00004140| 22 25 64 2e 25 64 2e 25 | 64 2e 25 64 22 2c 26 6c |"%d.%d.%|d.%d",&l|
|00004150| 31 2c 26 6c 32 2c 26 6c | 33 2c 26 6c 34 29 20 3c |1,&l2,&l|3,&l4) <|
|00004160| 20 34 29 0a 58 20 20 20 | 20 20 5a 41 50 28 22 61 | 4).X | ZAP("a|
|00004170| 72 67 20 33 20 6d 75 73 | 74 20 62 65 20 61 2e 62 |rg 3 mus|t be a.b|
|00004180| 2e 63 2e 64 22 29 3b 0a | 58 20 20 20 69 66 20 28 |.c.d");.|X if (|
|00004190| 73 73 63 61 6e 66 28 61 | 72 67 76 5b 34 5d 2c 22 |sscanf(a|rgv[4],"|
|000041a0| 25 64 22 2c 26 6c 70 29 | 20 3c 20 31 29 0a 58 20 |%d",&lp)| < 1).X |
|000041b0| 20 20 20 20 5a 41 50 28 | 22 61 72 67 20 34 20 6d | ZAP(|"arg 4 m|
|000041c0| 75 73 74 20 62 65 20 69 | 6e 74 65 67 65 72 22 29 |ust be i|nteger")|
|000041d0| 3b 0a 58 20 20 7d 0a 58 | 0a 58 20 69 66 20 28 6e |;.X }.X|.X if (n|
|000041e0| 65 74 69 6e 70 69 6e 69 | 74 28 72 31 2c 72 32 2c |etinpini|t(r1,r2,|
|000041f0| 72 33 2c 72 34 2c 72 70 | 29 20 3d 3d 20 2d 31 29 |r3,r4,rp|) == -1)|
|00004200| 0a 58 20 20 20 5a 41 50 | 28 22 63 61 6e 6e 6f 74 |.X ZAP|("cannot|
|00004210| 20 69 6e 69 74 20 6e 65 | 74 73 74 61 74 22 29 3b | init ne|tstat");|
|00004220| 0a 58 20 69 66 20 28 66 | 69 6c 65 74 61 62 6c 65 |.X if (f|iletable|
|00004230| 69 6e 69 74 28 29 20 3d | 3d 20 2d 31 29 0a 58 20 |init() =|= -1).X |
|00004240| 20 20 5a 41 50 28 22 63 | 61 6e 6e 6f 74 20 69 6e | ZAP("c|annot in|
|00004250| 69 74 20 73 70 61 63 65 | 20 66 6f 72 20 66 69 6c |it space| for fil|
|00004260| 65 20 74 61 62 6c 65 22 | 29 3b 0a 58 0a 58 20 78 |e table"|);.X.X x|
|00004270| 66 69 6c 65 20 3d 20 67 | 65 74 66 69 6c 65 74 61 |file = g|etfileta|
|00004280| 62 6c 65 28 29 3b 0a 58 | 20 69 66 20 28 21 78 66 |ble();.X| if (!xf|
|00004290| 69 6c 65 29 0a 58 20 20 | 20 5a 41 50 28 22 63 61 |ile).X | ZAP("ca|
|000042a0| 6e 6e 6f 74 20 67 65 74 | 20 66 69 6c 65 20 74 61 |nnot get| file ta|
|000042b0| 62 6c 65 22 29 3b 0a 58 | 0a 58 20 77 68 69 6c 65 |ble");.X|.X while|
|000042c0| 20 28 69 6e 70 20 3d 20 | 6e 65 78 74 6e 65 74 69 | (inp = |nextneti|
|000042d0| 6e 70 28 29 29 0a 58 20 | 20 7b 0a 58 2f 2a 20 43 |np()).X | {.X/* C|
|000042e0| 75 72 73 65 64 20 62 65 | 20 43 6f 6e 76 65 78 20 |ursed be| Convex |
|000042f0| 61 6e 64 20 74 68 65 20 | 6f 74 68 65 72 20 6d 61 |and the |other ma|
|00004300| 6e 75 66 61 63 74 75 72 | 65 72 73 20 77 68 6f 20 |nufactur|ers who |
|00004310| 6d 61 6b 65 20 74 68 69 | 73 20 63 6f 64 65 20 2a |make thi|s code *|
|00004320| 2f 0a 58 2f 2a 20 6e 65 | 61 72 6c 79 20 69 6d 70 |/.X/* ne|arly imp|
|00004330| 6f 73 73 69 62 6c 65 20 | 74 6f 20 77 72 69 74 65 |ossible |to write|
|00004340| 20 77 69 74 68 20 61 6e | 79 20 70 72 65 74 65 6e | with an|y preten|
|00004350| 73 65 20 6f 66 20 70 6f | 72 74 61 62 69 6c 69 74 |se of po|rtabilit|
|00004360| 79 2e 20 2a 2f 0a 58 20 | 20 20 69 66 28 28 28 28 |y. */.X | if((((|
|00004370| 63 68 61 72 20 2a 29 20 | 26 69 6e 70 2d 3e 69 6e |char *) |&inp->in|
|00004380| 70 5f 66 61 64 64 72 29 | 5b 33 5d 20 3d 3d 20 28 |p_faddr)|[3] == (|
|00004390| 63 68 61 72 29 20 72 34 | 29 0a 58 20 20 20 20 26 |char) r4|).X &|
|000043a0| 26 28 28 28 63 68 61 72 | 20 2a 29 20 26 69 6e 70 |&(((char| *) &inp|
|000043b0| 2d 3e 69 6e 70 5f 6c 61 | 64 64 72 29 5b 33 5d 20 |->inp_la|ddr)[3] |
|000043c0| 3d 3d 20 28 63 68 61 72 | 29 20 6c 34 29 0a 58 20 |== (char|) l4).X |
|000043d0| 20 20 20 26 26 28 28 28 | 63 68 61 72 20 2a 29 20 | &&(((|char *) |
|000043e0| 26 69 6e 70 2d 3e 69 6e | 70 5f 66 61 64 64 72 29 |&inp->in|p_faddr)|
|000043f0| 5b 32 5d 20 3d 3d 20 28 | 63 68 61 72 29 20 72 33 |[2] == (|char) r3|
|00004400| 29 0a 58 20 20 20 20 26 | 26 28 28 28 63 68 61 72 |).X &|&(((char|
|00004410| 20 2a 29 20 26 69 6e 70 | 2d 3e 69 6e 70 5f 6c 61 | *) &inp|->inp_la|
|00004420| 64 64 72 29 5b 32 5d 20 | 3d 3d 20 28 63 68 61 72 |ddr)[2] |== (char|
|00004430| 29 20 6c 33 29 0a 58 20 | 20 20 20 26 26 28 28 28 |) l3).X | &&(((|
|00004440| 63 68 61 72 20 2a 29 20 | 26 69 6e 70 2d 3e 69 6e |char *) |&inp->in|
|00004450| 70 5f 66 61 64 64 72 29 | 5b 31 5d 20 3d 3d 20 28 |p_faddr)|[1] == (|
|00004460| 63 68 61 72 29 20 72 32 | 29 0a 58 20 20 20 20 26 |char) r2|).X &|
|00004470| 26 28 28 28 63 68 61 72 | 20 2a 29 20 26 69 6e 70 |&(((char| *) &inp|
|00004480| 2d 3e 69 6e 70 5f 6c 61 | 64 64 72 29 5b 31 5d 20 |->inp_la|ddr)[1] |
|00004490| 3d 3d 20 28 63 68 61 72 | 29 20 6c 32 29 0a 58 20 |== (char|) l2).X |
|000044a0| 20 20 20 26 26 28 28 28 | 63 68 61 72 20 2a 29 20 | &&(((|char *) |
|000044b0| 26 69 6e 70 2d 3e 69 6e | 70 5f 66 61 64 64 72 29 |&inp->in|p_faddr)|
|000044c0| 5b 30 5d 20 3d 3d 20 28 | 63 68 61 72 29 20 72 31 |[0] == (|char) r1|
|000044d0| 29 0a 58 20 20 20 20 26 | 26 28 28 28 63 68 61 72 |).X &|&(((char|
|000044e0| 20 2a 29 20 26 69 6e 70 | 2d 3e 69 6e 70 5f 6c 61 | *) &inp|->inp_la|
|000044f0| 64 64 72 29 5b 30 5d 20 | 3d 3d 20 28 63 68 61 72 |ddr)[0] |== (char|
|00004500| 29 20 6c 31 29 0a 58 20 | 20 20 20 26 26 28 69 6e |) l1).X | &&(in|
|00004510| 70 2d 3e 69 6e 70 5f 66 | 70 6f 72 74 20 3d 3d 20 |p->inp_f|port == |
|00004520| 68 74 6f 6e 73 28 28 75 | 6e 73 69 67 6e 65 64 20 |htons((u|nsigned |
|00004530| 73 68 6f 72 74 29 20 72 | 70 29 29 0a 58 20 20 20 |short) r|p)).X |
|00004540| 20 26 26 28 69 6e 70 2d | 3e 69 6e 70 5f 6c 70 6f | &&(inp-|>inp_lpo|
|00004550| 72 74 20 3d 3d 20 68 74 | 6f 6e 73 28 28 75 6e 73 |rt == ht|ons((uns|
|00004560| 69 67 6e 65 64 20 73 68 | 6f 72 74 29 20 6c 70 29 |igned sh|ort) lp)|
|00004570| 29 0a 58 20 20 20 29 0a | 58 20 20 20 2f 2a 20 49 |).X ).|X /* I|
|00004580| 73 20 69 74 20 77 6f 72 | 74 68 20 73 6e 61 72 66 |s it wor|th snarf|
|00004590| 69 6e 67 20 74 68 65 20 | 73 6f 63 6b 65 74 20 61 |ing the |socket a|
|000045a0| 6e 64 20 63 68 65 63 6b | 69 6e 67 20 74 68 61 74 |nd check|ing that|
|000045b0| 20 69 74 20 70 6f 69 6e | 74 73 20 62 61 63 6b 20 | it poin|ts back |
|000045c0| 2a 2f 0a 58 20 20 20 2f | 2a 20 74 6f 20 69 6e 70 |*/.X /|* to inp|
|000045d0| 3f 20 4e 6f 2c 20 62 65 | 63 61 75 73 65 20 74 68 |? No, be|cause th|
|000045e0| 65 6e 20 77 65 20 68 61 | 76 65 20 74 6f 20 77 6f |en we ha|ve to wo|
|000045f0| 72 72 79 20 61 62 6f 75 | 74 20 73 79 73 2f 73 6f |rry abou|t sys/so|
|00004600| 63 6b 65 74 76 61 72 2e | 68 2c 20 2a 2f 0a 58 20 |cketvar.|h, */.X |
|00004610| 20 20 2f 2a 20 69 6e 63 | 6c 75 64 69 6e 67 20 73 | /* inc|luding s|
|00004620| 79 73 2f 6d 62 75 66 2e | 68 20 6f 6e 20 61 20 43 |ys/mbuf.|h on a C|
|00004630| 6f 6e 76 65 78 20 61 6e | 64 20 6d 61 79 62 65 20 |onvex an|d maybe |
|00004640| 6f 74 68 65 72 20 6d 61 | 63 68 69 6e 65 73 2c 20 |other ma|chines, |
|00004650| 65 74 63 2e 20 2a 2f 0a | 58 20 20 20 2f 2a 20 53 |etc. */.|X /* S|
|00004660| 6f 6d 65 74 69 6d 65 73 | 20 70 6f 72 74 61 62 69 |ometimes| portabi|
|00004670| 6c 69 74 79 20 67 65 74 | 73 20 69 6e 20 74 68 65 |lity get|s in the|
|00004680| 20 77 61 79 20 6f 66 20 | 65 76 65 72 79 74 68 69 | way of |everythi|
|00004690| 6e 67 20 65 6c 73 65 2e | 20 2a 2f 0a 58 20 20 20 |ng else.| */.X |
|000046a0| 20 20 66 6f 72 20 28 66 | 70 20 3d 20 78 66 69 6c | for (f|p = xfil|
|000046b0| 65 3b 66 70 20 3c 20 78 | 66 69 6c 65 20 2b 20 6d |e;fp < x|file + m|
|000046c0| 79 6e 66 69 6c 65 3b 2b | 2b 66 70 29 0a 58 20 20 |ynfile;+|+fp).X |
|000046d0| 20 20 20 20 20 69 66 20 | 28 66 70 2d 3e 66 5f 63 | if |(fp->f_c|
|000046e0| 6f 75 6e 74 20 26 26 20 | 28 66 70 2d 3e 66 5f 74 |ount && |(fp->f_t|
|000046f0| 79 70 65 20 3d 3d 20 44 | 54 59 50 45 5f 53 4f 43 |ype == D|TYPE_SOC|
|00004700| 4b 45 54 29 29 0a 58 20 | 20 20 20 20 20 20 20 20 |KET)).X | |
|00004710| 69 66 20 28 28 63 68 61 | 72 20 2a 29 20 66 70 2d |if ((cha|r *) fp-|
|00004720| 3e 66 5f 64 61 74 61 20 | 3d 3d 20 28 63 68 61 72 |>f_data |== (char|
|00004730| 20 2a 29 20 69 6e 70 2d | 3e 69 6e 70 5f 73 6f 63 | *) inp-|>inp_soc|
|00004740| 6b 65 74 29 0a 58 09 20 | 20 7b 0a 58 09 20 20 20 |ket).X. | {.X. |
|00004750| 69 66 20 28 64 6f 69 74 | 28 66 70 29 20 3d 3d 20 |if (doit|(fp) == |
|00004760| 2d 31 29 0a 58 09 20 20 | 20 20 20 5a 41 50 28 22 |-1).X. | ZAP("|
|00004770| 63 61 6e 6e 6f 74 20 67 | 65 74 20 75 73 65 72 69 |cannot g|et useri|
|00004780| 64 22 29 3b 0a 58 09 20 | 20 20 65 78 69 74 28 30 |d");.X. | exit(0|
|00004790| 29 3b 0a 58 09 20 20 7d | 0a 58 20 20 7d 0a 58 20 |);.X. }|.X }.X |
|000047a0| 5a 41 50 28 22 6e 6f 20 | 73 75 63 68 20 54 43 50 |ZAP("no |such TCP|
|000047b0| 20 63 6f 6e 6e 65 63 74 | 69 6f 6e 22 29 3b 0a 58 | connect|ion");.X|
|000047c0| 20 65 78 69 74 28 31 29 | 3b 0a 58 7d 0a 45 4e 44 | exit(1)|;.X}.END|
|000047d0| 5f 4f 46 5f 46 49 4c 45 | 0a 69 66 20 74 65 73 74 |_OF_FILE|.if test|
|000047e0| 20 34 33 35 35 20 2d 6e | 65 20 60 77 63 20 2d 63 | 4355 -n|e `wc -c|
|000047f0| 20 3c 27 61 75 74 68 64 | 2e 63 27 60 3b 20 74 68 | <'authd|.c'`; th|
|00004800| 65 6e 0a 20 20 20 20 65 | 63 68 6f 20 73 68 61 72 |en. e|cho shar|
|00004810| 3a 20 5c 22 27 61 75 74 | 68 64 2e 63 27 5c 22 20 |: \"'aut|hd.c'\" |
|00004820| 75 6e 70 61 63 6b 65 64 | 20 77 69 74 68 20 77 72 |unpacked| with wr|
|00004830| 6f 6e 67 20 73 69 7a 65 | 21 0a 66 69 0a 23 20 65 |ong size|!.fi.# e|
|00004840| 6e 64 20 6f 66 20 27 61 | 75 74 68 64 2e 63 27 0a |nd of 'a|uthd.c'.|
|00004850| 66 69 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 66 |fi.if te|st -f 'f|
|00004860| 69 6e 64 69 6e 6f 64 65 | 2f 52 45 41 44 4d 45 27 |indinode|/README'|
|00004870| 20 2d 61 20 22 24 7b 31 | 7d 22 20 21 3d 20 22 2d | -a "${1|}" != "-|
|00004880| 63 22 20 3b 20 74 68 65 | 6e 20 0a 20 20 65 63 68 |c" ; the|n . ech|
|00004890| 6f 20 73 68 61 72 3a 20 | 57 69 6c 6c 20 6e 6f 74 |o shar: |Will not|
|000048a0| 20 63 6c 6f 62 62 65 72 | 20 65 78 69 73 74 69 6e | clobber| existin|
|000048b0| 67 20 66 69 6c 65 20 5c | 22 27 66 69 6e 64 69 6e |g file \|"'findin|
|000048c0| 6f 64 65 2f 52 45 41 44 | 4d 45 27 5c 22 0a 65 6c |ode/READ|ME'\".el|
|000048d0| 73 65 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 45 78 |se.echo |shar: Ex|
|000048e0| 74 72 61 63 74 69 6e 67 | 20 5c 22 27 66 69 6e 64 |tracting| \"'find|
|000048f0| 69 6e 6f 64 65 2f 52 45 | 41 44 4d 45 27 5c 22 20 |inode/RE|ADME'\" |
|00004900| 5c 28 34 32 37 30 20 63 | 68 61 72 61 63 74 65 72 |\(4270 c|haracter|
|00004910| 73 5c 29 0a 73 65 64 20 | 22 73 2f 5e 58 2f 2f 22 |s\).sed |"s/^X//"|
|00004920| 20 3e 27 66 69 6e 64 69 | 6e 6f 64 65 2f 52 45 41 | >'findi|node/REA|
|00004930| 44 4d 45 27 20 3c 3c 27 | 45 4e 44 5f 4f 46 5f 46 |DME' <<'|END_OF_F|
|00004940| 49 4c 45 27 0a 58 66 69 | 6e 64 69 6e 6f 64 65 20 |ILE'.Xfi|ndinode |
|00004950| 2d 20 66 69 6e 64 20 61 | 6c 6c 20 66 69 6c 65 6e |- find a|ll filen|
|00004960| 61 6d 65 73 20 77 69 74 | 68 20 61 20 67 69 76 65 |ames wit|h a give|
|00004970| 6e 20 28 64 65 76 2c 69 | 6e 6f 64 65 29 20 70 61 |n (dev,i|node) pa|
|00004980| 69 72 0a 58 0a 58 54 68 | 65 20 65 6e 74 69 72 65 |ir.X.XTh|e entire|
|00004990| 20 70 75 72 70 6f 73 65 | 20 6f 66 20 74 68 69 73 | purpose| of this|
|000049a0| 20 70 61 63 6b 61 67 65 | 20 69 73 20 74 6f 20 67 | package| is to g|
|000049b0| 69 76 65 20 79 6f 75 20 | 61 20 66 61 73 74 20 6d |ive you |a fast m|
|000049c0| 61 70 70 69 6e 67 20 66 | 72 6f 6d 0a 58 64 65 76 |apping f|rom.Xdev|
|000049d0| 69 63 65 20 61 6e 64 20 | 69 6e 6f 64 65 20 6e 75 |ice and |inode nu|
|000049e0| 6d 62 65 72 20 74 6f 20 | 66 69 6c 65 6e 61 6d 65 |mber to |filename|
|000049f0| 28 73 29 2c 20 69 2e 65 | 2e 2c 20 61 20 72 65 76 |(s), i.e|., a rev|
|00004a00| 65 72 73 65 20 6e 61 6d | 65 69 2e 20 49 74 20 77 |erse nam|ei. It w|
|00004a10| 6f 72 6b 73 0a 58 62 79 | 20 6b 65 65 70 69 6e 67 |orks.Xby| keeping|
|00004a20| 20 61 20 64 61 74 61 62 | 61 73 65 20 73 68 6f 77 | a datab|ase show|
|00004a30| 69 6e 67 20 61 6c 6c 20 | 64 69 72 65 63 74 6f 72 |ing all |director|
|00004a40| 69 65 73 20 63 6f 6e 74 | 61 69 6e 69 6e 67 20 65 |ies cont|aining e|
|00004a50| 61 63 68 20 69 6e 6f 64 | 65 2e 20 41 0a 58 64 61 |ach inod|e. A.Xda|
|00004a60| 65 6d 6f 6e 20 72 75 6e | 73 20 63 6f 6e 74 69 6e |emon run|s contin|
|00004a70| 75 6f 75 73 6c 79 20 74 | 6f 20 6d 61 69 6e 74 61 |uously t|o mainta|
|00004a80| 69 6e 20 74 68 69 73 20 | 64 61 74 61 62 61 73 65 |in this |database|
|00004a90| 2e 20 54 68 65 20 61 63 | 63 75 72 61 63 79 20 6f |. The ac|curacy o|
|00004aa0| 66 0a 58 66 69 6e 64 69 | 6e 6f 64 65 27 73 20 61 |f.Xfindi|node's a|
|00004ab0| 6e 73 77 65 72 73 20 64 | 65 70 65 6e 64 73 20 6f |nswers d|epends o|
|00004ac0| 6e 20 68 6f 77 20 6d 75 | 63 68 20 43 50 55 20 74 |n how mu|ch CPU t|
|00004ad0| 69 6d 65 20 79 6f 75 20 | 67 69 76 65 20 74 68 65 |ime you |give the|
|00004ae0| 20 64 61 65 6d 6f 6e 2e | 0a 58 4e 6f 74 65 20 74 | daemon.|.XNote t|
|00004af0| 68 61 74 20 66 69 6e 64 | 69 6e 6f 64 65 20 77 69 |hat find|inode wi|
|00004b00| 6c 6c 20 61 6c 77 61 79 | 73 20 64 65 74 65 63 74 |ll alway|s detect|
|00004b10| 20 77 68 65 6e 20 69 74 | 20 63 61 6e 6e 6f 74 20 | when it| cannot |
|00004b20| 70 72 6f 76 69 64 65 20 | 61 6e 0a 58 61 63 63 75 |provide |an.Xaccu|
|00004b30| 72 61 74 65 20 61 6e 73 | 77 65 72 2e 20 49 74 20 |rate ans|wer. It |
|00004b40| 61 6c 73 6f 20 72 65 66 | 75 73 65 73 20 74 6f 20 |also ref|uses to |
|00004b50| 64 69 76 75 6c 67 65 20 | 66 69 6c 65 6e 61 6d 65 |divulge |filename|
|00004b60| 73 20 69 6e 73 69 64 65 | 20 70 72 6f 74 65 63 74 |s inside| protect|
|00004b70| 65 64 0a 58 64 69 72 65 | 63 74 6f 72 69 65 73 20 |ed.Xdire|ctories |
|00004b80| 74 6f 20 61 6e 79 6f 6e | 65 20 65 78 63 65 70 74 |to anyon|e except|
|00004b90| 20 74 68 65 20 6f 77 6e | 65 72 20 28 6f 72 20 72 | the own|er (or r|
|00004ba0| 6f 6f 74 2c 20 6f 66 20 | 63 6f 75 72 73 65 29 2e |oot, of |course).|
|00004bb0| 0a 58 0a 58 45 78 61 6d | 70 6c 65 3a 20 4f 6e 65 |.X.XExam|ple: One|
|00004bc0| 20 73 79 73 74 65 6d 20 | 68 65 72 65 20 68 61 73 | system |here has|
|00004bd0| 20 61 62 6f 75 74 20 31 | 2e 38 47 42 20 64 69 73 | about 1|.8GB dis|
|00004be0| 6b 20 73 70 61 63 65 20 | 77 69 74 68 20 31 2e 34 |k space |with 1.4|
|00004bf0| 47 42 20 75 73 65 64 20 | 28 61 6e 64 0a 58 30 2e |GB used |(and.X0.|
|00004c00| 32 47 42 20 72 65 73 65 | 72 76 65 64 20 66 6f 72 |2GB rese|rved for|
|00004c10| 20 74 68 65 20 73 79 73 | 74 65 6d 20 61 73 20 75 | the sys|tem as u|
|00004c20| 73 75 61 6c 29 2c 20 73 | 70 72 65 61 64 20 6f 76 |sual), s|pread ov|
|00004c30| 65 72 20 34 39 30 30 30 | 20 69 6e 6f 64 65 73 20 |er 49000| inodes |
|00004c40| 69 6e 0a 58 32 34 30 30 | 20 64 69 72 65 63 74 6f |in.X2400| directo|
|00004c50| 72 69 65 73 2e 20 54 68 | 65 20 66 69 6e 64 69 6e |ries. Th|e findin|
|00004c60| 6f 64 65 20 64 61 74 61 | 62 61 73 65 20 74 61 6b |ode data|base tak|
|00004c70| 65 73 20 61 20 6d 65 72 | 65 20 36 2e 31 4d 42 2c |es a mer|e 6.1MB,|
|00004c80| 20 6f 72 20 75 6e 64 65 | 72 0a 58 68 61 6c 66 20 | or unde|r.Xhalf |
|00004c90| 61 20 70 65 72 63 65 6e | 74 20 6f 66 20 74 68 65 |a percen|t of the|
|00004ca0| 20 74 6f 74 61 6c 20 64 | 69 73 6b 20 73 70 61 63 | total d|isk spac|
|00004cb0| 65 2e 20 66 69 6e 64 20 | 2f 20 2d 74 79 70 65 20 |e. find |/ -type |
|00004cc0| 64 20 74 61 6b 65 73 20 | 39 30 20 73 65 63 6f 6e |d takes |90 secon|
|00004cd0| 64 73 3b 0a 58 74 68 65 | 20 69 6e 69 74 69 61 6c |ds;.Xthe| initial|
|00004ce0| 20 66 73 75 70 64 61 74 | 65 66 69 64 20 73 77 65 | fsupdat|efid swe|
|00004cf0| 65 70 20 75 73 65 64 20 | 6a 75 73 74 20 32 30 30 |ep used |just 200|
|00004d00| 20 75 73 65 72 20 73 65 | 63 6f 6e 64 73 20 61 6e | user se|conds an|
|00004d10| 64 20 36 30 30 20 73 79 | 73 74 65 6d 0a 58 73 65 |d 600 sy|stem.Xse|
|00004d20| 63 6f 6e 64 73 2e 20 41 | 20 74 79 70 69 63 61 6c |conds. A| typical|
|00004d30| 20 75 70 64 61 74 65 20 | 73 77 65 65 70 20 74 61 | update |sweep ta|
|00004d40| 6b 65 73 20 6f 6e 6c 79 | 20 61 20 66 65 77 20 6d |kes only| a few m|
|00004d50| 69 6e 75 74 65 73 2c 20 | 61 75 74 6f 6d 61 74 69 |inutes, |automati|
|00004d60| 63 61 6c 6c 79 0a 58 73 | 70 72 65 61 64 20 6f 75 |cally.Xs|pread ou|
|00004d70| 74 20 62 79 20 66 73 75 | 70 64 61 74 65 66 69 64 |t by fsu|pdatefid|
|00004d80| 20 6f 76 65 72 20 61 20 | 66 65 77 20 68 6f 75 72 | over a |few hour|
|00004d90| 73 20 73 6f 20 74 68 61 | 74 20 74 68 65 20 43 50 |s so tha|t the CP|
|00004da0| 55 20 61 6e 64 20 64 69 | 73 6b 73 20 64 6f 0a 58 |U and di|sks do.X|
|00004db0| 6e 6f 74 20 63 61 72 72 | 79 20 61 20 73 69 67 6e |not carr|y a sign|
|00004dc0| 69 66 69 63 61 6e 74 20 | 65 78 74 72 61 20 6c 6f |ificant |extra lo|
|00004dd0| 61 64 2e 20 53 69 6e 63 | 65 20 74 68 65 20 65 6e |ad. Sinc|e the en|
|00004de0| 74 69 72 65 20 64 61 74 | 61 62 61 73 65 20 69 73 |tire dat|abase is|
|00004df0| 0a 58 72 65 63 79 63 6c | 65 64 20 73 65 76 65 72 |.Xrecycl|ed sever|
|00004e00| 61 6c 20 74 69 6d 65 73 | 20 61 20 64 61 79 2c 20 |al times| a day, |
|00004e10| 66 69 6e 64 69 6e 6f 64 | 65 20 61 6c 6d 6f 73 74 |findinod|e almost|
|00004e20| 20 6e 65 76 65 72 20 6d | 69 73 73 65 73 20 61 20 | never m|isses a |
|00004e30| 66 69 6c 65 2e 0a 58 0a | 58 4d 6f 72 65 20 70 72 |file..X.|XMore pr|
|00004e40| 65 63 69 73 65 20 64 6f | 63 75 6d 65 6e 74 61 74 |ecise do|cumentat|
|00004e50| 69 6f 6e 3a 20 52 75 6e | 20 66 69 6e 64 69 6e 6f |ion: Run| findino|
|00004e60| 64 65 20 61 6e 64 20 67 | 69 76 65 20 69 74 20 61 |de and g|ive it a|
|00004e70| 20 6c 69 6e 65 20 6f 66 | 20 74 68 65 20 66 6f 72 | line of| the for|
|00004e80| 6d 0a 58 0a 58 20 20 20 | 20 32 30 36 35 20 33 30 |m.X.X | 2065 30|
|00004e90| 30 0a 58 6f 72 0a 58 20 | 20 20 20 2f 75 73 72 2f |0.Xor.X | /usr/|
|00004ea0| 75 63 62 2f 77 0a 58 0a | 58 54 68 65 20 66 69 72 |ucb/w.X.|XThe fir|
|00004eb0| 73 74 20 66 6f 72 6d 20 | 6d 65 61 6e 73 20 60 60 |st form |means ``|
|00004ec0| 66 69 6e 64 20 70 61 74 | 68 6e 61 6d 65 73 20 72 |find pat|hnames r|
|00004ed0| 65 66 65 72 72 69 6e 67 | 20 74 6f 20 69 6e 6f 64 |eferring| to inod|
|00004ee0| 65 20 32 30 36 35 20 28 | 64 65 63 69 6d 61 6c 29 |e 2065 (|decimal)|
|00004ef0| 0a 58 6f 6e 20 64 65 76 | 69 63 65 20 33 30 30 20 |.Xon dev|ice 300 |
|00004f00| 28 68 65 78 61 64 65 63 | 69 6d 61 6c 29 2e 27 27 |(hexadec|imal).''|
|00004f10| 20 54 68 65 20 73 65 63 | 6f 6e 64 20 6d 65 61 6e | The sec|ond mean|
|00004f20| 73 20 60 60 66 69 6e 64 | 20 70 61 74 68 6e 61 6d |s ``find| pathnam|
|00004f30| 65 73 0a 58 72 65 66 65 | 72 72 69 6e 67 20 74 6f |es.Xrefe|rring to|
|00004f40| 20 74 68 65 20 73 61 6d | 65 20 66 69 6c 65 20 61 | the sam|e file a|
|00004f50| 73 20 2f 75 73 72 2f 75 | 63 62 2f 77 27 27 3b 20 |s /usr/u|cb/w''; |
|00004f60| 73 75 63 68 20 61 20 70 | 61 74 68 6e 61 6d 65 20 |such a p|athname |
|00004f70| 6d 61 79 20 62 65 0a 58 | 74 72 75 6e 63 61 74 65 |may be.X|truncate|
|00004f80| 64 20 74 6f 20 31 30 30 | 30 20 63 68 61 72 61 63 |d to 100|0 charac|
|00004f90| 74 65 72 73 2e 20 54 68 | 65 20 73 65 63 6f 6e 64 |ters. Th|e second|
|00004fa0| 20 66 6f 72 6d 20 69 73 | 20 72 65 64 75 6e 64 61 | form is| redunda|
|00004fb0| 6e 74 20 62 75 74 20 75 | 73 65 66 75 6c 2e 0a 58 |nt but u|seful..X|
|00004fc0| 0a 58 66 69 6e 64 69 6e | 6f 64 65 20 77 69 6c 6c |.Xfindin|ode will|
|00004fd0| 20 70 72 69 6e 74 20 28 | 61 6e 64 20 66 6c 75 73 | print (|and flus|
|00004fe0| 68 2c 20 62 65 66 6f 72 | 65 20 77 61 69 74 69 6e |h, befor|e waitin|
|00004ff0| 67 20 66 6f 72 20 66 75 | 72 74 68 65 72 20 69 6e |g for fu|rther in|
|00005000| 70 75 74 29 20 6f 6e 65 | 0a 58 6f 72 20 6d 6f 72 |put) one|.Xor mor|
|00005010| 65 20 6c 69 6e 65 73 20 | 69 6e 20 74 68 65 20 66 |e lines |in the f|
|00005020| 6f 6c 6c 6f 77 69 6e 67 | 20 66 6f 72 6d 3a 0a 58 |ollowing| form:.X|
|00005030| 0a 58 20 20 20 20 32 30 | 36 35 20 33 30 30 3a 20 |.X 20|65 300: |
|00005040| 2f 65 74 63 2f 68 6f 73 | 74 73 2e 65 71 75 69 76 |/etc/hos|ts.equiv|
|00005050| 0a 58 0a 58 54 68 65 20 | 66 69 72 73 74 20 74 77 |.X.XThe |first tw|
|00005060| 6f 20 6e 75 6d 62 65 72 | 73 20 77 69 6c 6c 20 61 |o number|s will a|
|00005070| 6c 77 61 79 73 20 62 65 | 20 74 68 65 20 69 6e 6f |lways be| the ino|
|00005080| 64 65 20 61 6e 64 20 64 | 65 76 69 63 65 20 6e 75 |de and d|evice nu|
|00005090| 6d 62 65 72 73 20 6f 66 | 20 74 68 65 0a 58 66 69 |mbers of| the.Xfi|
|000050a0| 6c 65 2c 20 6e 6f 20 6d | 61 74 74 65 72 20 77 68 |le, no m|atter wh|
|000050b0| 61 74 20 74 68 65 20 69 | 6e 70 75 74 20 6c 69 6e |at the i|nput lin|
|000050c0| 65 20 66 6f 72 6d 61 74 | 20 77 61 73 2e 20 54 68 |e format| was. Th|
|000050d0| 65 20 72 65 73 74 20 6f | 66 20 74 68 65 20 6c 69 |e rest o|f the li|
|000050e0| 6e 65 20 69 73 0a 58 61 | 20 66 69 6c 65 6e 61 6d |ne is.Xa| filenam|
|000050f0| 65 2e 20 41 20 70 72 69 | 6e 74 65 64 20 70 61 74 |e. A pri|nted pat|
|00005100| 68 6e 61 6d 65 20 6f 66 | 20 2f 66 6f 6f 2f 62 61 |hname of| /foo/ba|
|00005110| 72 2f 62 6c 61 68 20 67 | 75 61 72 61 6e 74 65 65 |r/blah g|uarantee|
|00005120| 73 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 3a |s the fo|llowing:|
|00005130| 0a 58 53 6f 6d 65 74 69 | 6d 65 20 61 66 74 65 72 |.XSometi|me after|
|00005140| 20 66 69 6e 64 69 6e 6f | 64 65 20 72 65 61 64 20 | findino|de read |
|00005150| 74 68 65 20 69 6e 70 75 | 74 20 6c 69 6e 65 2c 20 |the inpu|t line, |
|00005160| 2f 20 63 6f 6e 74 61 69 | 6e 65 64 20 64 69 72 65 |/ contai|ned dire|
|00005170| 63 74 6f 72 79 20 66 6f | 6f 2c 0a 58 77 68 69 63 |ctory fo|o,.Xwhic|
|00005180| 68 20 73 6f 6d 65 74 69 | 6d 65 20 61 66 74 65 72 |h someti|me after|
|00005190| 20 74 68 61 74 20 63 6f | 6e 74 61 69 6e 65 64 20 | that co|ntained |
|000051a0| 64 69 72 65 63 74 6f 72 | 79 20 62 61 72 2c 20 77 |director|y bar, w|
|000051b0| 68 69 63 68 20 73 6f 6d | 65 74 69 6d 65 20 61 66 |hich som|etime af|
|000051c0| 74 65 72 0a 58 74 68 61 | 74 20 63 6f 6e 74 61 69 |ter.Xtha|t contai|
|000051d0| 6e 65 64 20 66 69 6c 65 | 20 62 6c 61 68 2c 20 77 |ned file| blah, w|
|000051e0| 68 69 63 68 20 68 61 64 | 20 74 68 65 20 73 74 61 |hich had| the sta|
|000051f0| 74 65 64 20 28 69 6e 6f | 64 65 2c 64 65 76 69 63 |ted (ino|de,devic|
|00005200| 65 29 20 70 61 69 72 0a | 58 73 6f 6d 65 74 69 6d |e) pair.|Xsometim|
|00005210| 65 20 62 65 66 6f 72 65 | 20 74 68 65 20 66 69 6c |e before| the fil|
|00005220| 65 6e 61 6d 65 20 77 61 | 73 20 70 72 69 6e 74 65 |ename wa|s printe|
|00005230| 64 2e 0a 58 0a 58 4e 6f | 74 65 20 74 68 61 74 20 |d..X.XNo|te that |
|00005240| 66 69 6e 64 69 6e 6f 64 | 65 20 64 6f 65 73 20 6e |findinod|e does n|
|00005250| 6f 74 20 67 75 61 72 61 | 6e 74 65 65 20 74 68 61 |ot guara|ntee tha|
|00005260| 74 20 69 74 20 77 69 6c | 6c 20 66 69 6e 64 20 61 |t it wil|l find a|
|00005270| 6c 6c 20 6c 69 6e 6b 73 | 2c 20 6f 72 0a 58 74 68 |ll links|, or.Xth|
|00005280| 61 74 20 69 74 20 77 69 | 6c 6c 20 66 69 6e 64 20 |at it wi|ll find |
|00005290| 61 73 20 6d 61 6e 79 20 | 6f 72 20 61 73 20 66 65 |as many |or as fe|
|000052a0| 77 20 6c 69 6e 6b 73 20 | 61 73 20 74 68 65 20 66 |w links |as the f|
|000052b0| 69 6c 65 20 68 61 73 2c | 20 6f 72 20 74 68 61 74 |ile has,| or that|
|000052c0| 20 69 74 0a 58 77 69 6c | 6c 20 70 72 69 6e 74 20 | it.Xwil|l print |
|000052d0| 64 69 73 74 69 6e 63 74 | 20 70 61 74 68 6e 61 6d |distinct| pathnam|
|000052e0| 65 73 2e 20 49 6e 20 70 | 61 72 74 69 63 75 6c 61 |es. In p|articula|
|000052f0| 72 2c 20 69 66 20 61 20 | 66 69 6c 65 20 68 61 73 |r, if a |file has|
|00005300| 20 61 20 64 6f 7a 65 6e | 0a 58 6c 69 6e 6b 73 20 | a dozen|.Xlinks |
|00005310| 69 6e 20 6f 6e 65 20 64 | 69 72 65 63 74 6f 72 79 |in one d|irectory|
|00005320| 2c 20 66 69 6e 64 69 6e | 6f 64 65 20 77 69 6c 6c |, findin|ode will|
|00005330| 20 74 79 70 69 63 61 6c | 6c 79 20 70 72 69 6e 74 | typical|ly print|
|00005340| 20 61 20 64 6f 7a 65 6e | 20 6c 69 6e 65 73 0a 58 | a dozen| lines.X|
|00005350| 72 65 66 65 72 72 69 6e | 67 20 74 6f 20 74 68 65 |referrin|g to the|
|00005360| 20 66 69 72 73 74 20 6c | 69 6e 6b 2e 0a 58 0a 58 | first l|ink..X.X|
|00005370| 4e 6f 6e 65 20 6f 66 20 | 74 68 65 20 70 61 74 68 |None of |the path|
|00005380| 20 63 6f 6d 70 6f 6e 65 | 6e 74 73 20 70 72 69 6e | compone|nts prin|
|00005390| 74 65 64 20 62 79 20 66 | 69 6e 64 69 6e 6f 64 65 |ted by f|indinode|
|000053a0| 20 77 69 6c 6c 20 62 65 | 20 65 6d 70 74 79 20 6f | will be| empty o|
|000053b0| 72 0a 58 63 6f 6e 74 61 | 69 6e 20 61 20 6e 65 77 |r.Xconta|in a new|
|000053c0| 6c 69 6e 65 2e 20 49 66 | 20 66 69 6e 64 69 6e 6f |line. If| findino|
|000053d0| 64 65 20 63 61 6e 6e 6f | 74 20 6d 61 6b 65 20 74 |de canno|t make t|
|000053e0| 68 65 73 65 20 67 75 61 | 72 61 6e 74 65 65 73 2c |hese gua|rantees,|
|000053f0| 20 69 74 20 77 69 6c 6c | 0a 58 70 72 69 6e 74 20 | it will|.Xprint |
|00005400| 61 20 6c 69 6e 65 20 69 | 6e 20 6f 6e 65 20 6f 66 |a line i|n one of|
|00005410| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 66 | the fol|lowing f|
|00005420| 6f 72 6d 61 74 73 3a 0a | 58 0a 58 20 20 20 20 32 |ormats:.|X.X 2|
|00005430| 30 36 35 20 33 30 30 3a | 20 3c 75 6e 6b 6e 6f 77 |065 300:| <unknow|
|00005440| 6e 3e 20 20 20 20 20 20 | 20 28 6e 6f 20 67 75 61 |n> | (no gua|
|00005450| 72 61 6e 74 65 65 73 2c | 20 62 75 74 20 63 68 61 |rantees,| but cha|
|00005460| 6e 63 65 73 20 61 72 65 | 20 74 68 61 74 0a 58 09 |nces are| that.X.|
|00005470| 09 09 20 20 20 20 20 20 | 20 66 69 6e 64 69 6e 6f |.. | findino|
|00005480| 64 65 27 73 20 6e 65 76 | 65 72 20 73 65 65 6e 20 |de's nev|er seen |
|00005490| 74 68 61 74 20 69 6e 6f | 64 65 2d 64 65 76 69 63 |that ino|de-devic|
|000054a0| 65 29 0a 58 20 20 20 20 | 32 30 36 35 20 33 30 30 |e).X |2065 300|
|000054b0| 3a 20 2f 65 74 63 2f 2f | 3c 67 6f 6e 65 3e 20 20 |: /etc//|<gone> |
|000054c0| 20 20 28 6e 6f 20 67 75 | 61 72 61 6e 74 65 65 73 | (no gu|arantees|
|000054d0| 2c 20 62 75 74 20 63 68 | 61 6e 63 65 73 20 61 72 |, but ch|ances ar|
|000054e0| 65 20 74 68 61 74 20 61 | 74 0a 58 20 20 20 20 20 |e that a|t.X |
|000054f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005500| 20 20 20 20 20 20 20 20 | 20 20 73 6f 6d 65 20 74 | | some t|
|00005510| 69 6d 65 20 69 6e 20 74 | 68 65 20 70 61 73 74 2c |ime in t|he past,|
|00005520| 20 74 68 65 20 69 6e 6f | 64 65 20 77 61 73 0a 58 | the ino|de was.X|
|00005530| 09 09 09 20 20 20 20 20 | 20 20 63 6f 6e 74 61 69 |... | contai|
|00005540| 6e 65 64 20 69 6e 20 73 | 6f 6d 65 20 73 75 62 5b |ned in s|ome sub[|
|00005550| 73 75 62 2e 2e 2e 5d 64 | 69 72 65 63 74 6f 72 79 |sub...]d|irectory|
|00005560| 20 6f 66 0a 58 09 09 09 | 20 20 20 20 20 20 20 61 | of.X...| a|
|00005570| 20 64 69 72 65 63 74 6f | 72 79 20 77 69 74 68 20 | directo|ry with |
|00005580| 74 68 65 20 73 61 6d 65 | 20 69 6e 6f 64 65 2d 64 |the same| inode-d|
|00005590| 65 76 69 63 65 0a 58 09 | 09 09 20 20 20 20 20 20 |evice.X.|.. |
|000055a0| 20 6e 75 6d 62 65 72 73 | 20 61 73 20 77 68 61 74 | numbers| as what|
|000055b0| 20 2f 65 74 63 20 68 61 | 64 20 73 6f 6d 65 74 69 | /etc ha|d someti|
|000055c0| 6d 65 20 77 68 69 6c 65 | 0a 58 09 09 09 20 20 20 |me while|.X... |
|000055d0| 20 20 20 20 66 69 6e 64 | 69 6e 6f 64 65 20 77 61 | find|inode wa|
|000055e0| 73 20 72 75 6e 6e 69 6e | 67 29 0a 58 20 20 20 20 |s runnin|g).X |
|000055f0| 32 30 36 35 20 33 30 30 | 3a 20 2f 68 6f 6d 65 2f |2065 300|: /home/|
|00005600| 73 68 6d 6f 65 2f 2f 3c | 70 72 6f 74 65 63 74 65 |shmoe//<|protecte|
|00005610| 64 3e 0a 58 09 09 09 20 | 20 20 20 20 20 28 6e 6f |d>.X... | (no|
|00005620| 20 67 75 61 72 61 6e 74 | 65 65 73 2c 20 62 75 74 | guarant|ees, but|
|00005630| 20 79 6f 75 72 20 72 65 | 61 6c 20 75 69 64 20 70 | your re|al uid p|
|00005640| 72 6f 62 61 62 6c 79 0a | 58 09 09 09 20 20 20 20 |robably.|X... |
|00005650| 20 20 20 64 6f 65 73 20 | 6e 6f 74 20 68 61 76 65 | does |not have|
|00005660| 20 70 65 72 6d 69 73 73 | 69 6f 6e 20 74 6f 20 72 | permiss|ion to r|
|00005670| 65 61 64 20 74 68 65 0a | 58 09 09 09 20 20 20 20 |ead the.|X... |
|00005680| 20 20 20 2f 68 6f 6d 65 | 2f 73 68 6d 6f 65 20 64 | /home|/shmoe d|
|00005690| 69 72 65 63 74 6f 72 79 | 2c 20 61 6e 64 20 77 68 |irectory|, and wh|
|000056a0| 61 74 65 76 65 72 27 73 | 0a 58 09 09 09 20 20 20 |atever's|.X... |
|000056b0| 20 20 20 20 74 72 75 65 | 20 61 62 6f 75 74 20 3c | true| about <|
|000056c0| 67 6f 6e 65 3e 20 69 73 | 20 70 72 6f 62 61 62 6c |gone> is| probabl|
|000056d0| 79 20 74 72 75 65 20 68 | 65 72 65 29 0a 58 20 20 |y true h|ere).X |
|000056e0| 20 20 32 30 36 35 20 33 | 30 30 3a 20 2f 74 6d 70 | 2065 3|00: /tmp|
|000056f0| 2f 6a 6f 65 2f 2f 3c 6e | 65 77 6c 69 6e 65 3e 0a |/joe//<n|ewline>.|
|00005700| 58 09 09 09 20 20 20 20 | 20 20 28 66 69 6e 64 69 |X... | (findi|
|00005710| 6e 6f 64 65 20 64 65 74 | 65 63 74 65 64 20 74 68 |node det|ected th|
|00005720| 61 74 20 69 74 20 77 61 | 73 20 61 62 6f 75 74 20 |at it wa|s about |
|00005730| 74 6f 0a 58 09 09 09 20 | 20 20 20 20 20 20 70 72 |to.X... | pr|
|00005740| 69 6e 74 20 61 20 70 61 | 74 68 20 63 6f 6d 70 6f |int a pa|th compo|
|00005750| 6e 65 6e 74 20 63 6f 6e | 74 61 69 6e 69 6e 67 20 |nent con|taining |
|00005760| 61 0a 58 09 09 09 20 20 | 20 20 20 20 20 6e 65 77 |a.X... | new|
|00005770| 6c 69 6e 65 29 0a 58 0a | 58 41 64 64 69 74 69 6f |line).X.|XAdditio|
|00005780| 6e 61 6c 20 65 72 72 6f | 72 20 66 6f 72 6d 61 74 |nal erro|r format|
|00005790| 73 20 6d 61 79 20 62 65 | 20 64 65 66 69 6e 65 64 |s may be| defined|
|000057a0| 20 69 6e 20 66 75 74 75 | 72 65 20 76 65 72 73 69 | in futu|re versi|
|000057b0| 6f 6e 73 20 6f 66 20 66 | 69 6e 64 69 6e 6f 64 65 |ons of f|indinode|
|000057c0| 3b 0a 58 74 68 65 79 20 | 77 69 6c 6c 20 61 6c 77 |;.Xthey |will alw|
|000057d0| 61 79 73 20 62 65 67 69 | 6e 20 77 69 74 68 20 61 |ays begi|n with a|
|000057e0| 20 63 68 61 72 61 63 74 | 65 72 20 6f 74 68 65 72 | charact|er other|
|000057f0| 20 74 68 61 6e 20 61 20 | 73 6c 61 73 68 2c 20 6f | than a |slash, o|
|00005800| 72 20 63 6f 6e 74 61 69 | 6e 20 61 0a 58 64 6f 75 |r contai|n a.Xdou|
|00005810| 62 6c 65 20 73 6c 61 73 | 68 20 69 6e 20 74 68 65 |ble slas|h in the|
|00005820| 20 70 72 69 6e 74 65 64 | 20 70 61 74 68 6e 61 6d | printed| pathnam|
|00005830| 65 2e 0a 58 0a 58 66 69 | 6e 64 69 6e 6f 64 65 20 |e..X.Xfi|ndinode |
|00005840| 2d 41 20 73 75 70 70 72 | 65 73 73 65 73 20 74 68 |-A suppr|esses th|
|00005850| 65 20 6d 75 6c 74 69 70 | 6c 65 2d 6c 69 6e 65 20 |e multip|le-line |
|00005860| 6f 75 74 70 75 74 3b 20 | 69 74 20 77 69 6c 6c 20 |output; |it will |
|00005870| 70 72 69 6e 74 20 65 78 | 61 63 74 6c 79 0a 58 6f |print ex|actly.Xo|
|00005880| 6e 65 20 6c 69 6e 65 20 | 66 6f 72 20 65 61 63 68 |ne line |for each|
|00005890| 20 6c 69 6e 65 20 6f 66 | 20 69 6e 70 75 74 2e 20 | line of| input. |
|000058a0| 2d 61 20 74 75 72 6e 73 | 20 6d 75 6c 74 69 70 6c |-a turns| multipl|
|000058b0| 65 2d 6c 69 6e 65 20 6f | 75 74 70 75 74 20 62 61 |e-line o|utput ba|
|000058c0| 63 6b 20 6f 6e 2e 0a 58 | 0a 58 43 6f 6d 70 69 6c |ck on..X|.XCompil|
|000058d0| 69 6e 67 3a 20 59 6f 75 | 20 6d 61 79 20 68 61 76 |ing: You| may hav|
|000058e0| 65 20 74 6f 20 63 68 61 | 6e 67 65 20 64 69 72 65 |e to cha|nge dire|
|000058f0| 63 74 20 74 6f 20 64 69 | 72 65 6e 74 20 74 68 72 |ct to di|rent thr|
|00005900| 6f 75 67 68 6f 75 74 2c | 20 6f 72 20 63 68 61 6e |oughout,| or chan|
|00005910| 67 65 0a 58 3c 73 79 73 | 2f 64 69 72 2e 68 3e 20 |ge.X<sys|/dir.h> |
|00005920| 74 6f 20 73 6f 6d 65 74 | 68 69 6e 67 20 6c 69 6b |to somet|hing lik|
|00005930| 65 20 3c 64 69 72 65 6e | 74 2e 68 3e 2e 0a 58 0a |e <diren|t.h>..X.|
|00005940| 58 54 4f 44 4f 3a 0a 58 | 63 6c 65 61 6e 20 6f 75 |XTODO:.X|clean ou|
|00005950| 74 20 64 69 72 65 63 74 | 6f 72 69 65 73 20 61 6e |t direct|ories an|
|00005960| 64 20 66 69 6c 65 73 20 | 77 69 74 68 20 30 20 6c |d files |with 0 l|
|00005970| 69 6e 6b 73 0a 58 6b 65 | 65 70 20 73 74 61 74 69 |inks.Xke|ep stati|
|00005980| 73 74 69 63 73 20 6f 6e | 20 66 69 6e 64 69 6e 6f |stics on| findino|
|00005990| 64 65 20 73 75 63 63 65 | 73 73 20 72 61 74 65 0a |de succe|ss rate.|
|000059a0| 58 61 66 74 65 72 20 61 | 20 66 61 69 6c 75 72 65 |Xafter a| failure|
|000059b0| 2c 20 68 61 76 65 20 75 | 70 64 61 74 65 66 69 64 |, have u|pdatefid|
|000059c0| 20 63 68 65 63 6b 20 73 | 6f 6d 65 20 64 69 72 65 | check s|ome dire|
|000059d0| 63 74 6f 72 79 20 61 67 | 61 69 6e 3f 0a 58 64 6f |ctory ag|ain?.Xdo|
|000059e0| 20 73 6f 6d 65 74 68 69 | 6e 67 20 62 65 74 74 65 | somethi|ng bette|
|000059f0| 72 20 77 69 74 68 20 6d | 75 6c 74 69 70 6c 65 20 |r with m|ultiple |
|00005a00| 6c 69 6e 6b 73 20 69 6e | 20 6f 6e 65 20 64 69 72 |links in| one dir|
|00005a10| 65 63 74 6f 72 79 3f 0a | 58 77 72 69 74 65 20 73 |ectory?.|Xwrite s|
|00005a20| 6f 6d 65 20 72 65 61 6c | 20 64 6f 63 75 6d 65 6e |ome real| documen|
|00005a30| 74 61 74 69 6f 6e 21 20 | 67 65 74 20 74 68 69 73 |tation! |get this|
|00005a40| 20 69 6e 74 6f 20 62 65 | 74 61 21 0a 45 4e 44 5f | into be|ta!.END_|
|00005a50| 4f 46 5f 46 49 4c 45 0a | 69 66 20 74 65 73 74 20 |OF_FILE.|if test |
|00005a60| 34 32 37 30 20 2d 6e 65 | 20 60 77 63 20 2d 63 20 |4270 -ne| `wc -c |
|00005a70| 3c 27 66 69 6e 64 69 6e | 6f 64 65 2f 52 45 41 44 |<'findin|ode/READ|
|00005a80| 4d 45 27 60 3b 20 74 68 | 65 6e 0a 20 20 20 20 65 |ME'`; th|en. e|
|00005a90| 63 68 6f 20 73 68 61 72 | 3a 20 5c 22 27 66 69 6e |cho shar|: \"'fin|
|00005aa0| 64 69 6e 6f 64 65 2f 52 | 45 41 44 4d 45 27 5c 22 |dinode/R|EADME'\"|
|00005ab0| 20 75 6e 70 61 63 6b 65 | 64 20 77 69 74 68 20 77 | unpacke|d with w|
|00005ac0| 72 6f 6e 67 20 73 69 7a | 65 21 0a 66 69 0a 23 20 |rong siz|e!.fi.# |
|00005ad0| 65 6e 64 20 6f 66 20 27 | 66 69 6e 64 69 6e 6f 64 |end of '|findinod|
|00005ae0| 65 2f 52 45 41 44 4d 45 | 27 0a 66 69 0a 69 66 20 |e/README|'.fi.if |
|00005af0| 74 65 73 74 20 2d 66 20 | 27 66 69 6e 64 69 6e 6f |test -f |'findino|
|00005b00| 64 65 2f 66 69 64 2e 63 | 27 20 2d 61 20 22 24 7b |de/fid.c|' -a "${|
|00005b10| 31 7d 22 20 21 3d 20 22 | 2d 63 22 20 3b 20 74 68 |1}" != "|-c" ; th|
|00005b20| 65 6e 20 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |en . ec|ho shar:|
|00005b30| 20 57 69 6c 6c 20 6e 6f | 74 20 63 6c 6f 62 62 65 | Will no|t clobbe|
|00005b40| 72 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |r existi|ng file |
|00005b50| 5c 22 27 66 69 6e 64 69 | 6e 6f 64 65 2f 66 69 64 |\"'findi|node/fid|
|00005b60| 2e 63 27 5c 22 0a 65 6c | 73 65 0a 65 63 68 6f 20 |.c'\".el|se.echo |
|00005b70| 73 68 61 72 3a 20 45 78 | 74 72 61 63 74 69 6e 67 |shar: Ex|tracting|
|00005b80| 20 5c 22 27 66 69 6e 64 | 69 6e 6f 64 65 2f 66 69 | \"'find|inode/fi|
|00005b90| 64 2e 63 27 5c 22 20 5c | 28 35 34 32 35 20 63 68 |d.c'\" \|(5425 ch|
|00005ba0| 61 72 61 63 74 65 72 73 | 5c 29 0a 73 65 64 20 22 |aracters|\).sed "|
|00005bb0| 73 2f 5e 58 2f 2f 22 20 | 3e 27 66 69 6e 64 69 6e |s/^X//" |>'findin|
|00005bc0| 6f 64 65 2f 66 69 64 2e | 63 27 20 3c 3c 27 45 4e |ode/fid.|c' <<'EN|
|00005bd0| 44 5f 4f 46 5f 46 49 4c | 45 27 0a 58 23 69 6e 63 |D_OF_FIL|E'.X#inc|
|00005be0| 6c 75 64 65 20 3c 73 79 | 73 2f 74 79 70 65 73 2e |lude <sy|s/types.|
|00005bf0| 68 3e 0a 58 23 69 6e 63 | 6c 75 64 65 20 3c 73 79 |h>.X#inc|lude <sy|
|00005c00| 73 2f 66 69 6c 65 2e 68 | 3e 0a 58 23 69 6e 63 6c |s/file.h|>.X#incl|
|00005c10| 75 64 65 20 3c 73 79 73 | 2f 73 74 61 74 2e 68 3e |ude <sys|/stat.h>|
|00005c20| 0a 58 23 69 6e 63 6c 75 | 64 65 20 3c 73 79 73 2f |.X#inclu|de <sys/|
|00005c30| 64 69 72 2e 68 3e 0a 58 | 23 69 6e 63 6c 75 64 65 |dir.h>.X|#include|
|00005c40| 20 3c 73 74 64 69 6f 2e | 68 3e 0a 58 23 69 6e 63 | <stdio.|h>.X#inc|
|00005c50| 6c 75 64 65 20 3c 6e 64 | 62 6d 2e 68 3e 0a 58 23 |lude <nd|bm.h>.X#|
|00005c60| 69 6e 63 6c 75 64 65 20 | 22 66 69 64 2e 68 22 0a |include |"fid.h".|
|00005c70| 58 0a 58 73 74 61 74 69 | 63 20 69 6e 74 20 66 64 |X.Xstati|c int fd|
|00005c80| 6c 6f 63 6b 3b 0a 58 73 | 74 61 74 69 63 20 44 42 |lock;.Xs|tatic DB|
|00005c90| 4d 20 2a 64 62 66 69 6c | 65 73 3b 0a 58 73 74 61 |M *dbfil|es;.Xsta|
|00005ca0| 74 69 63 20 44 42 4d 20 | 2a 64 62 64 69 72 73 3b |tic DBM |*dbdirs;|
|00005cb0| 0a 58 73 74 61 74 69 63 | 20 44 42 4d 20 2a 64 62 |.Xstatic| DBM *db|
|00005cc0| 64 69 72 74 69 6d 65 73 | 3b 0a 58 73 74 61 74 69 |dirtimes|;.Xstati|
|00005cd0| 63 20 44 42 4d 20 2a 64 | 62 66 32 64 3b 0a 58 73 |c DBM *d|bf2d;.Xs|
|00005ce0| 74 61 74 69 63 20 44 42 | 4d 20 2a 64 62 64 32 66 |tatic DB|M *dbd2f|
|00005cf0| 3b 0a 58 0a 58 69 6e 74 | 20 66 69 64 69 6e 69 74 |;.X.Xint| fidinit|
|00005d00| 28 29 0a 58 7b 0a 58 20 | 66 64 6c 6f 63 6b 20 3d |().X{.X |fdlock =|
|00005d10| 20 6f 70 65 6e 28 44 42 | 4c 4f 43 4b 2c 4f 5f 52 | open(DB|LOCK,O_R|
|00005d20| 44 57 52 20 7c 20 4f 5f | 43 52 45 41 54 2c 30 36 |DWR | O_|CREAT,06|
|00005d30| 30 30 29 3b 0a 58 20 69 | 66 20 28 66 64 6c 6f 63 |00);.X i|f (fdloc|
|00005d40| 6b 20 3d 3d 20 2d 31 29 | 20 72 65 74 75 72 6e 20 |k == -1)| return |
|00005d50| 2d 31 3b 0a 58 20 64 62 | 66 69 6c 65 73 20 3d 20 |-1;.X db|files = |
|00005d60| 64 62 6d 5f 6f 70 65 6e | 28 44 42 46 49 4c 45 53 |dbm_open|(DBFILES|
|00005d70| 2c 4f 5f 52 44 57 52 20 | 7c 20 4f 5f 43 52 45 41 |,O_RDWR || O_CREA|
|00005d80| 54 2c 30 36 30 30 29 3b | 0a 58 20 69 66 20 28 21 |T,0600);|.X if (!|
|00005d90| 64 62 66 69 6c 65 73 29 | 20 72 65 74 75 72 6e 20 |dbfiles)| return |
|00005da0| 2d 31 3b 0a 58 20 64 62 | 64 69 72 73 20 3d 20 64 |-1;.X db|dirs = d|
|00005db0| 62 6d 5f 6f 70 65 6e 28 | 44 42 44 49 52 53 2c 4f |bm_open(|DBDIRS,O|
|00005dc0| 5f 52 44 57 52 20 7c 20 | 4f 5f 43 52 45 41 54 2c |_RDWR | |O_CREAT,|
|00005dd0| 30 36 30 30 29 3b 0a 58 | 20 69 66 20 28 21 64 62 |0600);.X| if (!db|
|00005de0| 64 69 72 73 29 20 72 65 | 74 75 72 6e 20 2d 31 3b |dirs) re|turn -1;|
|00005df0| 0a 58 20 64 62 64 69 72 | 74 69 6d 65 73 20 3d 20 |.X dbdir|times = |
|00005e00| 64 62 6d 5f 6f 70 65 6e | 28 44 42 44 49 52 54 49 |dbm_open|(DBDIRTI|
|00005e10| 4d 45 53 2c 4f 5f 52 44 | 57 52 20 7c 20 4f 5f 43 |MES,O_RD|WR | O_C|
|00005e20| 52 45 41 54 2c 30 36 30 | 30 29 3b 0a 58 20 69 66 |REAT,060|0);.X if|
|00005e30| 20 28 21 64 62 64 69 72 | 74 69 6d 65 73 29 20 72 | (!dbdir|times) r|
|00005e40| 65 74 75 72 6e 20 2d 31 | 3b 0a 58 20 64 62 66 32 |eturn -1|;.X dbf2|
|00005e50| 64 20 3d 20 64 62 6d 5f | 6f 70 65 6e 28 44 42 46 |d = dbm_|open(DBF|
|00005e60| 32 44 2c 4f 5f 52 44 57 | 52 20 7c 20 4f 5f 43 52 |2D,O_RDW|R | O_CR|
|00005e70| 45 41 54 2c 30 36 30 30 | 29 3b 0a 58 20 69 66 20 |EAT,0600|);.X if |
|00005e80| 28 21 64 62 66 32 64 29 | 20 72 65 74 75 72 6e 20 |(!dbf2d)| return |
|00005e90| 2d 31 3b 0a 58 20 64 62 | 64 32 66 20 3d 20 64 62 |-1;.X db|d2f = db|
|00005ea0| 6d 5f 6f 70 65 6e 28 44 | 42 44 32 46 2c 4f 5f 52 |m_open(D|BD2F,O_R|
|00005eb0| 44 57 52 20 7c 20 4f 5f | 43 52 45 41 54 2c 30 36 |DWR | O_|CREAT,06|
|00005ec0| 30 30 29 3b 0a 58 20 69 | 66 20 28 21 64 62 64 32 |00);.X i|f (!dbd2|
|00005ed0| 66 29 20 72 65 74 75 72 | 6e 20 2d 31 3b 0a 58 20 |f) retur|n -1;.X |
|00005ee0| 72 65 74 75 72 6e 20 30 | 3b 0a 58 7d 0a 58 0a 58 |return 0|;.X}.X.X|
|00005ef0| 69 6e 74 20 66 69 64 6c | 6f 63 6b 28 29 0a 58 7b |int fidl|ock().X{|
|00005f00| 0a 58 20 72 65 74 75 72 | 6e 20 66 6c 6f 63 6b 28 |.X retur|n flock(|
|00005f10| 66 64 6c 6f 63 6b 2c 4c | 4f 43 4b 5f 45 58 29 3b |fdlock,L|OCK_EX);|
|00005f20| 0a 58 7d 0a 58 0a 58 69 | 6e 74 20 66 69 64 75 6e |.X}.X.Xi|nt fidun|
|00005f30| 6c 6f 63 6b 28 29 0a 58 | 7b 0a 58 20 72 65 74 75 |lock().X|{.X retu|
|00005f40| 72 6e 20 66 6c 6f 63 6b | 28 66 64 6c 6f 63 6b 2c |rn flock|(fdlock,|
|00005f50| 4c 4f 43 4b 5f 55 4e 29 | 3b 0a 58 7d 0a 58 0a 58 |LOCK_UN)|;.X}.X.X|
|00005f60| 2f 2a 58 58 58 20 74 68 | 65 73 65 20 72 6f 75 74 |/*XXX th|ese rout|
|00005f70| 69 6e 65 73 2a 2f 0a 58 | 73 74 61 74 69 63 20 64 |ines*/.X|static d|
|00005f80| 61 74 75 6d 20 66 32 6b | 65 79 28 66 29 20 73 74 |atum f2k|ey(f) st|
|00005f90| 72 75 63 74 20 6e 6f 64 | 65 20 66 3b 20 7b 20 64 |ruct nod|e f; { d|
|00005fa0| 61 74 75 6d 20 6b 65 79 | 3b 0a 58 20 73 74 61 74 |atum key|;.X stat|
|00005fb0| 69 63 20 63 68 61 72 20 | 62 75 66 5b 38 5d 3b 20 |ic char |buf[8]; |
|00005fc0| 75 6e 73 69 67 6e 65 64 | 20 6c 6f 6e 67 20 66 69 |unsigned| long fi|
|00005fd0| 20 3d 20 66 2e 69 3b 20 | 75 6e 73 69 67 6e 65 64 | = f.i; |unsigned|
|00005fe0| 20 6c 6f 6e 67 20 66 64 | 20 3d 20 66 2e 64 3b 0a | long fd| = f.d;.|
|00005ff0| 58 20 62 75 66 5b 30 5d | 20 3d 20 66 69 20 26 20 |X buf[0]| = fi & |
|00006000| 32 35 35 3b 20 66 69 20 | 2f 3d 20 32 35 36 3b 20 |255; fi |/= 256; |
|00006010| 62 75 66 5b 31 5d 20 3d | 20 66 69 20 26 20 32 35 |buf[1] =| fi & 25|
|00006020| 35 3b 20 66 69 20 2f 3d | 20 32 35 36 3b 0a 58 20 |5; fi /=| 256;.X |
|00006030| 62 75 66 5b 32 5d 20 3d | 20 66 69 20 26 20 32 35 |buf[2] =| fi & 25|
|00006040| 35 3b 20 66 69 20 2f 3d | 20 32 35 36 3b 20 62 75 |5; fi /=| 256; bu|
|00006050| 66 5b 33 5d 20 3d 20 66 | 69 20 26 20 32 35 35 3b |f[3] = f|i & 255;|
|00006060| 0a 58 20 62 75 66 5b 34 | 5d 20 3d 20 66 64 20 26 |.X buf[4|] = fd &|
|00006070| 20 32 35 35 3b 20 66 64 | 20 2f 3d 20 32 35 36 3b | 255; fd| /= 256;|
|00006080| 20 62 75 66 5b 35 5d 20 | 3d 20 66 64 20 26 20 32 | buf[5] |= fd & 2|
|00006090| 35 35 3b 20 66 64 20 2f | 3d 20 32 35 36 3b 0a 58 |55; fd /|= 256;.X|
|000060a0| 20 62 75 66 5b 36 5d 20 | 3d 20 66 64 20 26 20 32 | buf[6] |= fd & 2|
|000060b0| 35 35 3b 20 66 64 20 2f | 3d 20 32 35 36 3b 20 62 |55; fd /|= 256; b|
|000060c0| 75 66 5b 37 5d 20 3d 20 | 66 64 20 26 20 32 35 35 |uf[7] = |fd & 255|
|000060d0| 3b 0a 58 20 6b 65 79 2e | 64 70 74 72 20 3d 20 62 |;.X key.|dptr = b|
|000060e0| 75 66 3b 20 6b 65 79 2e | 64 73 69 7a 65 20 3d 20 |uf; key.|dsize = |
|000060f0| 38 3b 20 72 65 74 75 72 | 6e 20 6b 65 79 3b 20 7d |8; retur|n key; }|
|00006100| 0a 58 0a 58 73 74 61 74 | 69 63 20 64 61 74 75 6d |.X.Xstat|ic datum|
|00006110| 20 64 32 6b 65 79 28 64 | 29 20 73 74 72 75 63 74 | d2key(d|) struct|
|00006120| 20 64 6e 6f 64 65 20 64 | 3b 20 7b 20 64 61 74 75 | dnode d|; { datu|
|00006130| 6d 20 6b 65 79 3b 0a 58 | 20 73 74 61 74 69 63 20 |m key;.X| static |
|00006140| 63 68 61 72 20 62 75 66 | 5b 38 5d 3b 20 75 6e 73 |char buf|[8]; uns|
|00006150| 69 67 6e 65 64 20 6c 6f | 6e 67 20 64 69 20 3d 20 |igned lo|ng di = |
|00006160| 64 2e 69 3b 20 75 6e 73 | 69 67 6e 65 64 20 6c 6f |d.i; uns|igned lo|
|00006170| 6e 67 20 64 64 20 3d 20 | 64 2e 64 3b 0a 58 20 62 |ng dd = |d.d;.X b|
|00006180| 75 66 5b 30 5d 20 3d 20 | 64 69 20 26 20 32 35 35 |uf[0] = |di & 255|
|00006190| 3b 20 64 69 20 2f 3d 20 | 32 35 36 3b 20 62 75 66 |; di /= |256; buf|
|000061a0| 5b 31 5d 20 3d 20 64 69 | 20 26 20 32 35 35 3b 20 |[1] = di| & 255; |
|000061b0| 64 69 20 2f 3d 20 32 35 | 36 3b 0a 58 20 62 75 66 |di /= 25|6;.X buf|
|000061c0| 5b 32 5d 20 3d 20 64 69 | 20 26 20 32 35 35 3b 20 |[2] = di| & 255; |
|000061d0| 64 69 20 2f 3d 20 32 35 | 36 3b 20 62 75 66 5b 33 |di /= 25|6; buf[3|
|000061e0| 5d 20 3d 20 64 69 20 26 | 20 32 35 35 3b 0a 58 20 |] = di &| 255;.X |
|000061f0| 62 75 66 5b 34 5d 20 3d | 20 64 64 20 26 20 32 35 |buf[4] =| dd & 25|
|00006200| 35 3b 20 64 64 20 2f 3d | 20 32 35 36 3b 20 62 75 |5; dd /=| 256; bu|
|00006210| 66 5b 35 5d 20 3d 20 64 | 64 20 26 20 32 35 35 3b |f[5] = d|d & 255;|
|00006220| 20 64 64 20 2f 3d 20 32 | 35 36 3b 0a 58 20 62 75 | dd /= 2|56;.X bu|
|00006230| 66 5b 36 5d 20 3d 20 64 | 64 20 26 20 32 35 35 3b |f[6] = d|d & 255;|
|00006240| 20 64 64 20 2f 3d 20 32 | 35 36 3b 20 62 75 66 5b | dd /= 2|56; buf[|
|00006250| 37 5d 20 3d 20 64 64 20 | 26 20 32 35 35 3b 0a 58 |7] = dd |& 255;.X|
|00006260| 20 6b 65 79 2e 64 70 74 | 72 20 3d 20 62 75 66 3b | key.dpt|r = buf;|
|00006270| 20 6b 65 79 2e 64 73 69 | 7a 65 20 3d 20 38 3b 20 | key.dsi|ze = 8; |
|00006280| 72 65 74 75 72 6e 20 6b | 65 79 3b 20 7d 0a 58 0a |return k|ey; }.X.|
|00006290| 58 73 74 61 74 69 63 20 | 64 61 74 75 6d 20 66 6e |Xstatic |datum fn|
|000062a0| 32 6b 65 79 28 66 6e 29 | 20 73 74 72 75 63 74 20 |2key(fn)| struct |
|000062b0| 6e 6f 64 65 6e 75 6d 20 | 66 6e 3b 20 7b 20 64 61 |nodenum |fn; { da|
|000062c0| 74 75 6d 20 6b 65 79 3b | 0a 58 20 73 74 61 74 69 |tum key;|.X stati|
|000062d0| 63 20 63 68 61 72 20 62 | 75 66 5b 31 32 5d 3b 0a |c char b|uf[12];.|
|000062e0| 58 20 75 6e 73 69 67 6e | 65 64 20 6c 6f 6e 67 20 |X unsign|ed long |
|000062f0| 66 6e 69 20 3d 20 66 6e | 2e 78 2e 69 3b 20 75 6e |fni = fn|.x.i; un|
|00006300| 73 69 67 6e 65 64 20 6c | 6f 6e 67 20 66 6e 64 20 |signed l|ong fnd |
|00006310| 3d 20 66 6e 2e 78 2e 64 | 3b 0a 58 20 75 6e 73 69 |= fn.x.d|;.X unsi|
|00006320| 67 6e 65 64 20 6c 6f 6e | 67 20 66 6e 6e 20 3d 20 |gned lon|g fnn = |
|00006330| 66 6e 2e 6e 3b 0a 58 20 | 62 75 66 5b 30 5d 20 3d |fn.n;.X |buf[0] =|
|00006340| 20 66 6e 69 20 26 20 32 | 35 35 3b 20 66 6e 69 20 | fni & 2|55; fni |
|00006350| 2f 3d 20 32 35 36 3b 20 | 62 75 66 5b 31 5d 20 3d |/= 256; |buf[1] =|
|00006360| 20 66 6e 69 20 26 20 32 | 35 35 3b 20 66 6e 69 20 | fni & 2|55; fni |
|00006370| 2f 3d 20 32 35 36 3b 0a | 58 20 62 75 66 5b 32 5d |/= 256;.|X buf[2]|
|00006380| 20 3d 20 66 6e 69 20 26 | 20 32 35 35 3b 20 66 6e | = fni &| 255; fn|
|00006390| 69 20 2f 3d 20 32 35 36 | 3b 20 62 75 66 5b 33 5d |i /= 256|; buf[3]|
|000063a0| 20 3d 20 66 6e 69 20 26 | 20 32 35 35 3b 0a 58 20 | = fni &| 255;.X |
|000063b0| 62 75 66 5b 34 5d 20 3d | 20 66 6e 64 20 26 20 32 |buf[4] =| fnd & 2|
|000063c0| 35 35 3b 20 66 6e 64 20 | 2f 3d 20 32 35 36 3b 20 |55; fnd |/= 256; |
|000063d0| 62 75 66 5b 35 5d 20 3d | 20 66 6e 64 20 26 20 32 |buf[5] =| fnd & 2|
|000063e0| 35 35 3b 20 66 6e 64 20 | 2f 3d 20 32 35 36 3b 0a |55; fnd |/= 256;.|
|000063f0| 58 20 62 75 66 5b 36 5d | 20 3d 20 66 6e 64 20 26 |X buf[6]| = fnd &|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.