home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume4 / unaxcess / patch1 < prev    next >
SHell self-extracting ARchive  |  1986-11-30  |  7.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


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

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



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 53 75 62 6a 65 63 74 3a | 20 55 4e 61 58 63 65 73 |Subject:| UNaXces|
|00000010| 73 20 75 70 64 61 74 65 | 20 23 31 0a 4e 65 77 73 |s update| #1.News|
|00000020| 67 72 6f 75 70 73 3a 20 | 6d 6f 64 2e 73 6f 75 72 |groups: |mod.sour|
|00000030| 63 65 73 0a 41 70 70 72 | 6f 76 65 64 3a 20 6a 70 |ces.Appr|oved: jp|
|00000040| 6e 40 70 61 6e 64 61 2e | 55 55 43 50 0a 0a 4d 6f |n@panda.|UUCP..Mo|
|00000050| 64 2e 73 6f 75 72 63 65 | 73 3a 20 20 56 6f 6c 75 |d.source|s: Volu|
|00000060| 6d 65 20 34 2c 20 49 73 | 73 75 65 20 31 31 37 0a |me 4, Is|sue 117.|
|00000070| 53 75 62 6d 69 74 74 65 | 64 20 62 79 3a 20 67 65 |Submitte|d by: ge|
|00000080| 6e 72 61 64 21 64 65 63 | 76 61 78 21 63 77 72 75 |nrad!dec|vax!cwru|
|00000090| 65 63 6d 70 21 6e 63 6f | 61 73 74 21 61 6c 6c 62 |ecmp!nco|ast!allb|
|000000a0| 65 72 79 20 28 42 72 61 | 6e 64 6f 6e 20 53 2e 20 |ery (Bra|ndon S. |
|000000b0| 41 6c 6c 62 65 72 79 29 | 0a 0a 54 68 65 20 55 4e |Allbery)|..The UN|
|000000c0| 61 58 63 65 73 73 20 64 | 69 73 74 72 69 62 75 74 |aXcess d|istribut|
|000000d0| 69 6f 6e 20 63 6f 6e 74 | 61 69 6e 65 64 20 61 6e |ion cont|ained an|
|000000e0| 20 6f 75 74 2d 6f 66 2d | 64 61 74 65 20 52 45 41 | out-of-|date REA|
|000000f0| 44 4d 45 20 61 6e 64 20 | 69 6e 73 74 61 6c 6c 2e |DME and |install.|
|00000100| 73 68 20 77 68 69 63 68 | 0a 77 65 72 65 20 77 72 |sh which|.were wr|
|00000110| 69 74 74 65 6e 20 62 65 | 66 6f 72 65 20 74 68 65 |itten be|fore the|
|00000120| 20 55 44 4c 20 6d 6f 64 | 75 6c 65 20 77 61 73 20 | UDL mod|ule was |
|00000130| 61 64 64 65 64 20 74 6f | 20 55 4e 61 58 63 65 73 |added to| UNaXces|
|00000140| 73 2e 20 20 54 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |s. The |followin|
|00000150| 67 0a 63 6f 6e 74 65 78 | 74 20 64 69 66 66 20 28 |g.contex|t diff (|
|00000160| 73 75 69 74 61 62 6c 65 | 20 66 6f 72 20 69 6e 70 |suitable| for inp|
|00000170| 75 74 20 74 6f 20 70 61 | 74 63 68 29 20 63 6f 6e |ut to pa|tch) con|
|00000180| 74 61 69 6e 73 20 74 68 | 65 20 64 69 66 66 73 20 |tains th|e diffs |
|00000190| 72 65 71 75 69 72 65 64 | 20 74 6f 0a 75 70 67 72 |required| to.upgr|
|000001a0| 61 64 65 20 74 68 65 20 | 64 69 73 74 72 69 62 75 |ade the |distribu|
|000001b0| 74 65 64 20 55 4e 61 58 | 63 65 73 73 20 73 6f 75 |ted UNaX|cess sou|
|000001c0| 72 63 65 73 2e 20 20 20 | 54 68 65 20 63 68 61 6e |rces. |The chan|
|000001d0| 67 65 20 74 6f 20 69 6e | 73 74 61 6c 6c 2e 73 68 |ge to in|stall.sh|
|000001e0| 20 63 72 65 61 74 65 73 | 0a 61 6e 20 65 6d 70 74 | creates|.an empt|
|000001f0| 79 20 64 65 66 61 75 6c | 74 20 64 6f 77 6e 6c 6f |y defaul|t downlo|
|00000200| 61 64 20 64 69 72 65 63 | 74 6f 72 79 0a 0a 54 68 |ad direc|tory..Th|
|00000210| 69 73 20 75 70 67 72 61 | 64 65 20 61 6c 73 6f 20 |is upgra|de also |
|00000220| 69 6e 63 6c 75 64 65 73 | 20 61 20 43 20 63 6f 64 |includes| a C cod|
|00000230| 65 20 62 75 67 20 66 69 | 78 2c 20 77 68 65 72 65 |e bug fi|x, where|
|00000240| 20 61 6e 20 41 5f 57 49 | 54 4e 45 53 53 20 63 61 | an A_WI|TNESS ca|
|00000250| 6e 27 74 20 61 64 64 0a | 6d 65 73 73 61 67 65 73 |n't add.|messages|
|00000260| 20 74 6f 20 61 20 72 65 | 61 64 2d 6f 6e 6c 79 20 | to a re|ad-only |
|00000270| 63 6f 6e 66 65 72 65 6e | 63 65 2e 0a 0a 5b 20 54 |conferen|ce...[ T|
|00000280| 68 65 72 65 20 69 73 20 | 61 6c 73 6f 20 61 20 70 |here is |also a p|
|00000290| 61 74 63 68 20 74 6f 20 | 74 68 65 20 76 65 72 73 |atch to |the vers|
|000002a0| 69 6f 6e 20 6f 66 20 6d | 6b 63 6f 6e 66 20 70 72 |ion of m|kconf pr|
|000002b0| 6f 67 72 61 6d 20 64 69 | 73 74 72 69 62 75 74 65 |ogram di|stribute|
|000002c0| 64 20 77 69 74 68 0a 20 | 20 55 4e 61 58 63 65 73 |d with. | UNaXces|
|000002d0| 73 20 2d 20 74 68 69 73 | 20 69 73 20 6f 6e 65 20 |s - this| is one |
|000002e0| 49 20 77 72 6f 74 65 20 | 74 6f 20 72 65 70 6c 61 |I wrote |to repla|
|000002f0| 63 65 20 74 68 65 20 6f | 72 69 67 69 6e 61 6c 20 |ce the o|riginal |
|00000300| 6d 6b 63 6f 6e 66 20 74 | 68 61 74 20 68 61 64 0a |mkconf t|hat had.|
|00000310| 20 20 74 6f 20 62 65 20 | 69 6e 73 74 61 6c 6c 65 | to be |installe|
|00000320| 64 20 73 65 74 2d 75 69 | 64 20 74 6f 20 72 6f 6f |d set-ui|d to roo|
|00000330| 74 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |t | |
|00000340| 20 20 20 20 20 20 2d 20 | 6d 6f 64 65 72 61 74 6f | - |moderato|
|00000350| 72 0a 5d 0a 0a 59 6f 75 | 20 77 69 6c 6c 20 68 61 |r.]..You| will ha|
|00000360| 76 65 20 74 6f 20 75 6e | 73 68 61 72 20 74 68 65 |ve to un|shar the|
|00000370| 20 70 61 74 63 68 20 66 | 69 6c 65 73 2c 20 74 68 | patch f|iles, th|
|00000380| 65 6e 20 61 70 70 6c 79 | 20 70 61 74 63 68 20 6f |en apply| patch o|
|00000390| 6e 20 65 61 63 68 20 66 | 69 6c 65 0a 69 6e 64 69 |n each f|ile.indi|
|000003a0| 76 69 64 75 61 6c 6c 79 | 20 28 6f 72 20 6d 61 6b |vidually| (or mak|
|000003b0| 65 20 74 68 65 20 65 64 | 69 74 73 20 62 79 20 68 |e the ed|its by h|
|000003c0| 61 6e 64 29 2e 0a 0a 2d | 2d 2d 2d 2d 2d 2d 2d 2d |and)...-|--------|
|000003d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000003e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000003f0| 2d 2d 2d 0a 23 21 20 2f | 62 69 6e 2f 73 68 0a 23 |---.#! /|bin/sh.#|
|00000400| 20 54 68 69 73 20 69 73 | 20 61 20 73 68 65 6c 6c | This is| a shell|
|00000410| 20 61 72 63 68 69 76 65 | 2c 20 6d 65 61 6e 69 6e | archive|, meanin|
|00000420| 67 3a 0a 23 20 31 2e 20 | 52 65 6d 6f 76 65 20 65 |g:.# 1. |Remove e|
|00000430| 76 65 72 79 74 68 69 6e | 67 20 61 62 6f 76 65 20 |verythin|g above |
|00000440| 74 68 65 20 23 21 20 2f | 62 69 6e 2f 73 68 20 6c |the #! /|bin/sh l|
|00000450| 69 6e 65 2e 0a 23 20 32 | 2e 20 53 61 76 65 20 74 |ine..# 2|. Save t|
|00000460| 68 65 20 72 65 73 75 6c | 74 69 6e 67 20 74 65 78 |he resul|ting tex|
|00000470| 74 20 69 6e 20 61 20 66 | 69 6c 65 2e 0a 23 20 33 |t in a f|ile..# 3|
|00000480| 2e 20 45 78 65 63 75 74 | 65 20 74 68 65 20 66 69 |. Execut|e the fi|
|00000490| 6c 65 20 77 69 74 68 20 | 2f 62 69 6e 2f 73 68 20 |le with |/bin/sh |
|000004a0| 28 6e 6f 74 20 63 73 68 | 29 20 74 6f 20 63 72 65 |(not csh|) to cre|
|000004b0| 61 74 65 20 74 68 65 20 | 66 69 6c 65 73 3a 0a 23 |ate the |files:.#|
|000004c0| 09 52 45 41 44 4d 45 2e | 70 61 74 0a 23 09 69 6e |.README.|pat.#.in|
|000004d0| 73 74 61 6c 6c 2e 70 61 | 74 0a 23 09 6d 6b 63 6f |stall.pa|t.#.mkco|
|000004e0| 6e 66 2e 63 2e 70 61 74 | 0a 23 09 6d 73 67 2e 63 |nf.c.pat|.#.msg.c|
|000004f0| 2e 70 61 74 0a 23 20 54 | 68 69 73 20 61 72 63 68 |.pat.# T|his arch|
|00000500| 69 76 65 20 63 72 65 61 | 74 65 64 3a 20 4d 6f 6e |ive crea|ted: Mon|
|00000510| 20 4d 61 79 20 31 32 20 | 30 38 3a 31 38 3a 34 34 | May 12 |08:18:44|
|00000520| 20 31 39 38 36 0a 65 78 | 70 6f 72 74 20 50 41 54 | 1986.ex|port PAT|
|00000530| 48 3b 20 50 41 54 48 3d | 2f 62 69 6e 3a 24 50 41 |H; PATH=|/bin:$PA|
|00000540| 54 48 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 65 78 |TH.echo |shar: ex|
|00000550| 74 72 61 63 74 69 6e 67 | 20 22 27 52 45 41 44 4d |tracting| "'READM|
|00000560| 45 2e 70 61 74 27 22 20 | 27 28 31 39 38 32 20 63 |E.pat'" |'(1982 c|
|00000570| 68 61 72 61 63 74 65 72 | 73 29 27 0a 69 66 20 74 |haracter|s)'.if t|
|00000580| 65 73 74 20 2d 66 20 27 | 52 45 41 44 4d 45 2e 70 |est -f '|README.p|
|00000590| 61 74 27 0a 74 68 65 6e | 0a 09 65 63 68 6f 20 73 |at'.then|..echo s|
|000005a0| 68 61 72 3a 20 77 69 6c | 6c 20 6e 6f 74 20 6f 76 |har: wil|l not ov|
|000005b0| 65 72 2d 77 72 69 74 65 | 20 65 78 69 73 74 69 6e |er-write| existin|
|000005c0| 67 20 66 69 6c 65 20 22 | 27 52 45 41 44 4d 45 2e |g file "|'README.|
|000005d0| 70 61 74 27 22 0a 65 6c | 73 65 0a 63 61 74 20 3c |pat'".el|se.cat <|
|000005e0| 3c 20 5c 53 48 41 52 5f | 45 4f 46 20 3e 20 27 52 |< \SHAR_|EOF > 'R|
|000005f0| 45 41 44 4d 45 2e 70 61 | 74 27 0a 2a 2a 2a 20 2e |EADME.pa|t'.*** .|
|00000600| 2e 2f 74 65 6d 70 31 2f | 52 45 41 44 4d 45 09 4d |./temp1/|README.M|
|00000610| 6f 6e 20 4d 61 79 20 31 | 32 20 30 37 3a 33 36 3a |on May 1|2 07:36:|
|00000620| 35 36 20 31 39 38 36 0a | 2d 2d 2d 20 52 45 41 44 |56 1986.|--- READ|
|00000630| 4d 45 09 4d 6f 6e 20 4d | 61 79 20 31 32 20 30 37 |ME.Mon M|ay 12 07|
|00000640| 3a 34 31 3a 31 34 20 31 | 39 38 36 0a 2a 2a 2a 2a |:41:14 1|986.****|
|00000650| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 0a 2a 2a 2a 20 |********|***.*** |
|00000660| 31 35 31 2c 31 35 36 0a | 20 20 65 73 63 61 70 65 |151,156.| escape|
|00000670| 73 20 28 5c 6e 20 5c 72 | 20 5c 74 20 5c 62 20 5c |s (\n \r| \t \b \|
|00000680| 66 20 5c 65 20 5c 6e 6e | 6e 20 5c 61 29 20 28 5c |f \e \nn|n \a) (\|
|00000690| 61 20 69 73 20 62 65 6c | 6c 29 2e 20 20 43 6f 6d |a is bel|l). Com|
|000006a0| 6d 65 6e 74 73 20 61 72 | 65 20 69 6e 64 69 63 61 |ments ar|e indica|
|000006b0| 74 65 64 20 62 79 0a 20 | 20 23 3b 20 74 68 65 79 |ted by. | #; they|
|000006c0| 20 64 6f 20 4e 4f 54 20 | 68 61 76 65 20 74 6f 20 | do NOT |have to |
|000006d0| 62 65 20 61 74 20 74 68 | 65 20 62 65 67 69 6e 6e |be at th|e beginn|
|000006e0| 69 6e 67 20 6f 66 20 61 | 20 6c 69 6e 65 2e 0a 20 |ing of a| line.. |
|000006f0| 20 0a 20 20 55 4e 61 58 | 63 65 73 73 20 64 65 70 | . UNaX|cess dep|
|00000700| 65 6e 64 73 20 6f 6e 20 | 62 65 69 6e 67 20 73 65 |ends on |being se|
|00000710| 74 75 69 64 20 74 6f 20 | 69 74 73 20 6f 77 6e 65 |tuid to |its owne|
|00000720| 72 2c 20 6e 6f 74 20 6f | 6e 6c 79 20 66 6f 72 20 |r, not o|nly for |
|00000730| 70 65 72 6d 69 73 73 69 | 6f 6e 73 20 69 6e 0a 20 |permissi|ons in. |
|00000740| 20 74 68 65 20 42 42 53 | 2c 20 62 75 74 20 61 6c | the BBS|, but al|
|00000750| 73 6f 20 74 6f 20 69 6e | 73 75 72 65 20 74 68 61 |so to in|sure tha|
|00000760| 74 20 74 68 65 20 68 6f | 6d 65 20 64 69 72 65 63 |t the ho|me direc|
|00000770| 74 6f 72 79 20 28 63 6f | 6e 74 61 69 6e 69 6e 67 |tory (co|ntaining|
|00000780| 20 74 68 65 20 6d 65 73 | 73 61 67 65 0a 20 20 64 | the mes|sage. d|
|00000790| 61 74 61 62 61 73 65 20 | 61 6e 64 20 63 6f 6e 66 |atabase |and conf|
|000007a0| 69 67 20 66 69 6c 65 29 | 20 63 61 6e 20 62 65 20 |ig file)| can be |
|000007b0| 6c 6f 63 61 74 65 64 2e | 0a 0a 2d 2d 2d 20 31 35 |located.|..--- 15|
|000007c0| 31 2c 31 38 30 20 2d 2d | 2d 2d 2d 0a 20 20 65 73 |1,180 --|---. es|
|000007d0| 63 61 70 65 73 20 28 5c | 6e 20 5c 72 20 5c 74 20 |capes (\|n \r \t |
|000007e0| 5c 62 20 5c 66 20 5c 65 | 20 5c 6e 6e 6e 20 5c 61 |\b \f \e| \nnn \a|
|000007f0| 29 20 28 5c 61 20 69 73 | 20 62 65 6c 6c 29 2e 20 |) (\a is| bell). |
|00000800| 20 43 6f 6d 6d 65 6e 74 | 73 20 61 72 65 20 69 6e | Comment|s are in|
|00000810| 64 69 63 61 74 65 64 20 | 62 79 0a 20 20 23 3b 20 |dicated |by. #; |
|00000820| 74 68 65 79 20 64 6f 20 | 4e 4f 54 20 68 61 76 65 |they do |NOT have|
|00000830| 20 74 6f 20 62 65 20 61 | 74 20 74 68 65 20 62 65 | to be a|t the be|
|00000840| 67 69 6e 6e 69 6e 67 20 | 6f 66 20 61 20 6c 69 6e |ginning |of a lin|
|00000850| 65 2e 0a 20 20 0a 2b 20 | 2d 2d 2d 0a 2b 20 0a 2b |e.. .+ |---.+ .+|
|00000860| 20 54 68 65 20 75 70 2f | 64 6f 77 6e 6c 6f 61 64 | The up/|download|
|00000870| 20 28 55 44 4c 29 20 6d | 6f 64 75 6c 65 20 75 73 | (UDL) m|odule us|
|00000880| 65 73 20 61 20 6c 6f 67 | 20 66 69 6c 65 20 66 6f |es a log| file fo|
|00000890| 72 20 75 70 6c 6f 61 64 | 73 2c 20 61 6e 64 20 61 |r upload|s, and a|
|000008a0| 20 64 69 72 65 63 74 6f | 72 79 20 66 6f 72 0a 2b | directo|ry for.+|
|000008b0| 20 64 6f 77 6e 6c 6f 61 | 64 73 2e 20 20 42 6f 74 | downloa|ds. Bot|
|000008c0| 68 20 66 69 6c 65 73 20 | 61 72 65 20 63 72 65 61 |h files |are crea|
|000008d0| 74 65 64 20 62 79 20 74 | 68 65 20 69 6e 73 74 61 |ted by t|he insta|
|000008e0| 6c 6c 20 73 63 72 69 70 | 74 3b 20 22 75 70 6c 6f |ll scrip|t; "uplo|
|000008f0| 61 64 2d 6c 6f 67 22 20 | 69 73 0a 2b 20 65 6d 70 |ad-log" |is.+ emp|
|00000900| 74 79 2c 20 61 6e 64 20 | 22 64 69 72 65 63 74 6f |ty, and |"directo|
|00000910| 72 79 22 20 63 6f 6e 74 | 61 69 6e 73 20 6f 6e 65 |ry" cont|ains one|
|00000920| 20 6c 69 6e 65 3a 0a 2b | 20 0a 2b 20 09 62 72 61 | line:.+| .+ .bra|
|00000930| 6e 63 68 20 66 69 6c 65 | 20 47 45 4e 45 52 41 4c |nch file| GENERAL|
|00000940| 3b 20 3c 64 61 74 65 3e | 20 62 79 20 3c 73 79 73 |; <date>| by <sys|
|00000950| 6f 70 20 6e 61 6d 65 3e | 3a 20 47 65 6e 65 72 61 |op name>|: Genera|
|00000960| 6c 20 75 70 2f 64 6f 77 | 6e 6c 6f 61 64 73 0a 2b |l up/dow|nloads.+|
|00000970| 20 0a 2b 20 54 68 69 73 | 20 69 73 20 74 68 65 20 | .+ This| is the |
|00000980| 62 61 73 69 63 20 66 6f | 72 6d 61 74 20 6f 66 20 |basic fo|rmat of |
|00000990| 61 20 64 69 72 65 63 74 | 6f 72 79 20 65 6e 74 72 |a direct|ory entr|
|000009a0| 79 2e 20 20 54 68 65 20 | 77 6f 72 64 20 22 62 72 |y. The |word "br|
|000009b0| 61 6e 63 68 22 20 69 73 | 20 72 65 73 65 72 76 65 |anch" is| reserve|
|000009c0| 64 2c 0a 2b 20 61 6e 64 | 20 69 6e 64 69 63 61 74 |d,.+ and| indicat|
|000009d0| 65 73 20 74 68 61 74 20 | 74 68 69 73 20 69 73 20 |es that |this is |
|000009e0| 74 68 65 20 64 69 72 65 | 63 74 6f 72 79 20 65 6e |the dire|ctory en|
|000009f0| 74 72 79 20 66 6f 72 20 | 74 68 65 20 62 72 61 6e |try for |the bran|
|00000a00| 63 68 20 69 74 73 65 6c | 66 3b 20 66 69 6c 65 73 |ch itsel|f; files|
|00000a10| 0a 2b 20 69 6e 20 74 68 | 69 73 20 62 72 61 6e 63 |.+ in th|is branc|
|00000a20| 68 20 68 61 76 65 20 74 | 68 65 20 77 6f 72 64 20 |h have t|he word |
|00000a30| 22 62 72 61 6e 63 68 22 | 20 72 65 70 6c 61 63 65 |"branch"| replace|
|00000a40| 64 20 62 79 20 74 68 65 | 20 62 72 61 6e 63 68 27 |d by the| branch'|
|00000a50| 73 20 6e 61 6d 65 2e 20 | 20 54 68 65 72 65 20 69 |s name. | There i|
|00000a60| 73 0a 2b 20 6e 6f 20 77 | 61 79 20 74 6f 20 61 75 |s.+ no w|ay to au|
|00000a70| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 20 63 72 65 61 |tomatica|lly crea|
|00000a80| 74 65 20 6f 72 20 64 65 | 6c 65 74 65 20 66 69 6c |te or de|lete fil|
|00000a90| 65 73 20 6f 72 20 62 72 | 61 6e 63 68 65 73 3b 20 |es or br|anches; |
|00000aa0| 69 74 20 68 61 73 20 74 | 6f 20 62 65 20 64 6f 6e |it has t|o be don|
|00000ab0| 65 0a 2b 20 66 72 6f 6d | 20 74 68 65 20 73 68 65 |e.+ from| the she|
|00000ac0| 6c 6c 2e 20 20 28 4f 6e | 20 74 68 65 20 6f 74 68 |ll. (On| the oth|
|00000ad0| 65 72 20 68 61 6e 64 2c | 20 69 66 20 74 68 65 20 |er hand,| if the |
|00000ae0| 62 72 61 6e 63 68 20 68 | 61 73 20 61 20 28 55 4e |branch h|as a (UN|
|00000af0| 49 58 29 20 64 69 72 65 | 63 74 6f 72 79 20 69 6e |IX) dire|ctory in|
|00000b00| 0a 2b 20 74 68 65 20 22 | 75 70 6c 6f 61 64 73 22 |.+ the "|uploads"|
|00000b10| 20 64 69 72 65 63 74 6f | 72 79 2c 20 75 70 6c 6f | directo|ry, uplo|
|00000b20| 61 64 73 20 77 69 6c 6c | 20 62 65 20 6c 6f 67 67 |ads will| be logg|
|00000b30| 65 64 20 74 68 65 72 65 | 20 69 6e 20 73 75 63 68 |ed there| in such|
|00000b40| 20 61 20 77 61 79 20 74 | 68 61 74 20 74 68 65 0a | a way t|hat the.|
|00000b50| 2b 20 6c 6f 67 20 65 6e | 74 72 79 20 6d 61 79 20 |+ log en|try may |
|00000b60| 62 65 20 73 69 6d 70 6c | 79 20 63 6f 70 69 65 64 |be simpl|y copied|
|00000b70| 20 66 72 6f 6d 20 74 68 | 65 20 75 70 6c 6f 61 64 | from th|e upload|
|00000b80| 2d 6c 6f 67 20 74 6f 20 | 74 68 65 20 64 69 72 65 |-log to |the dire|
|00000b90| 63 74 6f 72 79 2e 29 0a | 2b 20 0a 2b 20 4e 6f 74 |ctory.).|+ .+ Not|
|00000ba0| 65 20 74 68 61 74 20 65 | 61 63 68 20 62 72 61 6e |e that e|ach bran|
|00000bb0| 63 68 20 69 73 20 72 65 | 70 72 65 73 65 6e 74 65 |ch is re|presente|
|00000bc0| 64 20 62 79 20 61 20 55 | 4e 49 58 20 64 69 72 65 |d by a U|NIX dire|
|00000bd0| 63 74 6f 72 79 20 69 6e | 20 74 68 65 20 22 6c 69 |ctory in| the "li|
|00000be0| 62 72 61 72 79 22 0a 2b | 20 64 69 72 65 63 74 6f |brary".+| directo|
|00000bf0| 72 79 2e 20 20 54 68 65 | 20 6e 61 6d 65 20 73 68 |ry. The| name sh|
|00000c00| 6f 75 6c 64 20 62 65 20 | 6c 6f 77 65 72 63 61 73 |ould be |lowercas|
|00000c10| 65 2c 20 61 6c 74 68 6f | 75 67 68 20 75 73 65 72 |e, altho|ugh user|
|00000c20| 20 69 6e 70 75 74 20 6f | 66 20 74 68 65 20 6e 61 | input o|f the na|
|00000c30| 6d 65 0a 2b 20 61 6e 64 | 20 74 68 65 20 6e 61 6d |me.+ and| the nam|
|00000c40| 65 20 6c 69 73 74 65 64 | 20 69 6e 20 74 68 65 20 |e listed| in the |
|00000c50| 22 64 69 72 65 63 74 6f | 72 79 22 20 66 69 6c 65 |"directo|ry" file|
|00000c60| 20 61 72 65 20 63 61 73 | 65 2d 69 6e 64 65 70 65 | are cas|e-indepe|
|00000c70| 6e 64 65 6e 74 2e 20 20 | 49 66 20 75 70 6c 6f 61 |ndent. |If uploa|
|00000c80| 64 73 0a 2b 20 61 72 65 | 20 74 6f 20 62 65 20 70 |ds.+ are| to be p|
|00000c90| 65 72 6d 69 74 74 65 64 | 2c 20 61 20 64 69 72 65 |ermitted|, a dire|
|00000ca0| 63 74 6f 72 79 20 6f 66 | 20 74 68 65 20 73 61 6d |ctory of| the sam|
|00000cb0| 65 20 6e 61 6d 65 20 73 | 68 6f 75 6c 64 20 62 65 |e name s|hould be|
|00000cc0| 20 63 72 65 61 74 65 64 | 20 69 6e 20 74 68 65 0a | created| in the.|
|00000cd0| 2b 20 22 75 70 6c 6f 61 | 64 22 20 64 69 72 65 63 |+ "uploa|d" direc|
|00000ce0| 74 6f 72 79 2e 0a 2b 20 | 0a 2b 20 2d 2d 2d 0a 2b |tory..+ |.+ ---.+|
|00000cf0| 20 0a 20 20 55 4e 61 58 | 63 65 73 73 20 64 65 70 | . UNaX|cess dep|
|00000d00| 65 6e 64 73 20 6f 6e 20 | 62 65 69 6e 67 20 73 65 |ends on |being se|
|00000d10| 74 75 69 64 20 74 6f 20 | 69 74 73 20 6f 77 6e 65 |tuid to |its owne|
|00000d20| 72 2c 20 6e 6f 74 20 6f | 6e 6c 79 20 66 6f 72 20 |r, not o|nly for |
|00000d30| 70 65 72 6d 69 73 73 69 | 6f 6e 73 20 69 6e 0a 20 |permissi|ons in. |
|00000d40| 20 74 68 65 20 42 42 53 | 2c 20 62 75 74 20 61 6c | the BBS|, but al|
|00000d50| 73 6f 20 74 6f 20 69 6e | 73 75 72 65 20 74 68 61 |so to in|sure tha|
|00000d60| 74 20 74 68 65 20 68 6f | 6d 65 20 64 69 72 65 63 |t the ho|me direc|
|00000d70| 74 6f 72 79 20 28 63 6f | 6e 74 61 69 6e 69 6e 67 |tory (co|ntaining|
|00000d80| 20 74 68 65 20 6d 65 73 | 73 61 67 65 0a 20 20 64 | the mes|sage. d|
|00000d90| 61 74 61 62 61 73 65 20 | 61 6e 64 20 63 6f 6e 66 |atabase |and conf|
|00000da0| 69 67 20 66 69 6c 65 29 | 20 63 61 6e 20 62 65 20 |ig file)| can be |
|00000db0| 6c 6f 63 61 74 65 64 2e | 0a 53 48 41 52 5f 45 4f |located.|.SHAR_EO|
|00000dc0| 46 0a 69 66 20 74 65 73 | 74 20 31 39 38 32 20 2d |F.if tes|t 1982 -|
|00000dd0| 6e 65 20 22 60 77 63 20 | 2d 63 20 3c 20 27 52 45 |ne "`wc |-c < 'RE|
|00000de0| 41 44 4d 45 2e 70 61 74 | 27 60 22 0a 74 68 65 6e |ADME.pat|'`".then|
|00000df0| 0a 09 65 63 68 6f 20 73 | 68 61 72 3a 20 65 72 72 |..echo s|har: err|
|00000e00| 6f 72 20 74 72 61 6e 73 | 6d 69 74 74 69 6e 67 20 |or trans|mitting |
|00000e10| 22 27 52 45 41 44 4d 45 | 2e 70 61 74 27 22 20 27 |"'README|.pat'" '|
|00000e20| 28 73 68 6f 75 6c 64 20 | 68 61 76 65 20 62 65 65 |(should |have bee|
|00000e30| 6e 20 31 39 38 32 20 63 | 68 61 72 61 63 74 65 72 |n 1982 c|haracter|
|00000e40| 73 29 27 0a 66 69 0a 66 | 69 0a 65 63 68 6f 20 73 |s)'.fi.f|i.echo s|
|00000e50| 68 61 72 3a 20 65 78 74 | 72 61 63 74 69 6e 67 20 |har: ext|racting |
|00000e60| 22 27 69 6e 73 74 61 6c | 6c 2e 70 61 74 27 22 20 |"'instal|l.pat'" |
|00000e70| 27 28 31 38 31 37 20 63 | 68 61 72 61 63 74 65 72 |'(1817 c|haracter|
|00000e80| 73 29 27 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |s)'.if t|est -f '|
|00000e90| 69 6e 73 74 61 6c 6c 2e | 70 61 74 27 0a 74 68 65 |install.|pat'.the|
|00000ea0| 6e 0a 09 65 63 68 6f 20 | 73 68 61 72 3a 20 77 69 |n..echo |shar: wi|
|00000eb0| 6c 6c 20 6e 6f 74 20 6f | 76 65 72 2d 77 72 69 74 |ll not o|ver-writ|
|00000ec0| 65 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |e existi|ng file |
|00000ed0| 22 27 69 6e 73 74 61 6c | 6c 2e 70 61 74 27 22 0a |"'instal|l.pat'".|
|00000ee0| 65 6c 73 65 0a 63 61 74 | 20 3c 3c 20 5c 53 48 41 |else.cat| << \SHA|
|00000ef0| 52 5f 45 4f 46 20 3e 20 | 27 69 6e 73 74 61 6c 6c |R_EOF > |'install|
|00000f00| 2e 70 61 74 27 0a 2a 2a | 2a 20 2e 2e 2f 74 65 6d |.pat'.**|* ../tem|
|00000f10| 70 31 2f 55 74 69 6c 69 | 74 69 65 73 2f 69 6e 73 |p1/Utili|ties/ins|
|00000f20| 74 61 6c 6c 2e 73 68 09 | 4d 6f 6e 20 4d 61 79 20 |tall.sh.|Mon May |
|00000f30| 31 32 20 30 37 3a 33 37 | 3a 32 31 20 31 39 38 36 |12 07:37|:21 1986|
|00000f40| 0a 2d 2d 2d 20 55 74 69 | 6c 69 74 69 65 73 2f 69 |.--- Uti|lities/i|
|00000f50| 6e 73 74 61 6c 6c 2e 73 | 68 09 4d 6f 6e 20 4d 61 |nstall.s|h.Mon Ma|
|00000f60| 79 20 31 32 20 30 37 3a | 34 33 3a 35 38 20 31 39 |y 12 07:|43:58 19|
|00000f70| 38 36 0a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |86.*****|********|
|00000f80| 2a 2a 0a 2a 2a 2a 20 31 | 39 2c 32 34 0a 20 20 3a |**.*** 1|9,24. :|
|00000f90| 0a 20 20 3a 20 59 65 73 | 2c 20 74 68 65 20 22 2d |. : Yes|, the "-|
|00000fa0| 3e 20 2d 3e 22 20 62 75 | 73 69 6e 65 73 73 20 69 |> ->" bu|siness i|
|00000fb0| 73 20 63 6f 70 70 65 64 | 20 66 72 6f 6d 20 55 6e |s copped| from Un|
|00000fc0| 69 66 79 2e 20 20 49 20 | 73 69 6e 63 65 72 65 6c |ify. I |sincerel|
|00000fd0| 79 20 64 6f 75 62 74 20 | 74 68 61 74 20 69 74 20 |y doubt |that it |
|00000fe0| 69 73 0a 20 20 3a 20 63 | 6f 70 79 72 69 67 68 74 |is. : c|opyright|
|00000ff0| 65 64 2c 20 61 6e 64 20 | 69 74 20 69 73 20 66 61 |ed, and |it is fa|
|00001000| 69 72 6c 79 20 6f 62 76 | 69 6f 75 73 2e 0a 20 20 |irly obv|ious.. |
|00001010| 0a 20 20 69 66 20 74 65 | 73 74 20 21 20 2d 77 20 |. if te|st ! -w |
|00001020| 2f 65 74 63 2f 70 61 73 | 73 77 64 3b 20 74 68 65 |/etc/pas|swd; the|
|00001030| 6e 0a 20 20 09 65 63 68 | 6f 20 22 49 27 6d 20 6e |n. .ech|o "I'm n|
|00001040| 6f 74 20 72 75 6e 6e 69 | 6e 67 20 61 73 20 72 6f |ot runni|ng as ro|
|00001050| 6f 74 2e 20 20 50 6c 65 | 61 73 65 20 61 73 6b 20 |ot. Ple|ase ask |
|00001060| 61 20 73 79 73 74 65 6d | 20 61 64 6d 69 6e 69 73 |a system| adminis|
|00001070| 74 72 61 74 6f 72 20 74 | 6f 20 72 75 6e 20 74 68 |trator t|o run th|
|00001080| 69 73 20 69 6e 73 74 61 | 6c 6c 22 0a 0a 2d 2d 2d |is insta|ll"..---|
|00001090| 20 31 39 2c 32 35 20 2d | 2d 2d 2d 2d 0a 20 20 3a | 19,25 -|----. :|
|000010a0| 0a 20 20 3a 20 59 65 73 | 2c 20 74 68 65 20 22 2d |. : Yes|, the "-|
|000010b0| 3e 20 2d 3e 22 20 62 75 | 73 69 6e 65 73 73 20 69 |> ->" bu|siness i|
|000010c0| 73 20 63 6f 70 70 65 64 | 20 66 72 6f 6d 20 55 6e |s copped| from Un|
|000010d0| 69 66 79 2e 20 20 49 20 | 73 69 6e 63 65 72 65 6c |ify. I |sincerel|
|000010e0| 79 20 64 6f 75 62 74 20 | 74 68 61 74 20 69 74 20 |y doubt |that it |
|000010f0| 69 73 0a 20 20 3a 20 63 | 6f 70 79 72 69 67 68 74 |is. : c|opyright|
|00001100| 65 64 2c 20 61 6e 64 20 | 69 74 20 69 73 20 66 61 |ed, and |it is fa|
|00001110| 69 72 6c 79 20 6f 62 76 | 69 6f 75 73 2e 0a 2b 20 |irly obv|ious..+ |
|00001120| 3a 0a 20 20 0a 20 20 69 | 66 20 74 65 73 74 20 21 |:. . i|f test !|
|00001130| 20 2d 77 20 2f 65 74 63 | 2f 70 61 73 73 77 64 3b | -w /etc|/passwd;|
|00001140| 20 74 68 65 6e 0a 20 20 | 09 65 63 68 6f 20 22 49 | then. |.echo "I|
|00001150| 27 6d 20 6e 6f 74 20 72 | 75 6e 6e 69 6e 67 20 61 |'m not r|unning a|
|00001160| 73 20 72 6f 6f 74 2e 20 | 20 50 6c 65 61 73 65 20 |s root. | Please |
|00001170| 61 73 6b 20 61 20 73 79 | 73 74 65 6d 20 61 64 6d |ask a sy|stem adm|
|00001180| 69 6e 69 73 74 72 61 74 | 6f 72 20 74 6f 20 72 75 |inistrat|or to ru|
|00001190| 6e 20 74 68 69 73 20 69 | 6e 73 74 61 6c 6c 22 0a |n this i|nstall".|
|000011a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 0a |********|*******.|
|000011b0| 2a 2a 2a 20 33 39 38 2c | 34 30 33 0a 20 20 63 68 |*** 398,|403. ch|
|000011c0| 6f 77 6e 20 24 55 41 4f | 57 4e 45 52 20 24 55 41 |own $UAO|WNER $UA|
|000011d0| 48 4f 4d 45 2f 75 73 65 | 72 66 69 6c 65 0a 20 20 |HOME/use|rfile. |
|000011e0| 63 68 6d 6f 64 20 36 34 | 34 20 24 55 41 48 4f 4d |chmod 64|4 $UAHOM|
|000011f0| 45 2f 75 73 65 72 66 69 | 6c 65 0a 20 20 3a 20 65 |E/userfi|le. : e|
|00001200| 6e 64 20 6f 66 20 75 73 | 65 72 66 69 6c 65 20 69 |nd of us|erfile i|
|00001210| 6e 73 74 61 6c 6c 61 74 | 69 6f 6e 0a 20 20 0a 20 |nstallat|ion. . |
|00001220| 20 65 63 68 6f 20 22 22 | 0a 20 20 65 63 68 6f 20 | echo ""|. echo |
|00001230| 22 49 20 61 6d 20 67 6f | 69 6e 67 20 74 6f 20 63 |"I am go|ing to c|
|00001240| 72 65 61 74 65 20 61 20 | 73 69 6d 70 6c 65 20 6e |reate a |simple n|
|00001250| 65 77 2d 75 73 65 72 20 | 62 75 6c 6c 65 74 69 6e |ew-user |bulletin|
|00001260| 2e 20 20 49 74 20 69 73 | 20 79 6f 75 72 20 6a 6f |. It is| your jo|
|00001270| 62 20 74 6f 20 63 68 61 | 6e 67 65 20 69 74 22 0a |b to cha|nge it".|
|00001280| 0a 2d 2d 2d 20 33 39 39 | 2c 34 32 30 20 2d 2d 2d |.--- 399|,420 ---|
|00001290| 2d 2d 0a 20 20 63 68 6f | 77 6e 20 24 55 41 4f 57 |--. cho|wn $UAOW|
|000012a0| 4e 45 52 20 24 55 41 48 | 4f 4d 45 2f 75 73 65 72 |NER $UAH|OME/user|
|000012b0| 66 69 6c 65 0a 20 20 63 | 68 6d 6f 64 20 36 34 34 |file. c|hmod 644|
|000012c0| 20 24 55 41 48 4f 4d 45 | 2f 75 73 65 72 66 69 6c | $UAHOME|/userfil|
|000012d0| 65 0a 20 20 3a 20 65 6e | 64 20 6f 66 20 75 73 65 |e. : en|d of use|
|000012e0| 72 66 69 6c 65 20 69 6e | 73 74 61 6c 6c 61 74 69 |rfile in|stallati|
|000012f0| 6f 6e 0a 2b 20 0a 2b 20 | 65 63 68 6f 20 22 22 0a |on.+ .+ |echo "".|
|00001300| 2b 20 74 6f 64 61 79 3d | 22 60 64 61 74 65 20 7c |+ today=|"`date ||
|00001310| 20 73 65 64 20 2d 65 20 | 27 73 2f 5e 2e 2e 2e 20 | sed -e |'s/^... |
|00001320| 5c 28 2e 2e 2e 5c 29 20 | 20 2a 5c 28 5b 30 2d 39 |\(...\) | *\([0-9|
|00001330| 5d 5b 30 2d 39 5d 2a 5c | 29 20 5b 5e 20 5d 5b 5e |][0-9]*\|) [^ ][^|
|00001340| 20 5d 2a 20 31 39 5c 28 | 2e 2e 5c 29 24 2f 5c 31 | ]* 19\(|..\)$/\1|
|00001350| 5c 2f 5c 32 5c 2f 5c 33 | 2f 27 60 22 0a 2b 20 74 |\/\2\/\3|/'`".+ t|
|00001360| 6f 64 61 79 3d 22 60 65 | 63 68 6f 20 24 74 6f 64 |oday="`e|cho $tod|
|00001370| 61 79 20 7c 20 73 65 64 | 20 2d 65 20 73 2f 4a 61 |ay | sed| -e s/Ja|
|00001380| 6e 2f 31 2f 20 2d 65 20 | 73 2f 46 65 62 2f 32 2f |n/1/ -e |s/Feb/2/|
|00001390| 20 2d 65 20 73 2f 4d 61 | 72 2f 33 2f 20 2d 65 20 | -e s/Ma|r/3/ -e |
|000013a0| 73 2f 41 70 72 2f 34 2f | 20 2d 65 20 73 2f 4d 61 |s/Apr/4/| -e s/Ma|
|000013b0| 79 2f 35 2f 20 2d 65 20 | 73 2f 4a 75 6e 2f 36 2f |y/5/ -e |s/Jun/6/|
|000013c0| 60 22 0a 2b 20 74 6f 64 | 61 79 3d 22 60 65 63 68 |`".+ tod|ay="`ech|
|000013d0| 6f 20 24 74 6f 64 61 79 | 20 7c 20 73 65 64 20 2d |o $today| | sed -|
|000013e0| 65 20 73 2f 4a 75 6c 2f | 37 2f 20 2d 65 20 73 2f |e s/Jul/|7/ -e s/|
|000013f0| 41 75 67 2f 38 2f 20 2d | 65 20 73 2f 53 65 70 2f |Aug/8/ -|e s/Sep/|
|00001400| 39 2f 20 2d 65 20 73 2f | 4f 63 74 2f 31 30 20 2d |9/ -e s/|Oct/10 -|
|00001410| 65 20 73 2f 4e 6f 76 2f | 31 31 2f 20 2d 65 20 73 |e s/Nov/|11/ -e s|
|00001420| 2f 44 65 63 2f 31 32 2f | 60 22 0a 2b 20 65 63 68 |/Dec/12/|`".+ ech|
|00001430| 6f 20 22 43 72 65 61 74 | 69 6e 67 20 24 55 41 48 |o "Creat|ing $UAH|
|00001440| 4f 4d 45 2f 64 69 72 65 | 63 74 6f 72 79 2e 2e 2e |OME/dire|ctory...|
|00001450| 22 0a 2b 20 63 61 74 20 | 3c 3c 20 2d 2d 4c 49 42 |".+ cat |<< --LIB|
|00001460| 43 41 54 4c 47 2d 2d 20 | 3e 20 24 55 41 48 4f 4d |CATLG-- |> $UAHOM|
|00001470| 45 2f 64 69 72 65 63 74 | 6f 72 79 0a 2b 20 62 72 |E/direct|ory.+ br|
|00001480| 61 6e 63 68 20 66 69 6c | 65 20 47 45 4e 45 52 41 |anch fil|e GENERA|
|00001490| 4c 3b 20 24 74 6f 64 61 | 79 20 62 79 20 24 73 79 |L; $toda|y by $sy|
|000014a0| 73 6f 70 3a 20 47 65 6e | 65 72 61 6c 20 75 70 2f |sop: Gen|eral up/|
|000014b0| 64 6f 77 6e 6c 6f 61 64 | 69 6e 67 0a 2b 20 2d 2d |download|ing.+ --|
|000014c0| 4c 49 42 43 41 54 4c 47 | 2d 2d 0a 2b 20 63 68 6f |LIBCATLG|--.+ cho|
|000014d0| 77 6e 20 24 55 41 4f 57 | 4e 45 52 20 24 55 41 48 |wn $UAOW|NER $UAH|
|000014e0| 4f 4d 45 2f 64 69 72 65 | 63 74 6f 72 79 0a 2b 20 |OME/dire|ctory.+ |
|000014f0| 63 68 6d 6f 64 20 36 34 | 34 20 24 55 41 48 4f 4d |chmod 64|4 $UAHOM|
|00001500| 45 2f 64 69 72 65 63 74 | 6f 72 79 0a 2b 20 65 63 |E/direct|ory.+ ec|
|00001510| 68 6f 20 22 43 72 65 61 | 74 69 6e 67 20 24 55 41 |ho "Crea|ting $UA|
|00001520| 48 4f 4d 45 2f 75 70 6c | 6f 61 64 2d 6c 6f 67 2e |HOME/upl|oad-log.|
|00001530| 2e 2e 22 0a 2b 20 63 70 | 20 2f 64 65 76 2f 6e 75 |..".+ cp| /dev/nu|
|00001540| 6c 6c 20 24 55 41 48 4f | 4d 45 2f 75 70 6c 6f 61 |ll $UAHO|ME/uploa|
|00001550| 64 2d 6c 6f 67 0a 2b 20 | 63 68 6f 77 6e 20 24 55 |d-log.+ |chown $U|
|00001560| 41 4f 57 4e 45 52 20 24 | 55 41 48 4f 4d 45 2f 75 |AOWNER $|UAHOME/u|
|00001570| 70 6c 6f 61 64 2d 6c 6f | 67 0a 2b 20 63 68 6d 6f |pload-lo|g.+ chmo|
|00001580| 64 20 36 34 34 20 24 55 | 41 48 4f 4d 45 2f 75 70 |d 644 $U|AHOME/up|
|00001590| 6c 6f 61 64 2d 6c 6f 67 | 0a 2b 20 3a 20 65 6e 64 |load-log|.+ : end|
|000015a0| 20 6f 66 20 64 69 72 65 | 63 74 6f 72 79 20 69 6e | of dire|ctory in|
|000015b0| 73 74 61 6c 6c 61 74 69 | 6f 6e 0a 20 20 0a 20 20 |stallati|on. . |
|000015c0| 65 63 68 6f 20 22 22 0a | 20 20 65 63 68 6f 20 22 |echo "".| echo "|
|000015d0| 49 20 61 6d 20 67 6f 69 | 6e 67 20 74 6f 20 63 72 |I am goi|ng to cr|
|000015e0| 65 61 74 65 20 61 20 73 | 69 6d 70 6c 65 20 6e 65 |eate a s|imple ne|
|000015f0| 77 2d 75 73 65 72 20 62 | 75 6c 6c 65 74 69 6e 2e |w-user b|ulletin.|
|00001600| 20 20 49 74 20 69 73 20 | 79 6f 75 72 20 6a 6f 62 | It is |your job|
|00001610| 20 74 6f 20 63 68 61 6e | 67 65 20 69 74 22 0a 53 | to chan|ge it".S|
|00001620| 48 41 52 5f 45 4f 46 0a | 69 66 20 74 65 73 74 20 |HAR_EOF.|if test |
|00001630| 31 38 31 37 20 2d 6e 65 | 20 22 60 77 63 20 2d 63 |1817 -ne| "`wc -c|
|00001640| 20 3c 20 27 69 6e 73 74 | 61 6c 6c 2e 70 61 74 27 | < 'inst|all.pat'|
|00001650| 60 22 0a 74 68 65 6e 0a | 09 65 63 68 6f 20 73 68 |`".then.|.echo sh|
|00001660| 61 72 3a 20 65 72 72 6f | 72 20 74 72 61 6e 73 6d |ar: erro|r transm|
|00001670| 69 74 74 69 6e 67 20 22 | 27 69 6e 73 74 61 6c 6c |itting "|'install|
|00001680| 2e 70 61 74 27 22 20 27 | 28 73 68 6f 75 6c 64 20 |.pat'" '|(should |
|00001690| 68 61 76 65 20 62 65 65 | 6e 20 31 38 31 37 20 63 |have bee|n 1817 c|
|000016a0| 68 61 72 61 63 74 65 72 | 73 29 27 0a 66 69 0a 66 |haracter|s)'.fi.f|
|000016b0| 69 0a 65 63 68 6f 20 73 | 68 61 72 3a 20 65 78 74 |i.echo s|har: ext|
|000016c0| 72 61 63 74 69 6e 67 20 | 22 27 6d 6b 63 6f 6e 66 |racting |"'mkconf|
|000016d0| 2e 63 2e 70 61 74 27 22 | 20 27 28 34 34 32 20 63 |.c.pat'"| '(442 c|
|000016e0| 68 61 72 61 63 74 65 72 | 73 29 27 0a 69 66 20 74 |haracter|s)'.if t|
|000016f0| 65 73 74 20 2d 66 20 27 | 6d 6b 63 6f 6e 66 2e 63 |est -f '|mkconf.c|
|00001700| 2e 70 61 74 27 0a 74 68 | 65 6e 0a 09 65 63 68 6f |.pat'.th|en..echo|
|00001710| 20 73 68 61 72 3a 20 77 | 69 6c 6c 20 6e 6f 74 20 | shar: w|ill not |
|00001720| 6f 76 65 72 2d 77 72 69 | 74 65 20 65 78 69 73 74 |over-wri|te exist|
|00001730| 69 6e 67 20 66 69 6c 65 | 20 22 27 6d 6b 63 6f 6e |ing file| "'mkcon|
|00001740| 66 2e 63 2e 70 61 74 27 | 22 0a 65 6c 73 65 0a 63 |f.c.pat'|".else.c|
|00001750| 61 74 20 3c 3c 20 5c 53 | 48 41 52 5f 45 4f 46 20 |at << \S|HAR_EOF |
|00001760| 3e 20 27 6d 6b 63 6f 6e | 66 2e 63 2e 70 61 74 27 |> 'mkcon|f.c.pat'|
|00001770| 0a 2a 2a 2a 20 2e 2e 2f | 74 65 6d 70 31 2f 55 74 |.*** ../|temp1/Ut|
|00001780| 69 6c 69 74 69 65 73 2f | 6d 6b 63 6f 6e 66 2e 63 |ilities/|mkconf.c|
|00001790| 09 4d 6f 6e 20 4d 61 79 | 20 31 32 20 30 37 3a 33 |.Mon May| 12 07:3|
|000017a0| 37 3a 30 31 20 31 39 38 | 36 0a 2d 2d 2d 20 55 74 |7:01 198|6.--- Ut|
|000017b0| 69 6c 69 74 69 65 73 2f | 6d 6b 63 6f 6e 66 2e 63 |ilities/|mkconf.c|
|000017c0| 09 4d 6f 6e 20 4d 61 79 | 20 31 32 20 30 37 3a 35 |.Mon May| 12 07:5|
|000017d0| 30 3a 31 32 20 31 39 38 | 36 0a 2a 2a 2a 2a 2a 2a |0:12 198|6.******|
|000017e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 0a 2a 2a 2a 20 31 35 |********|*.*** 15|
|000017f0| 2c 32 30 0a 20 20 20 20 | 20 20 7b 0a 20 20 20 20 |,20. | {. |
|00001800| 20 20 73 65 74 75 69 64 | 28 67 65 74 65 75 69 64 | setuid|(geteuid|
|00001810| 28 29 29 3b 0a 20 20 20 | 20 20 20 75 6d 61 73 6b |());. | umask|
|00001820| 28 30 32 32 29 3b 0a 20 | 20 20 20 20 20 65 78 65 |(022);. | exe|
|00001830| 63 76 70 28 22 6d 6b 64 | 69 72 22 2c 20 61 72 67 |cvp("mkd|ir", arg|
|00001840| 76 29 3b 0a 20 20 20 20 | 20 20 7d 0a 20 20 0a 0a |v);. | }. ..|
|00001850| 2d 2d 2d 20 31 35 2c 32 | 33 20 2d 2d 2d 2d 2d 0a |--- 15,2|3 -----.|
|00001860| 20 20 20 20 20 20 7b 0a | 20 20 20 20 20 20 73 65 | {.| se|
|00001870| 74 75 69 64 28 67 65 74 | 65 75 69 64 28 29 29 3b |tuid(get|euid());|
|00001880| 0a 20 20 20 20 20 20 75 | 6d 61 73 6b 28 30 32 32 |. u|mask(022|
|00001890| 29 3b 0a 2b 20 20 20 20 | 20 2f 2a 20 6f 6f 70 73 |);.+ | /* oops|
|000018a0| 2e 20 20 55 4e 61 58 63 | 65 73 73 20 69 73 20 70 |. UNaXc|ess is p|
|000018b0| 61 73 73 69 6e 67 20 74 | 77 6f 20 61 72 67 73 20 |assing t|wo args |
|000018c0| 2d 20 6f 6e 6c 79 20 74 | 68 65 20 66 69 72 73 74 |- only t|he first|
|000018d0| 20 69 73 20 77 61 6e 74 | 65 64 20 2a 2f 0a 2b 20 | is want|ed */.+ |
|000018e0| 20 20 20 20 69 66 20 28 | 61 72 67 63 20 3e 3d 20 | if (|argc >= |
|000018f0| 33 29 0a 2b 20 09 61 72 | 67 76 5b 33 5d 20 3d 20 |3).+ .ar|gv[3] = |
|00001900| 30 3b 0a 20 20 20 20 20 | 20 65 78 65 63 76 70 28 |0;. | execvp(|
|00001910| 22 6d 6b 64 69 72 22 2c | 20 61 72 67 76 29 3b 0a |"mkdir",| argv);.|
|00001920| 20 20 20 20 20 20 7d 0a | 20 20 0a 53 48 41 52 5f | }.| .SHAR_|
|00001930| 45 4f 46 0a 69 66 20 74 | 65 73 74 20 34 34 32 20 |EOF.if t|est 442 |
|00001940| 2d 6e 65 20 22 60 77 63 | 20 2d 63 20 3c 20 27 6d |-ne "`wc| -c < 'm|
|00001950| 6b 63 6f 6e 66 2e 63 2e | 70 61 74 27 60 22 0a 74 |kconf.c.|pat'`".t|
|00001960| 68 65 6e 0a 09 65 63 68 | 6f 20 73 68 61 72 3a 20 |hen..ech|o shar: |
|00001970| 65 72 72 6f 72 20 74 72 | 61 6e 73 6d 69 74 74 69 |error tr|ansmitti|
|00001980| 6e 67 20 22 27 6d 6b 63 | 6f 6e 66 2e 63 2e 70 61 |ng "'mkc|onf.c.pa|
|00001990| 74 27 22 20 27 28 73 68 | 6f 75 6c 64 20 68 61 76 |t'" '(sh|ould hav|
|000019a0| 65 20 62 65 65 6e 20 34 | 34 32 20 63 68 61 72 61 |e been 4|42 chara|
|000019b0| 63 74 65 72 73 29 27 0a | 66 69 0a 66 69 0a 65 63 |cters)'.|fi.fi.ec|
|000019c0| 68 6f 20 73 68 61 72 3a | 20 65 78 74 72 61 63 74 |ho shar:| extract|
|000019d0| 69 6e 67 20 22 27 6d 73 | 67 2e 63 2e 70 61 74 27 |ing "'ms|g.c.pat'|
|000019e0| 22 20 27 28 36 34 30 20 | 63 68 61 72 61 63 74 65 |" '(640 |characte|
|000019f0| 72 73 29 27 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |rs)'.if |test -f |
|00001a00| 27 6d 73 67 2e 63 2e 70 | 61 74 27 0a 74 68 65 6e |'msg.c.p|at'.then|
|00001a10| 0a 09 65 63 68 6f 20 73 | 68 61 72 3a 20 77 69 6c |..echo s|har: wil|
|00001a20| 6c 20 6e 6f 74 20 6f 76 | 65 72 2d 77 72 69 74 65 |l not ov|er-write|
|00001a30| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 22 | existin|g file "|
|00001a40| 27 6d 73 67 2e 63 2e 70 | 61 74 27 22 0a 65 6c 73 |'msg.c.p|at'".els|
|00001a50| 65 0a 63 61 74 20 3c 3c | 20 5c 53 48 41 52 5f 45 |e.cat <<| \SHAR_E|
|00001a60| 4f 46 20 3e 20 27 6d 73 | 67 2e 63 2e 70 61 74 27 |OF > 'ms|g.c.pat'|
|00001a70| 0a 2a 2a 2a 20 2e 2e 2f | 74 65 6d 70 31 2f 6d 73 |.*** ../|temp1/ms|
|00001a80| 67 2e 63 09 4d 6f 6e 20 | 4d 61 79 20 31 32 20 30 |g.c.Mon |May 12 0|
|00001a90| 37 3a 33 38 3a 30 30 20 | 31 39 38 36 0a 2d 2d 2d |7:38:00 |1986.---|
|00001aa0| 20 6d 73 67 2e 63 09 4d | 6f 6e 20 4d 61 79 20 31 | msg.c.M|on May 1|
|00001ab0| 32 20 30 37 3a 34 36 3a | 30 39 20 31 39 38 36 0a |2 07:46:|09 1986.|
|00001ac0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 0a |********|*******.|
|00001ad0| 2a 2a 2a 20 35 31 34 2c | 35 32 30 0a 20 20 20 20 |*** 514,|520. |
|00001ae0| 20 20 73 74 72 75 63 74 | 20 74 6d 20 2a 6c 74 62 | struct| tm *ltb|
|00001af0| 75 66 3b 0a 20 20 20 20 | 20 20 73 74 72 75 63 74 |uf;. | struct|
|00001b00| 20 75 73 65 72 20 75 62 | 75 66 3b 0a 20 20 0a 21 | user ub|uf;. .!|
|00001b10| 20 20 20 20 20 69 66 20 | 28 70 61 72 6d 73 2e 75 | if |(parms.u|
|00001b20| 61 5f 72 6f 63 20 26 26 | 20 63 6f 6e 66 5b 30 5d |a_roc &&| conf[0]|
|00001b30| 20 3d 3d 20 27 72 27 20 | 26 26 20 63 6f 6e 66 5b | == 'r' |&& conf[|
|00001b40| 31 5d 20 3d 3d 20 27 2d | 27 29 0a 20 20 09 7b 0a |1] == '-|'). .{.|
|00001b50| 20 20 09 63 6f 6e 66 20 | 3d 20 22 67 65 6e 65 72 | .conf |= "gener|
|00001b60| 61 6c 22 3b 09 09 09 2f | 2a 20 72 65 73 70 6f 6e |al";.../|* respon|
|00001b70| 73 65 73 20 67 65 74 20 | 72 65 64 69 72 65 63 74 |ses get |redirect|
|00001b80| 65 64 20 2a 2f 0a 20 20 | 09 70 75 74 73 28 22 52 |ed */. |.puts("R|
|00001b90| 65 61 64 2d 6f 6e 6c 79 | 20 63 6f 6e 66 65 72 65 |ead-only| confere|
|00001ba0| 6e 63 65 3b 20 6d 65 73 | 73 61 67 65 20 77 69 6c |nce; mes|sage wil|
|00001bb0| 6c 20 62 65 20 61 64 64 | 65 64 20 74 6f 20 5c 22 |l be add|ed to \"|
|00001bc0| 67 65 6e 65 72 61 6c 5c | 22 2e 22 29 3b 0a 0a 2d |general\|".");..-|
|00001bd0| 2d 2d 20 35 31 34 2c 35 | 32 30 20 2d 2d 2d 2d 2d |-- 514,5|20 -----|
|00001be0| 0a 20 20 20 20 20 20 73 | 74 72 75 63 74 20 74 6d |. s|truct tm|
|00001bf0| 20 2a 6c 74 62 75 66 3b | 0a 20 20 20 20 20 20 73 | *ltbuf;|. s|
|00001c00| 74 72 75 63 74 20 75 73 | 65 72 20 75 62 75 66 3b |truct us|er ubuf;|
|00001c10| 0a 20 20 0a 21 20 20 20 | 20 20 69 66 20 28 75 73 |. .! | if (us|
|00001c20| 65 72 2e 75 5f 61 63 63 | 65 73 73 20 21 3d 20 41 |er.u_acc|ess != A|
|00001c30| 5f 57 49 54 4e 45 53 53 | 20 26 26 20 70 61 72 6d |_WITNESS| && parm|
|00001c40| 73 2e 75 61 5f 72 6f 63 | 20 26 26 20 63 6f 6e 66 |s.ua_roc| && conf|
|00001c50| 5b 30 5d 20 3d 3d 20 27 | 72 27 20 26 26 20 63 6f |[0] == '|r' && co|
|00001c60| 6e 66 5b 31 5d 20 3d 3d | 20 27 2d 27 29 0a 20 20 |nf[1] ==| '-'). |
|00001c70| 09 7b 0a 20 20 09 63 6f | 6e 66 20 3d 20 22 67 65 |.{. .co|nf = "ge|
|00001c80| 6e 65 72 61 6c 22 3b 09 | 09 09 2f 2a 20 72 65 73 |neral";.|../* res|
|00001c90| 70 6f 6e 73 65 73 20 67 | 65 74 20 72 65 64 69 72 |ponses g|et redir|
|00001ca0| 65 63 74 65 64 20 2a 2f | 0a 20 20 09 70 75 74 73 |ected */|. .puts|
|00001cb0| 28 22 52 65 61 64 2d 6f | 6e 6c 79 20 63 6f 6e 66 |("Read-o|nly conf|
|00001cc0| 65 72 65 6e 63 65 3b 20 | 6d 65 73 73 61 67 65 20 |erence; |message |
|00001cd0| 77 69 6c 6c 20 62 65 20 | 61 64 64 65 64 20 74 6f |will be |added to|
|00001ce0| 20 5c 22 67 65 6e 65 72 | 61 6c 5c 22 2e 22 29 3b | \"gener|al\".");|
|00001cf0| 0a 53 48 41 52 5f 45 4f | 46 0a 69 66 20 74 65 73 |.SHAR_EO|F.if tes|
|00001d00| 74 20 36 34 30 20 2d 6e | 65 20 22 60 77 63 20 2d |t 640 -n|e "`wc -|
|00001d10| 63 20 3c 20 27 6d 73 67 | 2e 63 2e 70 61 74 27 60 |c < 'msg|.c.pat'`|
|00001d20| 22 0a 74 68 65 6e 0a 09 | 65 63 68 6f 20 73 68 61 |".then..|echo sha|
|00001d30| 72 3a 20 65 72 72 6f 72 | 20 74 72 61 6e 73 6d 69 |r: error| transmi|
|00001d40| 74 74 69 6e 67 20 22 27 | 6d 73 67 2e 63 2e 70 61 |tting "'|msg.c.pa|
|00001d50| 74 27 22 20 27 28 73 68 | 6f 75 6c 64 20 68 61 76 |t'" '(sh|ould hav|
|00001d60| 65 20 62 65 65 6e 20 36 | 34 30 20 63 68 61 72 61 |e been 6|40 chara|
|00001d70| 63 74 65 72 73 29 27 0a | 66 69 0a 66 69 0a 65 78 |cters)'.|fi.fi.ex|
|00001d80| 69 74 20 30 0a 23 09 45 | 6e 64 20 6f 66 20 73 68 |it 0.#.E|nd of sh|
|00001d90| 65 6c 6c 20 61 72 63 68 | 69 76 65 0a |ell arch|ive. |
+--------+-------------------------+-------------------------+--------+--------+