home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| 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 28 75 6e 69 78 20 | 62 75 6c 6c 65 74 69 6e |s (unix |bulletin|
|00000020| 20 62 6f 61 72 64 29 20 | 28 31 20 6f 66 20 33 29 | board) |(1 of 3)|
|00000030| 0a 4e 65 77 73 67 72 6f | 75 70 73 3a 20 6d 6f 64 |.Newsgro|ups: mod|
|00000040| 2e 73 6f 75 72 63 65 73 | 0a 41 70 70 72 6f 76 65 |.sources|.Approve|
|00000050| 64 3a 20 6a 70 6e 40 70 | 61 6e 64 61 2e 55 55 43 |d: jpn@p|anda.UUC|
|00000060| 50 0a 0a 4d 6f 64 2e 73 | 6f 75 72 63 65 73 3a 20 |P..Mod.s|ources: |
|00000070| 20 56 6f 6c 75 6d 65 20 | 34 2c 20 49 73 73 75 65 | Volume |4, Issue|
|00000080| 20 36 35 0a 53 75 62 6d | 69 74 74 65 64 20 62 79 | 65.Subm|itted by|
|00000090| 3a 20 64 65 63 76 61 78 | 21 63 77 72 75 65 63 6d |: decvax|!cwruecm|
|000000a0| 70 21 6e 63 6f 61 73 74 | 21 61 6c 6c 62 65 72 79 |p!ncoast|!allbery|
|000000b0| 0a 0a 23 21 20 2f 62 69 | 6e 2f 73 68 0a 23 20 54 |..#! /bi|n/sh.# T|
|000000c0| 68 69 73 20 69 73 20 61 | 20 73 68 65 6c 6c 20 61 |his is a| shell a|
|000000d0| 72 63 68 69 76 65 2c 20 | 6d 65 61 6e 69 6e 67 3a |rchive, |meaning:|
|000000e0| 0a 23 20 31 2e 20 52 65 | 6d 6f 76 65 20 65 76 65 |.# 1. Re|move eve|
|000000f0| 72 79 74 68 69 6e 67 20 | 61 62 6f 76 65 20 74 68 |rything |above th|
|00000100| 65 20 23 21 20 2f 62 69 | 6e 2f 73 68 20 6c 69 6e |e #! /bi|n/sh lin|
|00000110| 65 2e 0a 23 20 32 2e 20 | 53 61 76 65 20 74 68 65 |e..# 2. |Save the|
|00000120| 20 72 65 73 75 6c 74 69 | 6e 67 20 74 65 78 74 20 | resulti|ng text |
|00000130| 69 6e 20 61 20 66 69 6c | 65 2e 0a 23 20 33 2e 20 |in a fil|e..# 3. |
|00000140| 45 78 65 63 75 74 65 20 | 74 68 65 20 66 69 6c 65 |Execute |the file|
|00000150| 20 77 69 74 68 20 2f 62 | 69 6e 2f 73 68 20 28 6e | with /b|in/sh (n|
|00000160| 6f 74 20 63 73 68 29 20 | 74 6f 20 63 72 65 61 74 |ot csh) |to creat|
|00000170| 65 20 74 68 65 20 66 69 | 6c 65 73 3a 0a 23 09 4d |e the fi|les:.#.M|
|00000180| 5f 52 45 41 44 4d 45 0a | 23 09 52 45 41 44 4d 45 |_README.|#.README|
|00000190| 0a 23 09 4d 61 6b 65 66 | 69 6c 65 0a 23 09 55 74 |.#.Makef|ile.#.Ut|
|000001a0| 69 6c 69 74 69 65 73 0a | 23 09 64 69 72 2e 68 0a |ilities.|#.dir.h.|
|000001b0| 23 09 73 79 73 2e 68 0a | 23 09 75 61 2e 68 0a 23 |#.sys.h.|#.ua.h.#|
|000001c0| 09 75 73 65 72 2e 68 0a | 23 20 54 68 69 73 20 61 |.user.h.|# This a|
|000001d0| 72 63 68 69 76 65 20 63 | 72 65 61 74 65 64 3a 20 |rchive c|reated: |
|000001e0| 53 61 74 20 41 70 72 20 | 31 32 20 31 30 3a 30 31 |Sat Apr |12 10:01|
|000001f0| 3a 32 39 20 31 39 38 36 | 0a 65 78 70 6f 72 74 20 |:29 1986|.export |
|00000200| 50 41 54 48 3b 20 50 41 | 54 48 3d 2f 62 69 6e 3a |PATH; PA|TH=/bin:|
|00000210| 24 50 41 54 48 0a 65 63 | 68 6f 20 73 68 61 72 3a |$PATH.ec|ho shar:|
|00000220| 20 65 78 74 72 61 63 74 | 69 6e 67 20 22 27 4d 5f | extract|ing "'M_|
|00000230| 52 45 41 44 4d 45 27 22 | 20 27 28 32 39 34 34 20 |README'"| '(2944 |
|00000240| 63 68 61 72 61 63 74 65 | 72 73 29 27 0a 69 66 20 |characte|rs)'.if |
|00000250| 74 65 73 74 20 2d 66 20 | 27 4d 5f 52 45 41 44 4d |test -f |'M_READM|
|00000260| 45 27 0a 74 68 65 6e 0a | 09 65 63 68 6f 20 73 68 |E'.then.|.echo sh|
|00000270| 61 72 3a 20 77 69 6c 6c | 20 6e 6f 74 20 6f 76 65 |ar: will| not ove|
|00000280| 72 2d 77 72 69 74 65 20 | 65 78 69 73 74 69 6e 67 |r-write |existing|
|00000290| 20 66 69 6c 65 20 22 27 | 4d 5f 52 45 41 44 4d 45 | file "'|M_README|
|000002a0| 27 22 0a 65 6c 73 65 0a | 63 61 74 20 3c 3c 20 5c |'".else.|cat << \|
|000002b0| 53 48 41 52 5f 45 4f 46 | 20 3e 20 27 4d 5f 52 45 |SHAR_EOF| > 'M_RE|
|000002c0| 41 44 4d 45 27 0a 20 20 | 20 20 20 20 20 20 20 20 |ADME'. | |
|000002d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 2a 2a 2a 20 | | *** |
|000002e0| 20 4d 6f 64 65 72 61 74 | 6f 72 27 73 20 52 65 61 | Moderat|or's Rea|
|000002f0| 64 6d 65 20 2a 2a 2a 0a | 0a 53 69 6e 63 65 20 74 |dme ***.|.Since t|
|00000300| 68 69 73 20 73 75 62 6d | 69 73 73 69 6f 6e 27 73 |his subm|ission's|
|00000310| 20 52 45 41 44 4d 45 20 | 64 69 64 20 6e 6f 74 20 | README |did not |
|00000320| 69 6e 63 6c 75 64 65 20 | 61 20 64 65 73 63 72 69 |include |a descri|
|00000330| 70 74 69 6f 6e 20 6f 66 | 20 74 68 65 20 70 72 6f |ption of| the pro|
|00000340| 67 72 61 6d 2c 0a 49 20 | 64 65 63 69 64 65 64 20 |gram,.I |decided |
|00000350| 74 6f 20 61 64 64 20 6f | 6e 65 20 6d 79 73 65 6c |to add o|ne mysel|
|00000360| 66 2e 20 20 54 68 69 73 | 20 70 72 6f 67 72 61 6d |f. This| program|
|00000370| 20 69 73 20 61 20 55 4e | 49 58 20 62 61 73 65 64 | is a UN|IX based|
|00000380| 20 62 75 6c 6c 65 74 69 | 6e 20 62 6f 61 72 64 0a | bulleti|n board.|
|00000390| 73 79 73 74 65 6d 2c 20 | 6d 75 63 68 20 6c 69 6b |system, |much lik|
|000003a0| 65 20 74 68 65 20 6f 6e | 65 73 20 79 6f 75 20 66 |e the on|es you f|
|000003b0| 69 6e 64 20 72 75 6e 6e | 69 6e 67 20 73 74 61 6e |ind runn|ing stan|
|000003c0| 64 2d 61 6c 6f 6e 65 20 | 6f 6e 20 6d 69 63 72 6f |d-alone |on micro|
|000003d0| 73 2e 20 20 49 74 0a 61 | 6c 6c 6f 77 73 20 66 6f |s. It.a|llows fo|
|000003e0| 72 20 62 75 6c 6c 65 74 | 69 6e 73 2c 20 61 6e 64 |r bullet|ins, and|
|000003f0| 20 73 65 76 65 72 61 6c | 20 64 69 66 66 65 72 65 | several| differe|
|00000400| 6e 74 20 63 6f 6e 66 65 | 72 65 6e 63 65 73 2c 20 |nt confe|rences, |
|00000410| 61 6e 64 20 66 69 6c 65 | 0a 75 70 2f 64 6f 77 6e |and file|.up/down|
|00000420| 20 6c 6f 61 64 20 28 77 | 69 74 68 69 6e 20 74 68 | load (w|ithin th|
|00000430| 65 20 62 75 6c 6c 65 74 | 69 6e 20 62 6f 61 72 64 |e bullet|in board|
|00000440| 20 73 79 73 74 65 6d 29 | 20 2d 20 58 6d 6f 64 65 | system)| - Xmode|
|00000450| 6d 20 61 6e 64 20 6b 65 | 72 6d 69 74 20 74 72 61 |m and ke|rmit tra|
|00000460| 6e 73 66 65 72 73 0a 61 | 72 65 20 73 75 70 70 6f |nsfers.a|re suppo|
|00000470| 72 74 65 64 20 69 66 20 | 79 6f 75 20 61 6c 72 65 |rted if |you alre|
|00000480| 61 64 79 20 68 61 76 65 | 20 74 68 65 73 65 20 70 |ady have| these p|
|00000490| 72 6f 67 72 61 6d 73 2e | 20 20 50 72 69 76 65 6c |rograms.| Privel|
|000004a0| 65 67 65 64 20 75 73 65 | 72 73 20 63 61 6e 0a 62 |eged use|rs can.b|
|000004b0| 65 20 67 69 76 65 6e 20 | 61 63 63 65 73 73 20 74 |e given |access t|
|000004c0| 6f 20 74 68 65 20 73 68 | 65 6c 6c 20 28 6f 72 20 |o the sh|ell (or |
|000004d0| 73 6f 6d 65 20 6f 74 68 | 65 72 20 70 72 6f 67 72 |some oth|er progr|
|000004e0| 61 6d 20 2d 20 74 68 69 | 73 20 69 73 20 63 6f 6e |am - thi|s is con|
|000004f0| 66 69 67 75 72 61 62 6c | 65 29 2e 0a 54 68 65 72 |figurabl|e)..Ther|
|00000500| 65 20 61 72 65 20 61 63 | 74 75 61 6c 6c 79 20 35 |e are ac|tually 5|
|00000510| 20 6e 6f 72 6d 61 6c 20 | 6c 65 76 65 6c 73 20 6f | normal |levels o|
|00000520| 66 20 70 72 69 76 65 6c | 65 67 65 20 61 76 61 69 |f privel|ege avai|
|00000530| 6c 61 62 6c 65 2e 20 20 | 28 73 69 78 20 69 66 0a |lable. |(six if.|
|00000540| 79 6f 75 20 69 6e 63 6c | 75 64 65 20 74 68 65 20 |you incl|ude the |
|00000550| 22 6e 65 77 22 20 6c 65 | 76 65 6c 29 2e 20 20 55 |"new" le|vel). U|
|00000560| 73 65 72 73 20 68 61 76 | 65 20 70 61 73 73 77 6f |sers hav|e passwo|
|00000570| 72 64 73 2c 20 61 6e 64 | 20 74 68 65 20 70 61 73 |rds, and| the pas|
|00000580| 73 77 6f 72 64 73 0a 61 | 72 65 20 6b 65 70 74 20 |swords.a|re kept |
|00000590| 65 6e 63 72 79 70 74 65 | 64 20 2d 20 73 69 6d 69 |encrypte|d - simi|
|000005a0| 6c 61 72 20 74 6f 20 74 | 68 65 20 2f 65 74 63 2f |lar to t|he /etc/|
|000005b0| 70 61 73 73 77 64 20 66 | 6f 72 6d 61 74 2e 0a 0a |passwd f|ormat...|
|000005c0| 55 4e 61 58 63 65 73 73 | 20 63 61 6e 20 62 65 20 |UNaXcess| can be |
|000005d0| 73 65 74 20 75 70 20 61 | 73 20 61 6e 20 61 63 63 |set up a|s an acc|
|000005e0| 6f 75 6e 74 27 73 20 6c | 6f 67 69 6e 20 73 68 65 |ount's l|ogin she|
|000005f0| 6c 6c 2c 20 73 6f 20 74 | 68 61 74 20 6f 75 74 73 |ll, so t|hat outs|
|00000600| 69 64 65 20 75 73 65 72 | 73 0a 63 61 6e 20 75 73 |ide user|s.can us|
|00000610| 65 20 55 4e 61 58 63 65 | 73 73 20 77 69 74 68 6f |e UNaXce|ss witho|
|00000620| 75 74 20 68 61 76 69 6e | 67 20 61 6e 20 61 63 63 |ut havin|g an acc|
|00000630| 6f 75 6e 74 2e 20 20 55 | 73 65 72 73 20 77 69 74 |ount. U|sers wit|
|00000640| 68 20 61 63 63 6f 75 6e | 74 73 20 63 61 6e 20 61 |h accoun|ts can a|
|00000650| 6c 73 6f 0a 61 63 63 65 | 73 73 20 74 68 65 20 62 |lso.acce|ss the b|
|00000660| 6f 61 72 64 20 62 79 20 | 72 75 6e 6e 69 6e 67 20 |oard by |running |
|00000670| 74 68 65 20 22 75 61 22 | 20 6d 61 69 6e 20 70 72 |the "ua"| main pr|
|00000680| 6f 67 72 61 6d 2e 20 20 | 55 4e 61 58 63 65 73 73 |ogram. |UNaXcess|
|00000690| 20 6d 75 73 74 20 62 65 | 0a 63 6f 6e 66 69 67 75 | must be|.configu|
|000006a0| 72 65 64 20 62 79 20 73 | 65 74 74 69 6e 67 20 61 |red by s|etting a|
|000006b0| 73 69 64 65 20 61 20 75 | 73 65 72 2d 69 64 20 28 |side a u|ser-id (|
|000006c0| 72 65 61 6c 6c 79 20 61 | 6e 20 61 63 63 6f 75 6e |really a|n accoun|
|000006d0| 74 20 6e 61 6d 65 29 20 | 66 6f 72 20 75 73 65 20 |t name) |for use |
|000006e0| 62 79 0a 74 68 69 73 20 | 73 79 73 74 65 6d 20 2d |by.this |system -|
|000006f0| 20 6d 61 6e 79 20 6f 66 | 20 74 68 65 20 70 72 6f | many of| the pro|
|00000700| 67 72 61 6d 20 61 72 65 | 20 63 6f 6e 66 69 67 75 |gram are| configu|
|00000710| 72 65 64 20 61 73 20 73 | 65 74 2d 75 69 64 20 74 |red as s|et-uid t|
|00000720| 6f 20 74 68 69 73 20 61 | 63 63 6f 75 6e 74 2e 0a |o this a|ccount..|
|00000730| 54 68 65 20 68 6f 6d 65 | 20 64 69 72 65 63 74 6f |The home| directo|
|00000740| 72 79 20 66 6f 72 20 74 | 68 69 73 20 61 63 63 6f |ry for t|his acco|
|00000750| 75 6e 74 20 69 73 20 74 | 68 65 20 64 69 72 65 63 |unt is t|he direc|
|00000760| 74 6f 72 79 20 74 72 65 | 65 20 77 68 65 72 65 20 |tory tre|e where |
|00000770| 61 6c 6c 20 66 69 6c 65 | 73 0a 61 6e 64 20 63 6f |all file|s.and co|
|00000780| 6e 66 65 72 65 6e 63 65 | 73 20 61 72 65 20 73 74 |nference|s are st|
|00000790| 6f 72 65 64 2e 0a 0a 55 | 4e 61 58 63 65 73 73 20 |ored...U|NaXcess |
|000007a0| 63 6f 6d 65 73 20 77 69 | 74 68 20 61 20 73 63 72 |comes wi|th a scr|
|000007b0| 69 70 74 20 74 6f 20 69 | 6e 73 74 61 6c 6c 20 74 |ipt to i|nstall t|
|000007c0| 68 65 20 73 79 73 74 65 | 6d 20 6d 75 63 68 20 6c |he syste|m much l|
|000007d0| 69 6b 65 20 74 68 65 20 | 22 52 6e 22 0a 63 6f 6e |ike the |"Rn".con|
|000007e0| 66 69 67 20 73 63 72 69 | 70 74 2c 20 62 75 74 20 |fig scri|pt, but |
|000007f0| 69 74 20 65 78 70 65 63 | 74 73 20 74 6f 20 62 65 |it expec|ts to be|
|00000800| 20 72 75 6e 20 61 73 20 | 72 6f 6f 74 2c 20 61 6e | run as |root, an|
|00000810| 64 20 6d 61 79 20 6d 75 | 63 6b 20 61 72 6f 75 6e |d may mu|ck aroun|
|00000820| 64 0a 77 69 74 68 20 74 | 68 65 20 70 61 73 73 77 |d.with t|he passw|
|00000830| 6f 72 64 20 66 69 6c 65 | 2e 20 20 49 20 64 69 64 |ord file|. I did|
|00000840| 20 6e 6f 74 20 61 63 74 | 75 61 6c 6c 79 20 72 75 | not act|ually ru|
|00000850| 6e 20 74 68 69 73 20 73 | 63 72 69 70 74 20 28 49 |n this s|cript (I|
|00000860| 20 64 6f 6e 27 74 0a 63 | 75 72 72 65 6e 74 6c 79 | don't.c|urrently|
|00000870| 20 68 61 76 65 20 72 6f | 6f 74 20 70 72 69 76 6c | have ro|ot privl|
|00000880| 65 64 67 65 20 2d 20 61 | 6e 64 20 49 20 68 61 74 |edge - a|nd I hat|
|00000890| 65 20 72 75 6e 6e 69 6e | 67 20 74 68 69 6e 67 73 |e runnin|g things|
|000008a0| 20 61 73 20 72 6f 6f 74 | 20 75 6e 6c 65 73 73 0a | as root| unless.|
|000008b0| 49 20 61 6d 20 73 75 72 | 65 20 61 62 6f 75 74 20 |I am sur|e about |
|000008c0| 77 68 61 74 20 74 68 65 | 79 20 64 6f 20 61 6e 79 |what the|y do any|
|000008d0| 77 61 79 21 29 2c 20 73 | 6f 20 49 20 64 69 64 20 |way!), s|o I did |
|000008e0| 61 6c 6c 20 74 68 65 20 | 74 68 69 6e 67 73 20 74 |all the |things t|
|000008f0| 68 65 0a 73 63 72 69 70 | 74 20 77 6f 75 6c 64 20 |he.scrip|t would |
|00000900| 68 61 76 65 20 64 6f 6e | 65 2c 20 62 75 74 20 62 |have don|e, but b|
|00000910| 79 20 68 61 6e 64 20 2d | 20 69 74 20 6c 6f 6f 6b |y hand -| it look|
|00000920| 73 20 71 75 69 74 65 20 | 72 65 61 73 6f 6e 61 62 |s quite |reasonab|
|00000930| 6c 65 2e 0a 4f 6e 65 20 | 71 75 65 73 74 69 6f 6e |le..One |question|
|00000940| 20 69 6e 20 74 68 65 20 | 69 6e 73 74 61 6c 6c 20 | in the |install |
|00000950| 73 63 72 69 70 74 20 63 | 6f 6e 66 75 73 65 64 20 |script c|onfused |
|00000960| 6d 65 20 61 74 20 66 69 | 72 73 74 3a 20 22 57 68 |me at fi|rst: "Wh|
|00000970| 61 74 20 69 73 20 74 68 | 65 0a 6c 6f 67 69 6e 20 |at is th|e.login |
|00000980| 6e 61 6d 65 20 6f 66 20 | 74 68 65 20 75 73 65 72 |name of |the user|
|00000990| 20 77 68 6f 20 63 61 6e | 27 74 20 6c 6f 67 20 64 | who can|'t log d|
|000009a0| 69 72 65 63 74 6c 79 20 | 69 6e 74 6f 20 55 4e 61 |irectly |into UNa|
|000009b0| 58 63 65 73 73 3f 22 20 | 20 54 68 69 73 20 69 73 |Xcess?" | This is|
|000009c0| 0a 74 68 65 20 6e 61 6d | 65 20 6f 66 20 74 68 65 |.the nam|e of the|
|000009d0| 20 61 63 63 6f 75 6e 74 | 20 74 68 61 74 20 69 73 | account| that is|
|000009e0| 20 73 65 74 20 61 73 69 | 64 65 20 66 6f 72 20 72 | set asi|de for r|
|000009f0| 65 6d 6f 74 65 20 55 4e | 61 58 63 65 73 73 20 6c |emote UN|aXcess l|
|00000a00| 6f 67 69 6e 73 20 2d 0a | 75 73 65 72 73 20 6c 6f |ogins -.|users lo|
|00000a10| 67 67 69 6e 67 20 69 6e | 20 74 68 69 73 20 77 61 |gging in| this wa|
|00000a20| 79 20 77 69 6c 6c 20 62 | 65 20 61 73 6b 65 64 20 |y will b|e asked |
|00000a30| 66 6f 72 20 61 6e 20 55 | 4e 61 58 63 65 73 73 20 |for an U|NaXcess |
|00000a40| 61 63 63 6f 75 6e 74 20 | 6e 61 6d 65 0a 74 6f 20 |account |name.to |
|00000a50| 75 73 65 2e 0a 0a 4f 68 | 2c 20 49 20 64 69 64 6e |use...Oh|, I didn|
|00000a60| 27 74 20 63 68 61 6e 67 | 65 20 6d 79 20 70 61 73 |'t chang|e my pas|
|00000a70| 73 77 6f 72 64 20 66 69 | 6c 65 20 65 69 74 68 65 |sword fi|le eithe|
|00000a80| 72 20 2d 20 49 20 6d 61 | 64 65 20 61 20 6d 69 6e |r - I ma|de a min|
|00000a90| 6f 72 20 63 68 61 6e 67 | 65 0a 74 6f 20 70 61 72 |or chang|e.to par|
|00000aa0| 61 6d 2e 63 20 5b 23 69 | 66 64 65 66 20 4a 50 4e |am.c [#i|fdef JPN|
|00000ab0| 48 41 43 4b 5d 20 74 6f | 20 63 6f 6d 70 69 6c 65 |HACK] to| compile|
|00000ac0| 20 69 6e 20 74 68 65 20 | 62 61 73 65 20 64 69 72 | in the |base dir|
|00000ad0| 65 63 74 6f 72 79 20 69 | 6e 73 74 65 61 64 0a 6f |ectory i|nstead.o|
|00000ae0| 66 20 6c 6f 6f 6b 69 6e | 67 20 69 74 20 75 70 20 |f lookin|g it up |
|00000af0| 69 6e 20 74 68 65 20 70 | 61 73 73 77 6f 72 64 20 |in the p|assword |
|00000b00| 66 69 6c 65 2c 20 49 20 | 70 75 74 20 61 6c 6c 20 |file, I |put all |
|00000b10| 74 68 65 20 70 72 6f 67 | 72 61 6d 73 20 69 6e 74 |the prog|rams int|
|00000b20| 6f 0a 61 20 73 70 65 63 | 69 61 6c 20 64 69 72 65 |o.a spec|ial dire|
|00000b30| 63 74 6f 72 79 20 69 6e | 73 74 65 61 64 20 6f 66 |ctory in|stead of|
|00000b40| 20 2f 62 69 6e 2c 20 49 | 20 6d 61 64 65 20 61 6c | /bin, I| made al|
|00000b50| 6c 20 74 68 65 20 73 65 | 74 75 69 64 20 70 72 6f |l the se|tuid pro|
|00000b60| 67 72 61 6d 73 0a 73 65 | 74 75 69 64 20 74 6f 20 |grams.se|tuid to |
|00000b70| 4d 45 2c 20 61 6e 64 20 | 49 20 61 6c 6c 6f 77 20 |ME, and |I allow |
|00000b80| 61 63 63 65 73 73 20 76 | 69 61 20 74 68 65 20 66 |access v|ia the f|
|00000b90| 6f 6c 6c 6f 77 69 6e 67 | 20 73 68 65 6c 6c 20 73 |ollowing| shell s|
|00000ba0| 63 72 69 70 74 3a 0a 0a | 23 21 20 2f 62 69 6e 2f |cript:..|#! /bin/|
|00000bb0| 73 68 0a 50 41 54 48 3d | 2f 63 2f 6a 70 6e 2f 75 |sh.PATH=|/c/jpn/u|
|00000bc0| 61 2f 62 69 6e 3a 24 50 | 41 54 48 0a 65 78 70 6f |a/bin:$P|ATH.expo|
|00000bd0| 72 74 20 50 41 54 48 0a | 65 78 65 63 20 2f 63 2f |rt PATH.|exec /c/|
|00000be0| 6a 70 6e 2f 75 61 2f 62 | 69 6e 2f 75 61 20 24 2a |jpn/ua/b|in/ua $*|
|00000bf0| 0a 0a 4f 66 20 63 6f 75 | 72 73 65 2c 20 74 68 69 |..Of cou|rse, thi|
|00000c00| 73 20 69 73 20 6e 6f 74 | 20 6e 65 63 65 73 73 61 |s is not| necessa|
|00000c10| 72 79 20 69 66 20 79 6f | 75 20 66 65 65 6c 20 63 |ry if yo|u feel c|
|00000c20| 6f 6d 66 6f 72 74 61 62 | 6c 65 20 61 64 64 69 6e |omfortab|le addin|
|00000c30| 67 20 61 0a 6e 65 77 20 | 61 63 63 6f 75 6e 74 20 |g a.new |account |
|00000c40| 74 6f 20 79 6f 75 72 20 | 73 79 73 74 65 6d 20 66 |to your |system f|
|00000c50| 6f 72 20 55 4e 61 58 63 | 65 73 73 2e 0a 0a 55 4e |or UNaXc|ess...UN|
|00000c60| 61 58 63 65 73 73 20 63 | 61 6d 65 20 77 69 74 68 |aXcess c|ame with|
|00000c70| 20 63 6f 64 65 20 74 6f | 20 72 75 6e 20 6f 6e 20 | code to| run on |
|00000c80| 42 53 44 20 73 79 73 74 | 65 6d 73 20 69 66 20 63 |BSD syst|ems if c|
|00000c90| 6f 6d 70 69 6c 65 64 20 | 77 69 74 68 20 74 68 65 |ompiled |with the|
|00000ca0| 20 2d 44 42 53 44 0a 66 | 6c 61 67 2e 20 20 49 20 | -DBSD.f|lag. I |
|00000cb0| 73 70 65 6e 64 20 73 6f | 6d 65 20 74 69 6d 65 20 |spend so|me time |
|00000cc0| 74 6f 20 61 63 74 75 61 | 6c 6c 79 20 6d 61 6b 65 |to actua|lly make|
|00000cd0| 20 42 53 44 20 77 6f 72 | 6b 20 2d 20 68 6f 70 65 | BSD wor|k - hope|
|00000ce0| 66 75 6c 6c 79 20 49 20 | 64 69 64 20 6e 6f 74 0a |fully I |did not.|
|00000cf0| 62 72 65 61 6b 20 74 68 | 65 20 55 53 47 20 76 65 |break th|e USG ve|
|00000d00| 72 73 69 6f 6e 20 69 6e | 20 74 68 65 20 70 72 6f |rsion in| the pro|
|00000d10| 63 65 73 73 2e 20 20 49 | 20 61 6c 73 6f 20 73 75 |cess. I| also su|
|00000d20| 67 67 65 73 74 20 74 68 | 61 74 20 79 6f 75 20 72 |ggest th|at you r|
|00000d30| 65 61 64 20 74 68 65 0a | 52 45 41 44 4d 45 20 66 |ead the.|README f|
|00000d40| 69 6c 65 20 28 4e 6f 74 | 65 73 20 66 6f 72 20 69 |ile (Not|es for i|
|00000d50| 6e 73 74 61 6c 6c 69 6e | 67 29 20 74 77 69 63 65 |nstallin|g) twice|
|00000d60| 20 2d 20 49 20 66 6f 75 | 6e 64 20 73 6f 6d 65 20 | - I fou|nd some |
|00000d70| 6f 66 20 74 68 65 20 64 | 65 74 61 69 6c 73 0a 74 |of the d|etails.t|
|00000d80| 6f 20 62 65 20 61 20 62 | 69 74 20 73 75 62 74 6c |o be a b|it subtl|
|00000d90| 65 2e 0a 0a 47 6f 6f 64 | 20 4c 75 63 6b 21 0a 0a |e...Good| Luck!..|
|00000da0| 4a 6f 68 6e 20 50 2e 20 | 4e 65 6c 73 6f 6e 2c 20 |John P. |Nelson, |
|00000db0| 4d 6f 64 65 72 61 74 6f | 72 2c 20 6d 6f 64 2e 73 |Moderato|r, mod.s|
|00000dc0| 6f 75 72 63 65 73 0a 28 | 64 65 63 76 61 78 21 67 |ources.(|decvax!g|
|00000dd0| 65 6e 72 61 64 21 70 61 | 6e 64 61 21 6a 70 6e 20 |enrad!pa|nda!jpn |
|00000de0| 20 73 65 69 73 6d 6f 21 | 68 61 72 76 61 72 64 21 | seismo!|harvard!|
|00000df0| 77 6a 68 31 32 21 70 61 | 6e 64 61 21 6a 70 6e 29 |wjh12!pa|nda!jpn)|
|00000e00| 0a 53 65 6e 64 20 73 6f | 75 72 63 65 20 63 6f 64 |.Send so|urce cod|
|00000e10| 65 20 74 6f 20 70 61 6e | 64 61 21 73 6f 75 72 63 |e to pan|da!sourc|
|00000e20| 65 73 2c 20 72 65 71 75 | 65 73 74 73 20 74 6f 20 |es, requ|ests to |
|00000e30| 70 61 6e 64 61 21 73 6f | 75 72 63 65 73 2d 72 65 |panda!so|urces-re|
|00000e40| 71 75 65 73 74 0a 53 48 | 41 52 5f 45 4f 46 0a 69 |quest.SH|AR_EOF.i|
|00000e50| 66 20 74 65 73 74 20 32 | 39 34 34 20 2d 6e 65 20 |f test 2|944 -ne |
|00000e60| 22 60 77 63 20 2d 63 20 | 3c 20 27 4d 5f 52 45 41 |"`wc -c |< 'M_REA|
|00000e70| 44 4d 45 27 60 22 0a 74 | 68 65 6e 0a 09 65 63 68 |DME'`".t|hen..ech|
|00000e80| 6f 20 73 68 61 72 3a 20 | 65 72 72 6f 72 20 74 72 |o shar: |error tr|
|00000e90| 61 6e 73 6d 69 74 74 69 | 6e 67 20 22 27 4d 5f 52 |ansmitti|ng "'M_R|
|00000ea0| 45 41 44 4d 45 27 22 20 | 27 28 73 68 6f 75 6c 64 |EADME'" |'(should|
|00000eb0| 20 68 61 76 65 20 62 65 | 65 6e 20 32 39 34 34 20 | have be|en 2944 |
|00000ec0| 63 68 61 72 61 63 74 65 | 72 73 29 27 0a 66 69 0a |characte|rs)'.fi.|
|00000ed0| 66 69 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 65 78 |fi.echo |shar: ex|
|00000ee0| 74 72 61 63 74 69 6e 67 | 20 22 27 52 45 41 44 4d |tracting| "'READM|
|00000ef0| 45 27 22 20 27 28 37 32 | 33 33 20 63 68 61 72 61 |E'" '(72|33 chara|
|00000f00| 63 74 65 72 73 29 27 0a | 69 66 20 74 65 73 74 20 |cters)'.|if test |
|00000f10| 2d 66 20 27 52 45 41 44 | 4d 45 27 0a 74 68 65 6e |-f 'READ|ME'.then|
|00000f20| 0a 09 65 63 68 6f 20 73 | 68 61 72 3a 20 77 69 6c |..echo s|har: wil|
|00000f30| 6c 20 6e 6f 74 20 6f 76 | 65 72 2d 77 72 69 74 65 |l not ov|er-write|
|00000f40| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 22 | existin|g file "|
|00000f50| 27 52 45 41 44 4d 45 27 | 22 0a 65 6c 73 65 0a 63 |'README'|".else.c|
|00000f60| 61 74 20 3c 3c 20 5c 53 | 48 41 52 5f 45 4f 46 20 |at << \S|HAR_EOF |
|00000f70| 3e 20 27 52 45 41 44 4d | 45 27 0a 55 4e 61 58 63 |> 'READM|E'.UNaXc|
|00000f80| 65 73 73 20 56 65 72 73 | 69 6f 6e 20 30 2e 30 34 |ess Vers|ion 0.04|
|00000f90| 2e 30 33 09 09 20 20 20 | 20 57 65 64 6e 65 73 64 |.03.. | Wednesd|
|00000fa0| 61 79 2c 20 4d 61 72 63 | 68 20 35 2c 20 31 39 38 |ay, Marc|h 5, 198|
|00000fb0| 36 20 2d 20 39 3a 30 30 | 20 50 4d 0a 0a 09 09 20 |6 - 9:00| PM.... |
|00000fc0| 20 53 75 70 70 6c 65 6d | 65 6e 74 61 6c 20 6e 6f | Supplem|ental no|
|00000fd0| 74 65 73 20 66 6f 72 20 | 69 6e 73 74 61 6c 6c 69 |tes for |installi|
|00000fe0| 6e 67 20 55 4e 61 58 63 | 65 73 73 0a 0a 0a 54 68 |ng UNaXc|ess...Th|
|00000ff0| 69 73 20 64 69 72 65 63 | 74 6f 72 79 20 63 6f 6e |is direc|tory con|
|00001000| 74 61 69 6e 73 20 74 68 | 65 20 55 4e 61 58 63 65 |tains th|e UNaXce|
|00001010| 73 73 20 44 69 73 74 72 | 69 62 75 74 69 6f 6e 2e |ss Distr|ibution.|
|00001020| 20 20 54 68 65 72 65 20 | 69 73 20 6e 6f 20 55 73 | There |is no Us|
|00001030| 65 72 27 73 20 47 75 69 | 64 65 0a 61 74 20 70 72 |er's Gui|de.at pr|
|00001040| 65 73 65 6e 74 2c 20 61 | 6e 64 20 69 74 20 69 73 |esent, a|nd it is|
|00001050| 20 6f 6e 6c 79 20 6b 6e | 6f 77 6e 20 74 6f 20 77 | only kn|own to w|
|00001060| 6f 72 6b 20 6f 6e 20 56 | 37 20 61 6e 64 20 41 54 |ork on V|7 and AT|
|00001070| 26 54 20 53 79 73 74 65 | 6d 20 49 49 49 2e 20 20 |&T Syste|m III. |
|00001080| 42 65 72 6b 65 6c 65 79 | 0a 55 6e 69 78 20 73 68 |Berkeley|.Unix sh|
|00001090| 6f 75 6c 64 20 77 6f 72 | 6b 2c 20 62 75 74 20 53 |ould wor|k, but S|
|000010a0| 79 73 74 65 6d 20 56 20 | 75 73 65 72 73 20 77 69 |ystem V |users wi|
|000010b0| 6c 6c 20 68 61 76 65 20 | 74 6f 20 63 68 61 6e 67 |ll have |to chang|
|000010c0| 65 20 75 77 68 6f 2e 63 | 20 74 6f 20 72 65 66 6c |e uwho.c| to refl|
|000010d0| 65 63 74 0a 74 68 65 20 | 66 6f 72 6d 61 74 20 6f |ect.the |format o|
|000010e0| 66 20 2f 65 74 63 2f 69 | 6e 69 74 74 61 62 20 75 |f /etc/i|nittab u|
|000010f0| 6e 64 65 72 20 53 79 73 | 74 65 6d 20 56 2e 0a 0a |nder Sys|tem V...|
|00001100| 54 68 65 20 73 68 61 72 | 20 66 69 6c 65 20 73 68 |The shar| file sh|
|00001110| 6f 75 6c 64 20 68 61 76 | 65 20 63 72 65 61 74 65 |ould hav|e create|
|00001120| 64 20 61 20 6e 75 6d 62 | 65 72 20 6f 66 20 66 69 |d a numb|er of fi|
|00001130| 6c 65 73 20 69 6e 20 74 | 68 69 73 20 64 69 72 65 |les in t|his dire|
|00001140| 63 74 6f 72 79 2c 20 61 | 6e 64 0a 61 20 73 75 62 |ctory, a|nd.a sub|
|00001150| 64 69 72 65 63 74 6f 72 | 79 20 63 61 6c 6c 65 64 |director|y called|
|00001160| 20 60 60 55 74 69 6c 69 | 74 69 65 73 27 27 20 63 | ``Utili|ties'' c|
|00001170| 6f 6e 74 61 69 6e 69 6e | 67 20 65 76 65 6e 20 6d |ontainin|g even m|
|00001180| 6f 72 65 20 66 69 6c 65 | 73 2e 20 20 49 6e 73 70 |ore file|s. Insp|
|00001190| 65 63 74 20 74 68 65 0a | 4d 61 6b 65 66 69 6c 65 |ect the.|Makefile|
|000011a0| 20 28 69 74 20 53 48 4f | 55 4c 44 20 77 6f 72 6b | (it SHO|ULD work|
|000011b0| 20 61 73 20 69 74 20 69 | 73 20 6f 6e 20 61 6e 79 | as it i|s on any|
|000011c0| 20 73 79 73 74 65 6d 2c | 20 62 75 74 20 79 6f 75 | system,| but you|
|000011d0| 20 6e 65 76 65 72 20 6b | 6e 6f 77 29 2c 20 74 68 | never k|now), th|
|000011e0| 65 6e 0a 74 79 70 65 20 | 60 60 6d 61 6b 65 20 53 |en.type |``make S|
|000011f0| 59 53 54 45 4d 3d 73 79 | 73 74 65 6d 20 61 6c 6c |YSTEM=sy|stem all|
|00001200| 27 27 2c 20 77 68 65 72 | 65 20 73 79 73 74 65 6d |'', wher|e system|
|00001210| 20 69 73 20 42 53 44 2c | 20 53 59 53 33 2c 20 6f | is BSD,| SYS3, o|
|00001220| 72 20 56 37 2e 20 20 58 | 65 6e 69 78 0a 70 65 6f |r V7. X|enix.peo|
|00001230| 70 6c 65 20 73 68 6f 75 | 6c 64 20 63 6f 6d 70 69 |ple shou|ld compi|
|00001240| 6c 65 20 77 69 74 68 20 | 53 59 53 54 45 4d 3d 56 |le with |SYSTEM=V|
|00001250| 37 2c 20 61 73 20 73 68 | 6f 75 6c 64 20 70 65 6f |7, as sh|ould peo|
|00001260| 70 6c 65 20 72 75 6e 6e | 69 6e 67 20 42 53 44 32 |ple runn|ing BSD2|
|00001270| 2e 39 20 6f 72 0a 42 53 | 44 34 2e 31 2e 20 20 53 |.9 or.BS|D4.1. S|
|00001280| 79 73 74 65 6d 20 56 20 | 70 65 6f 70 6c 65 20 73 |ystem V |people s|
|00001290| 68 6f 75 6c 64 20 63 6f | 6d 70 69 6c 65 20 77 69 |hould co|mpile wi|
|000012a0| 74 68 20 2d 44 53 59 53 | 33 20 28 61 66 74 65 72 |th -DSYS|3 (after|
|000012b0| 20 6d 61 6b 69 6e 67 20 | 74 68 65 20 63 68 61 6e | making |the chan|
|000012c0| 67 65 73 0a 74 6f 20 75 | 77 68 6f 2e 63 20 64 65 |ges.to u|who.c de|
|000012d0| 73 63 72 69 62 65 64 20 | 61 62 6f 76 65 29 2e 20 |scribed |above). |
|000012e0| 20 28 58 65 6e 69 78 65 | 72 73 20 77 69 6c 6c 20 | (Xenixe|rs will |
|000012f0| 68 61 76 65 20 74 6f 20 | 64 65 66 69 6e 65 20 49 |have to |define I|
|00001300| 6e 64 65 78 20 61 6e 64 | 20 52 49 6e 64 65 78 0a |ndex and| RIndex.|
|00001310| 74 6f 20 62 65 20 73 74 | 72 63 68 72 20 61 6e 64 |to be st|rchr and|
|00001320| 20 73 74 72 72 63 68 72 | 20 61 6c 73 6f 2c 20 69 | strrchr| also, i|
|00001330| 66 20 74 68 65 79 20 61 | 72 65 20 72 75 6e 6e 69 |f they a|re runni|
|00001340| 6e 67 20 33 2e 30 20 6f | 72 20 6c 61 74 65 72 2e |ng 3.0 o|r later.|
|00001350| 29 20 20 4e 6f 74 65 20 | 74 68 61 74 0a 74 68 69 |) Note |that.thi|
|00001360| 73 20 70 72 6f 67 72 61 | 6d 20 75 73 65 73 20 5f |s progra|m uses _|
|00001370| 64 6f 70 72 6e 74 28 29 | 20 69 6e 20 74 68 65 20 |doprnt()| in the |
|00001380| 75 70 2f 64 6f 77 6e 6c | 6f 61 64 20 6d 6f 64 75 |up/downl|oad modu|
|00001390| 6c 65 3b 20 61 20 2d 44 | 55 53 45 5f 50 52 49 4e |le; a -D|USE_PRIN|
|000013a0| 54 20 69 73 0a 64 65 66 | 69 6e 65 64 20 69 6e 20 |T is.def|ined in |
|000013b0| 74 68 65 20 4d 61 6b 65 | 66 69 6c 65 2c 20 73 69 |the Make|file, si|
|000013c0| 6e 63 65 20 50 6c 65 78 | 75 73 20 73 79 73 33 20 |nce Plex|us sys3 |
|000013d0| 73 79 73 74 65 6d 73 20 | 28 61 74 20 6c 65 61 73 |systems |(at leas|
|000013e0| 74 29 20 75 73 65 20 61 | 20 64 69 66 66 65 72 65 |t) use a| differe|
|000013f0| 6e 74 0a 66 75 6e 63 74 | 69 6f 6e 20 66 6f 72 20 |nt.funct|ion for |
|00001400| 66 6f 72 6d 61 74 74 65 | 64 20 6f 75 74 70 75 74 |formatte|d output|
|00001410| 2c 20 61 6e 64 20 50 6c | 65 78 75 73 20 5f 70 72 |, and Pl|exus _pr|
|00001420| 69 6e 74 20 74 61 6b 65 | 73 20 64 69 66 66 65 72 |int take|s differ|
|00001430| 65 6e 74 20 61 72 67 75 | 6d 65 6e 74 73 2e 0a 52 |ent argu|ments..R|
|00001440| 65 6d 6f 76 65 20 2d 44 | 55 53 45 5f 50 52 49 4e |emove -D|USE_PRIN|
|00001450| 54 20 66 72 6f 6d 20 74 | 68 65 20 43 46 4c 41 47 |T from t|he CFLAG|
|00001460| 53 20 69 6e 20 74 68 65 | 20 4d 61 6b 65 66 69 6c |S in the| Makefil|
|00001470| 65 20 69 66 20 79 6f 75 | 72 20 73 79 73 74 65 6d |e if you|r system|
|00001480| 20 75 73 65 73 0a 5f 64 | 6f 70 72 6e 74 28 29 2e | uses._d|oprnt().|
|00001490| 0a 0a 54 6f 20 69 6e 73 | 74 61 6c 6c 20 55 4e 61 |..To ins|tall UNa|
|000014a0| 58 63 65 73 73 2c 20 74 | 79 70 65 20 60 60 73 68 |Xcess, t|ype ``sh|
|000014b0| 20 55 74 69 6c 69 74 69 | 65 73 2f 69 6e 73 74 61 | Utiliti|es/insta|
|000014c0| 6c 6c 2e 73 68 27 27 20 | 77 68 69 6c 65 20 69 6e |ll.sh'' |while in|
|000014d0| 20 74 68 65 20 73 6f 75 | 72 63 65 0a 64 69 72 65 | the sou|rce.dire|
|000014e0| 63 74 6f 72 79 2e 20 59 | 6f 75 20 77 69 6c 6c 20 |ctory. Y|ou will |
|000014f0| 62 65 20 61 73 6b 65 64 | 20 76 61 72 69 6f 75 73 |be asked| various|
|00001500| 20 71 75 65 73 74 69 6f | 6e 73 20 61 6e 64 20 62 | questio|ns and b|
|00001510| 65 20 70 6c 61 63 65 64 | 20 69 6e 20 74 68 65 20 |e placed| in the |
|00001520| 65 64 69 74 6f 72 20 74 | 6f 0a 63 6f 6d 70 6f 73 |editor t|o.compos|
|00001530| 65 20 61 20 62 75 6c 6c | 65 74 69 6e 2e 0a 0a 41 |e a bull|etin...A|
|00001540| 66 74 65 72 20 69 6e 73 | 74 61 6c 6c 61 74 69 6f |fter ins|tallatio|
|00001550| 6e 2c 20 79 6f 75 20 73 | 68 6f 75 6c 64 20 65 64 |n, you s|hould ed|
|00001560| 69 74 20 74 68 65 20 4e | 65 77 4d 65 73 73 61 67 |it the N|ewMessag|
|00001570| 65 20 66 69 6c 65 20 61 | 73 20 73 70 65 63 69 66 |e file a|s specif|
|00001580| 69 65 64 20 62 79 20 74 | 68 65 0a 69 6e 73 74 61 |ied by t|he.insta|
|00001590| 6c 6c 61 74 69 6f 6e 20 | 73 63 72 69 70 74 2e 20 |llation |script. |
|000015a0| 20 49 74 20 73 68 6f 75 | 6c 64 20 73 61 79 20 61 | It shou|ld say a|
|000015b0| 6e 79 74 68 69 6e 67 20 | 79 6f 75 20 77 61 6e 74 |nything |you want|
|000015c0| 20 6e 65 77 20 75 73 65 | 72 73 20 74 6f 20 6b 6e | new use|rs to kn|
|000015d0| 6f 77 20 62 65 66 6f 72 | 65 0a 72 65 67 69 73 74 |ow befor|e.regist|
|000015e0| 65 72 69 6e 67 20 61 73 | 20 55 4e 61 58 63 65 73 |ering as| UNaXces|
|000015f0| 73 20 75 73 65 72 73 2e | 0a 0a 59 6f 75 20 73 68 |s users.|..You sh|
|00001600| 6f 75 6c 64 20 61 6c 73 | 6f 20 72 75 6e 20 55 6e |ould als|o run Un|
|00001610| 61 58 63 65 73 73 20 61 | 73 20 73 79 73 6f 70 20 |aXcess a|s sysop |
|00001620| 61 6e 64 20 74 79 70 65 | 20 60 60 75 73 65 72 20 |and type| ``user |
|00001630| 6e 65 77 27 27 20 74 6f | 20 65 64 69 74 20 74 68 |new'' to| edit th|
|00001640| 65 20 6e 65 77 2d 0a 75 | 73 65 72 20 73 65 74 75 |e new-.u|ser setu|
|00001650| 70 2e 20 20 54 68 65 20 | 70 61 72 61 6d 65 74 65 |p. The |paramete|
|00001660| 72 20 74 6f 20 62 65 20 | 73 65 74 20 69 73 20 74 |r to be |set is t|
|00001670| 68 65 20 61 63 63 65 73 | 73 20 6c 65 76 65 6c 20 |he acces|s level |
|00001680| 67 72 61 6e 74 65 64 2e | 20 20 41 73 0a 64 69 73 |granted.| As.dis|
|00001690| 74 72 69 62 75 2d 20 74 | 65 64 2c 20 74 68 69 73 |tribu- t|ed, this|
|000016a0| 20 69 73 20 55 53 45 52 | 20 61 63 63 65 73 73 20 | is USER| access |
|000016b0| 6c 65 76 65 6c 2e 20 20 | 46 6f 72 20 62 75 73 69 |level. |For busi|
|000016c0| 6e 65 73 73 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |ness app|lication|
|000016d0| 73 2c 20 74 68 69 73 0a | 73 68 6f 75 6c 64 20 62 |s, this.|should b|
|000016e0| 65 20 53 59 53 54 45 4d | 20 28 61 6c 6c 6f 77 69 |e SYSTEM| (allowi|
|000016f0| 6e 67 20 73 68 65 6c 6c | 20 61 63 63 65 73 73 29 |ng shell| access)|
|00001700| 2e 20 20 46 6f 72 20 63 | 65 72 74 61 69 6e 20 61 |. For c|ertain a|
|00001710| 70 70 6c 69 63 61 74 69 | 6f 6e 73 2c 20 69 74 20 |pplicati|ons, it |
|00001720| 73 68 6f 75 6c 64 0a 62 | 65 20 73 65 74 20 74 6f |should.b|e set to|
|00001730| 20 47 55 45 53 54 20 28 | 75 73 65 72 73 20 63 61 | GUEST (|users ca|
|00001740| 6e 20 6f 6e 6c 79 20 70 | 6f 73 74 20 74 6f 20 74 |n only p|ost to t|
|00001750| 68 65 20 47 55 45 53 54 | 20 63 6f 6e 66 65 72 65 |he GUEST| confere|
|00001760| 6e 63 65 29 2e 20 20 4e | 6f 74 65 20 74 68 61 74 |nce). N|ote that|
|00001770| 0a 74 68 65 72 65 20 61 | 72 65 20 36 20 61 63 63 |.there a|re 6 acc|
|00001780| 65 73 73 20 6c 65 76 65 | 6c 73 3a 0a 0a 09 4e 4f |ess leve|ls:...NO|
|00001790| 4e 45 09 09 2d 20 64 65 | 2d 61 63 74 69 76 61 74 |NE..- de|-activat|
|000017a0| 65 64 20 6c 6f 67 69 6e | 73 20 6f 72 20 75 6e 2d |ed login|s or un-|
|000017b0| 76 61 6c 69 64 61 74 65 | 64 20 6c 6f 67 69 6e 73 |validate|d logins|
|000017c0| 0a 09 4d 41 4b 45 55 53 | 45 52 09 2d 20 72 75 6e |..MAKEUS|ER.- run|
|000017d0| 73 20 74 68 65 20 75 73 | 65 72 20 6d 61 6b 65 72 |s the us|er maker|
|000017e0| 20 62 65 66 6f 72 65 20 | 65 6e 74 65 72 69 6e 67 | before |entering|
|000017f0| 0a 09 47 55 45 53 54 09 | 09 2d 20 63 61 6e 20 72 |..GUEST.|.- can r|
|00001800| 65 61 64 20 61 6e 79 74 | 68 69 6e 67 2c 20 6f 6e |ead anyt|hing, on|
|00001810| 6c 79 20 61 64 64 20 74 | 6f 20 47 55 45 53 54 0a |ly add t|o GUEST.|
|00001820| 09 46 49 4c 45 53 09 09 | 2d 20 63 61 6e 20 61 63 |.FILES..|- can ac|
|00001830| 63 65 73 73 20 74 68 65 | 20 46 69 6c 65 20 53 65 |cess the| File Se|
|00001840| 63 74 69 6f 6e 0a 09 53 | 59 53 54 45 4d 09 09 2d |ction..S|YSTEM..-|
|00001850| 20 63 61 6e 20 75 73 65 | 20 74 68 65 20 43 20 63 | can use| the C c|
|00001860| 6f 6d 6d 61 6e 64 20 28 | 73 68 65 6c 6c 20 61 63 |ommand (|shell ac|
|00001870| 63 65 73 73 29 2c 20 61 | 6c 73 6f 0a 09 09 09 20 |cess), a|lso.... |
|00001880| 20 63 61 6e 20 75 73 65 | 20 61 20 73 79 73 74 65 | can use| a syste|
|00001890| 6d 20 65 64 69 74 6f 72 | 20 74 6f 20 65 64 69 74 |m editor| to edit|
|000018a0| 20 6d 65 73 73 61 67 65 | 73 0a 09 46 41 49 52 57 | message|s..FAIRW|
|000018b0| 49 54 4e 45 53 53 09 2d | 20 61 6c 6c 20 62 75 74 |ITNESS.-| all but|
|000018c0| 20 61 20 73 79 73 6f 70 | 2e 20 20 54 68 65 20 6f | a sysop|. The o|
|000018d0| 6e 6c 79 20 6c 69 6d 69 | 74 61 74 69 6f 6e 20 69 |nly limi|tation i|
|000018e0| 73 20 74 68 61 74 0a 09 | 09 09 20 20 6f 6e 6c 79 |s that..|.. only|
|000018f0| 20 74 68 65 20 53 79 73 | 6f 70 20 28 77 68 6f 20 | the Sys|op (who |
|00001900| 69 73 20 61 20 66 61 69 | 72 77 69 74 6e 65 73 73 |is a fai|rwitness|
|00001910| 29 20 63 61 6e 20 6d 61 | 6b 65 0a 09 09 09 20 20 |) can ma|ke.... |
|00001920| 6f 72 20 62 72 65 61 6b | 20 6f 74 68 65 72 20 66 |or break| other f|
|00001930| 61 69 72 77 69 74 6e 65 | 73 73 65 73 2e 0a 0a 2d |airwitne|sses...-|
|00001940| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001950| 2d 2d 2d 2d 2d 2d 0a 53 | 6f 6d 65 20 6e 6f 74 65 |------.S|ome note|
|00001960| 73 3a 0a 0a 54 68 65 20 | 63 6f 6e 66 69 67 75 72 |s:..The |configur|
|00001970| 61 74 69 6f 6e 20 66 69 | 6c 65 20 69 73 20 73 74 |ation fi|le is st|
|00001980| 6f 72 65 64 20 69 6e 20 | 74 68 65 20 68 6f 6d 65 |ored in |the home|
|00001990| 20 64 69 72 65 63 74 6f | 72 79 20 6f 66 20 74 68 | directo|ry of th|
|000019a0| 65 20 55 4e 61 58 63 65 | 73 73 20 73 79 73 74 65 |e UNaXce|ss syste|
|000019b0| 6d 0a 61 6e 64 20 69 73 | 20 6e 61 6d 65 64 20 60 |m.and is| named `|
|000019c0| 60 75 61 2d 63 6f 6e 66 | 69 67 27 27 2e 20 20 49 |`ua-conf|ig''. I|
|000019d0| 74 20 63 6f 6e 74 61 69 | 6e 73 20 6c 69 6e 65 73 |t contai|ns lines|
|000019e0| 20 6f 66 20 74 68 65 20 | 66 6f 72 6d 61 74 3a 0a | of the |format:.|
|000019f0| 0a 09 09 09 20 20 20 20 | 76 61 72 69 61 62 6c 65 |.... |variable|
|00001a00| 09 76 61 6c 75 65 0a 0a | 54 68 65 20 64 65 66 61 |.value..|The defa|
|00001a10| 75 6c 74 73 20 61 72 65 | 20 63 6f 6e 74 61 69 6e |ults are| contain|
|00001a20| 65 64 20 69 6e 20 70 61 | 72 61 6d 2e 63 2c 20 6e |ed in pa|ram.c, n|
|00001a30| 6f 74 20 74 68 61 74 20 | 79 6f 75 20 73 68 6f 75 |ot that |you shou|
|00001a40| 6c 64 20 63 68 61 6e 67 | 65 20 74 68 65 6d 20 28 |ld chang|e them (|
|00001a50| 74 68 61 74 27 73 0a 77 | 68 61 74 20 74 68 65 20 |that's.w|hat the |
|00001a60| 63 6f 6e 66 69 67 20 66 | 69 6c 65 20 69 73 20 66 |config f|ile is f|
|00001a70| 6f 72 29 2e 20 20 55 4e | 4b 4e 4f 57 4e 20 56 41 |or). UN|KNOWN VA|
|00001a80| 52 49 41 42 4c 45 53 20 | 57 49 4c 4c 20 43 41 55 |RIABLES |WILL CAU|
|00001a90| 53 45 20 55 4e 41 58 43 | 45 53 53 20 4e 4f 54 20 |SE UNAXC|ESS NOT |
|00001aa0| 54 4f 0a 52 55 4e 2e 20 | 20 54 68 65 20 76 61 72 |TO.RUN. | The var|
|00001ab0| 69 61 62 6c 65 73 20 61 | 72 65 3a 0a 0a 09 72 65 |iables a|re:...re|
|00001ac0| 61 64 6f 6e 6c 79 09 62 | 6f 6f 6c 65 61 6e 09 49 |adonly.b|oolean.I|
|00001ad0| 6e 64 69 63 61 74 65 73 | 20 77 68 65 74 68 65 72 |ndicates| whether|
|00001ae0| 20 52 65 61 64 2d 4f 6e | 6c 79 20 63 6f 6e 66 65 | Read-On|ly confe|
|00001af0| 72 65 6e 63 65 73 20 61 | 72 65 0a 09 09 09 09 76 |rences a|re.....v|
|00001b00| 61 6c 69 64 2e 20 20 52 | 65 61 64 2d 4f 6e 6c 79 |alid. R|ead-Only|
|00001b10| 20 63 6f 6e 66 65 72 65 | 6e 63 65 73 20 62 65 67 | confere|nces beg|
|00001b20| 69 6e 20 77 69 74 68 0a | 09 09 09 09 74 68 65 20 |in with.|....the |
|00001b30| 63 68 61 72 61 63 74 65 | 72 73 20 60 60 72 2d 27 |characte|rs ``r-'|
|00001b40| 27 2e 0a 0a 09 78 2d 72 | 61 74 65 64 09 09 62 6f |'....x-r|ated..bo|
|00001b50| 6f 6c 65 61 6e 09 49 6e | 64 69 63 61 74 65 73 20 |olean.In|dicates |
|00001b60| 77 68 65 74 68 65 72 20 | 58 2d 52 61 74 65 64 20 |whether |X-Rated |
|00001b70| 28 72 65 73 74 72 69 63 | 74 65 64 29 0a 09 09 09 |(restric|ted)....|
|00001b80| 09 63 6f 6e 66 65 72 65 | 6e 63 65 73 20 61 72 65 |.confere|nces are|
|00001b90| 20 76 61 6c 69 64 2e 20 | 20 58 2d 52 61 74 65 64 | valid. | X-Rated|
|00001ba0| 20 63 6f 6e 66 65 72 65 | 6e 63 65 73 0a 09 09 09 | confere|nces....|
|00001bb0| 09 62 65 67 69 6e 20 77 | 69 74 68 20 74 68 65 20 |.begin w|ith the |
|00001bc0| 63 68 61 72 61 63 74 65 | 72 73 20 60 60 78 2d 27 |characte|rs ``x-'|
|00001bd0| 27 2e 0a 0a 09 65 64 69 | 74 6f 72 09 09 73 74 72 |'....edi|tor..str|
|00001be0| 69 6e 67 09 54 68 65 20 | 70 61 74 68 20 6f 66 20 |ing.The |path of |
|00001bf0| 74 68 65 20 65 64 69 74 | 6f 72 20 74 6f 20 75 73 |the edit|or to us|
|00001c00| 65 20 69 6e 20 63 72 65 | 61 74 69 6e 67 0a 09 09 |e in cre|ating...|
|00001c10| 09 09 6d 65 73 73 61 67 | 65 73 2e 20 20 54 68 65 |..messag|es. The|
|00001c20| 20 65 64 69 74 6f 72 20 | 60 60 75 61 2d 65 64 69 | editor |``ua-edi|
|00001c30| 74 27 27 20 69 73 20 74 | 68 65 0a 09 09 09 09 62 |t'' is t|he.....b|
|00001c40| 75 69 6c 74 2d 69 6e 20 | 65 64 69 74 6f 72 2e 20 |uilt-in |editor. |
|00001c50| 20 54 68 69 73 20 65 64 | 69 74 6f 72 20 69 73 20 | This ed|itor is |
|00001c60| 75 73 65 64 20 6f 6e 6c | 79 0a 09 09 09 09 69 66 |used onl|y.....if|
|00001c70| 20 74 68 65 20 75 73 65 | 72 20 68 61 73 20 53 59 | the use|r has SY|
|00001c80| 53 54 45 4d 20 61 63 63 | 65 73 73 20 6f 72 20 67 |STEM acc|ess or g|
|00001c90| 72 65 61 74 65 72 3b 0a | 09 09 09 09 6f 74 68 65 |reater;.|....othe|
|00001ca0| 72 77 69 73 65 2c 20 74 | 68 65 20 62 75 69 6c 74 |rwise, t|he built|
|00001cb0| 2d 69 6e 20 65 64 69 74 | 6f 72 20 69 73 20 75 73 |-in edit|or is us|
|00001cc0| 65 64 2e 0a 0a 09 73 68 | 65 6c 6c 09 09 73 74 72 |ed....sh|ell..str|
|00001cd0| 69 6e 67 09 54 68 65 20 | 70 61 74 68 20 6f 66 20 |ing.The |path of |
|00001ce0| 74 68 65 20 73 68 65 6c | 6c 20 74 6f 20 75 73 65 |the shel|l to use|
|00001cf0| 20 77 68 65 6e 20 74 68 | 65 20 43 0a 09 09 09 09 | when th|e C.....|
|00001d00| 63 6f 6d 6d 61 6e 64 20 | 69 73 20 69 6e 76 6f 6b |command |is invok|
|00001d10| 65 64 2e 20 20 54 68 65 | 20 43 20 63 6f 6d 6d 61 |ed. The| C comma|
|00001d20| 6e 64 20 69 73 20 6e 6f | 74 0a 09 09 09 09 76 61 |nd is no|t.....va|
|00001d30| 6c 69 64 20 66 6f 72 20 | 75 73 65 72 73 20 77 68 |lid for |users wh|
|00001d40| 6f 73 65 20 61 63 63 65 | 73 73 20 69 73 20 6c 65 |ose acce|ss is le|
|00001d50| 73 73 20 74 68 61 6e 0a | 09 09 09 09 53 59 53 54 |ss than.|....SYST|
|00001d60| 45 4d 20 6c 65 76 65 6c | 2e 20 20 28 4e 6f 74 65 |EM level|. (Note|
|00001d70| 3a 20 20 74 68 65 72 65 | 20 69 73 20 6e 6f 20 72 |: there| is no r|
|00001d80| 65 61 73 6f 6e 0a 09 09 | 09 09 74 68 61 74 20 74 |eason...|..that t|
|00001d90| 68 69 73 20 6d 75 73 74 | 20 62 65 20 61 20 73 68 |his must| be a sh|
|00001da0| 65 6c 6c 2e 20 20 54 68 | 65 20 6f 72 69 67 69 6e |ell. Th|e origin|
|00001db0| 61 6c 0a 09 09 09 09 76 | 65 72 73 69 6f 6e 20 6f |al.....v|ersion o|
|00001dc0| 66 20 74 68 65 20 46 69 | 6c 65 20 53 65 63 74 69 |f the Fi|le Secti|
|00001dd0| 6f 6e 20 77 61 73 20 61 | 20 73 65 70 61 72 61 74 |on was a| separat|
|00001de0| 65 0a 09 09 09 09 70 72 | 6f 67 72 61 6d 20 61 63 |e.....pr|ogram ac|
|00001df0| 63 65 73 73 65 64 20 62 | 79 20 74 68 65 20 43 20 |cessed b|y the C |
|00001e00| 63 6f 6d 6d 61 6e 64 2e | 29 0a 0a 09 72 65 61 64 |command.|)...read|
|00001e10| 2d 65 6e 76 09 62 6f 6f | 6c 65 61 6e 09 49 6e 64 |-env.boo|lean.Ind|
|00001e20| 69 63 61 74 65 73 20 77 | 68 65 74 68 65 72 20 74 |icates w|hether t|
|00001e30| 68 65 20 75 73 65 72 27 | 73 20 65 6e 76 69 72 6f |he user'|s enviro|
|00001e40| 6e 6d 65 6e 74 0a 09 09 | 09 09 73 68 6f 75 6c 64 |nment...|..should|
|00001e50| 20 62 65 20 72 65 61 64 | 20 74 6f 20 69 6e 64 69 | be read| to indi|
|00001e60| 63 61 74 65 20 74 68 65 | 20 73 68 65 6c 6c 20 61 |cate the| shell a|
|00001e70| 6e 64 0a 09 09 09 09 65 | 64 69 74 6f 72 2e 0a 0a |nd.....e|ditor...|
|00001e80| 09 62 62 73 2d 75 73 65 | 72 09 73 74 72 69 6e 67 |.bbs-use|r.string|
|00001e90| 09 55 4e 61 58 63 65 73 | 73 20 77 69 6c 6c 20 70 |.UNaXces|s will p|
|00001ea0| 65 72 6d 69 74 20 61 20 | 75 73 65 72 20 77 68 6f |ermit a |user who|
|00001eb0| 73 65 20 55 6e 69 78 20 | 6c 6f 67 69 6e 0a 09 09 |se Unix |login...|
|00001ec0| 09 09 6e 61 6d 65 20 69 | 73 20 74 68 65 20 73 61 |..name i|s the sa|
|00001ed0| 6d 65 20 61 73 20 68 69 | 73 20 55 41 20 6c 6f 67 |me as hi|s UA log|
|00001ee0| 69 6e 20 6e 61 6d 65 20 | 74 6f 20 6c 6f 67 0a 09 |in name |to log..|
|00001ef0| 09 09 09 69 6e 20 66 72 | 6f 6d 20 74 68 65 20 73 |...in fr|om the s|
|00001f00| 68 65 6c 6c 20 77 69 74 | 68 6f 75 74 20 73 70 65 |hell wit|hout spe|
|00001f10| 63 69 66 79 69 6e 67 20 | 68 69 73 20 6e 61 6d 65 |cifying |his name|
|00001f20| 0a 09 09 09 09 6f 72 20 | 70 61 73 73 77 6f 72 64 |.....or |password|
|00001f30| 2e 20 20 54 68 65 20 60 | 60 62 62 73 2d 75 73 65 |. The `|`bbs-use|
|00001f40| 72 27 27 20 69 73 20 65 | 78 65 6d 70 74 20 66 72 |r'' is e|xempt fr|
|00001f50| 6f 6d 0a 09 09 09 09 74 | 68 69 73 3b 20 69 74 20 |om.....t|his; it |
|00001f60| 69 73 20 69 6e 74 65 6e | 64 65 64 20 74 6f 20 70 |is inten|ded to p|
|00001f70| 72 65 76 65 6e 74 20 62 | 72 65 61 63 68 65 73 20 |revent b|reaches |
|00001f80| 69 6e 0a 09 09 09 09 73 | 65 63 75 72 69 74 79 20 |in.....s|ecurity |
|00001f90| 62 79 20 69 6e 76 6f 6b | 69 6e 67 20 61 20 73 68 |by invok|ing a sh|
|00001fa0| 65 6c 6c 20 28 43 20 63 | 6f 6d 6d 61 6e 64 29 20 |ell (C c|ommand) |
|00001fb0| 61 6e 64 0a 09 09 09 09 | 72 75 6e 6e 69 6e 67 20 |and.....|running |
|00001fc0| 75 61 20 66 72 6f 6d 20 | 74 68 65 20 73 68 65 6c |ua from |the shel|
|00001fd0| 6c 2e 0a 0a 09 74 69 6d | 65 2d 6c 69 6d 69 74 09 |l....tim|e-limit.|
|00001fe0| 6e 75 6d 62 65 72 09 54 | 68 69 73 20 69 73 20 74 |number.T|his is t|
|00001ff0| 68 65 20 74 69 6d 65 20 | 6c 69 6d 69 74 20 66 6f |he time |limit fo|
|00002000| 72 20 55 4e 61 58 63 65 | 73 73 20 69 6e 20 6d 69 |r UNaXce|ss in mi|
|00002010| 6e 75 74 65 73 2e 0a 09 | 09 09 09 49 66 20 74 68 |nutes...|...If th|
|00002020| 69 73 20 69 73 20 7a 65 | 72 6f 2c 20 6e 6f 20 74 |is is ze|ro, no t|
|00002030| 69 6d 65 2d 6f 75 74 20 | 6f 63 63 75 72 73 2e 20 |ime-out |occurs. |
|00002040| 20 41 20 77 61 72 6e 69 | 6e 67 0a 09 09 09 09 69 | A warni|ng.....i|
|00002050| 73 20 67 69 76 65 6e 20 | 66 69 76 65 20 6d 69 6e |s given |five min|
|00002060| 75 74 65 73 20 62 65 66 | 6f 72 65 20 61 20 6c 6f |utes bef|ore a lo|
|00002070| 67 6f 75 74 3b 20 69 66 | 20 74 68 65 0a 09 09 09 |gout; if| the....|
|00002080| 09 75 73 65 72 20 69 73 | 20 69 6e 20 74 68 65 20 |.user is| in the |
|00002090| 73 68 65 6c 6c 20 6f 72 | 20 65 64 69 74 6f 72 20 |shell or| editor |
|000020a0| 77 68 65 6e 20 68 69 73 | 20 74 69 6d 65 0a 09 09 |when his| time...|
|000020b0| 09 09 72 75 6e 73 20 6f | 75 74 2c 20 65 78 69 74 |..runs o|ut, exit|
|000020c0| 69 6e 67 20 74 68 65 20 | 73 68 65 6c 6c 20 6f 72 |ing the |shell or|
|000020d0| 20 65 64 69 74 6f 72 20 | 77 69 6c 6c 0a 09 09 09 | editor |will....|
|000020e0| 09 6c 6f 67 20 68 69 6d | 20 6f 75 74 2e 0a 0a 09 |.log him| out....|
|000020f0| 73 79 73 6f 70 09 09 73 | 74 72 69 6e 67 09 54 68 |sysop..s|tring.Th|
|00002100| 65 20 6e 61 6d 65 20 6f | 66 20 74 68 65 20 55 4e |e name o|f the UN|
|00002110| 61 58 63 65 73 73 20 73 | 79 73 6f 70 20 69 73 20 |aXcess s|ysop is |
|00002120| 63 6f 6e 66 69 67 75 72 | 61 62 6c 65 2e 0a 09 09 |configur|able....|
|00002130| 09 09 53 70 65 63 69 61 | 6c 2d 70 75 72 70 6f 73 |..Specia|l-purpos|
|00002140| 65 20 73 79 73 74 65 6d | 73 20 6d 61 79 20 69 6e |e system|s may in|
|00002150| 64 69 63 61 74 65 20 61 | 20 6d 6f 72 65 0a 09 09 |dicate a| more...|
|00002160| 09 09 64 65 73 63 72 69 | 70 74 69 76 65 20 6e 61 |..descri|ptive na|
|00002170| 6d 65 20 28 69 2e 65 2e | 20 44 55 4e 47 45 4f 4e |me (i.e.| DUNGEON|
|00002180| 20 4d 41 53 54 45 52 20 | 66 6f 72 20 61 0a 09 09 | MASTER |for a...|
|00002190| 09 09 66 61 6e 74 61 73 | 79 20 67 61 6d 69 6e 67 |..fantas|y gaming|
|000021a0| 20 42 42 53 29 2e 0a 0a | 09 70 72 69 76 61 74 65 | BBS)...|.private|
|000021b0| 2d 6d 73 67 73 09 62 6f | 6f 6c 65 61 6e 09 49 6e |-msgs.bo|olean.In|
|000021c0| 64 69 63 61 74 65 73 20 | 77 68 65 74 68 65 72 20 |dicates |whether |
|000021d0| 70 72 69 76 61 74 65 20 | 6d 65 73 73 61 67 65 73 |private |messages|
|000021e0| 20 6d 61 79 20 62 65 0a | 09 09 09 09 63 72 65 61 | may be.|....crea|
|000021f0| 74 65 64 2e 0a 0a 09 6c | 6f 67 67 69 6e 67 09 09 |ted....l|ogging..|
|00002200| 62 6f 6f 6c 65 61 6e 09 | 49 6e 64 69 63 61 74 65 |boolean.|Indicate|
|00002210| 73 20 77 68 65 74 68 65 | 72 20 61 20 73 65 73 73 |s whethe|r a sess|
|00002220| 69 6f 6e 20 6c 6f 67 20 | 73 68 6f 75 6c 64 20 62 |ion log |should b|
|00002230| 65 20 6b 65 70 74 0a 09 | 09 09 09 69 6e 20 4c 6f |e kept..|...in Lo|
|00002240| 67 66 69 6c 65 2e 20 20 | 54 68 69 73 20 61 6c 6c |gfile. |This all|
|00002250| 6f 77 73 20 79 6f 75 20 | 74 6f 20 74 72 61 63 6b |ows you |to track|
|00002260| 20 73 65 63 75 72 69 74 | 79 0a 09 09 09 09 70 72 | securit|y.....pr|
|00002270| 6f 62 6c 65 6d 73 2c 20 | 70 65 6f 70 6c 65 20 77 |oblems, |people w|
|00002280| 68 6f 20 6d 69 73 75 73 | 65 20 74 68 65 20 73 79 |ho misus|e the sy|
|00002290| 73 74 65 6d 2c 20 6f 72 | 0a 09 09 09 09 28 68 65 |stem, or|.....(he|
|000022a0| 61 76 65 6e 20 66 6f 72 | 62 69 64 29 20 62 75 67 |aven for|bid) bug|
|000022b0| 73 2e 20 20 48 6f 77 65 | 76 65 72 2c 20 74 68 65 |s. Howe|ver, the|
|000022c0| 20 6c 6f 67 20 67 65 74 | 73 0a 09 09 09 09 62 69 | log get|s.....bi|
|000022d0| 67 20 72 61 74 68 65 72 | 20 71 75 69 63 6b 6c 79 |g rather| quickly|
|000022e0| 2c 20 73 6f 20 79 6f 75 | 20 6d 61 79 20 77 69 73 |, so you| may wis|
|000022f0| 68 20 74 6f 20 6c 65 61 | 76 65 0a 09 09 09 09 74 |h to lea|ve.....t|
|00002300| 68 69 73 20 6f 66 66 2e | 0a 0a 09 62 61 6e 6e 65 |his off.|...banne|
|00002310| 72 09 09 73 74 72 69 6e | 67 09 54 68 69 73 20 73 |r..strin|g.This s|
|00002320| 74 72 69 6e 67 20 63 6f | 6e 74 61 69 6e 73 20 74 |tring co|ntains t|
|00002330| 68 65 20 6e 61 6d 65 20 | 6f 66 20 61 20 66 69 6c |he name |of a fil|
|00002340| 65 20 77 68 6f 73 65 0a | 09 09 09 09 63 6f 6e 74 |e whose.|....cont|
|00002350| 65 6e 74 73 20 61 72 65 | 20 70 72 69 6e 74 65 64 |ents are| printed|
|00002360| 20 77 68 65 6e 20 61 20 | 75 73 65 72 20 72 75 6e | when a |user run|
|00002370| 73 20 55 4e 61 58 63 65 | 73 73 2c 0a 09 09 09 09 |s UNaXce|ss,.....|
|00002380| 62 65 66 6f 72 65 20 74 | 68 65 20 6c 6f 67 69 6e |before t|he login|
|00002390| 20 6d 65 73 73 61 67 65 | 2e 20 20 49 66 20 74 68 | message|. If th|
|000023a0| 65 20 73 74 72 69 6e 67 | 20 69 73 0a 09 09 09 09 |e string| is.....|
|000023b0| 65 6d 70 74 79 2c 20 61 | 20 64 65 66 61 75 6c 74 |empty, a| default|
|000023c0| 20 62 61 6e 6e 65 72 20 | 69 73 20 75 73 65 64 2e | banner |is used.|
|000023d0| 0a 0a 09 6c 6f 67 69 6e | 2d 6d 73 67 09 73 74 72 |...login|-msg.str|
|000023e0| 69 6e 67 09 54 68 69 73 | 20 73 74 72 69 6e 67 20 |ing.This| string |
|000023f0| 69 73 20 70 72 69 6e 74 | 65 64 20 61 73 20 74 68 |is print|ed as th|
|00002400| 65 20 6c 6f 67 69 6e 20 | 70 72 6f 6d 70 74 2e 0a |e login |prompt..|
|00002410| 09 09 09 09 49 66 20 69 | 74 20 69 73 20 65 6d 70 |....If i|t is emp|
|00002420| 74 79 2c 20 61 20 64 65 | 66 61 75 6c 74 20 73 74 |ty, a de|fault st|
|00002430| 72 69 6e 67 20 69 73 20 | 75 73 65 64 2e 0a 09 09 |ring is |used....|
|00002440| 09 09 59 6f 75 20 6d 69 | 67 68 74 20 77 61 6e 74 |..You mi|ght want|
|00002450| 20 74 6f 20 63 68 61 6e | 67 65 20 74 68 69 73 20 | to chan|ge this |
|00002460| 69 66 20 79 6f 75 20 64 | 69 73 61 6c 6c 6f 77 0a |if you d|isallow.|
|00002470| 09 09 09 09 47 55 45 53 | 54 20 6f 72 20 4e 45 57 |....GUES|T or NEW|
|00002480| 20 6c 6f 67 69 6e 73 2c | 20 6f 72 20 63 68 61 6e | logins,| or chan|
|00002490| 67 65 20 74 68 65 69 72 | 20 6e 61 6d 65 73 2e 0a |ge their| names..|
|000024a0| 0a 09 70 61 75 73 65 73 | 09 09 6e 75 6d 62 65 72 |..pauses|..number|
|000024b0| 09 54 68 69 73 20 69 73 | 20 32 20 66 6f 72 20 6e |.This is| 2 for n|
|000024c0| 6f 20 70 61 75 73 65 73 | 2c 20 31 20 66 6f 72 20 |o pauses|, 1 for |
|000024d0| 75 73 65 72 2d 73 70 65 | 63 69 66 69 65 64 0a 09 |user-spe|cified..|
|000024e0| 09 09 09 70 61 75 73 69 | 6e 67 2c 20 61 6e 64 20 |...pausi|ng, and |
|000024f0| 30 20 66 6f 72 20 66 6f | 72 63 65 64 20 70 61 75 |0 for fo|rced pau|
|00002500| 73 69 6e 67 2e 20 20 41 | 20 63 68 65 61 70 0a 09 |sing. A| cheap..|
|00002510| 09 09 09 62 75 69 6c 74 | 2d 69 6e 20 70 61 67 65 |...built|-in page|
|00002520| 72 20 69 73 20 75 73 65 | 64 2e 0a 0a 09 6c 6f 67 |r is use|d....log|
|00002530| 69 6e 2d 74 72 69 65 73 | 09 6e 75 6d 62 65 72 09 |in-tries|.number.|
|00002540| 49 66 20 74 68 69 73 20 | 69 73 20 6e 6f 74 20 30 |If this |is not 0|
|00002550| 2c 20 69 74 20 73 70 65 | 63 69 66 69 65 73 20 74 |, it spe|cifies t|
|00002560| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 0a 09 09 09 |he numbe|r of....|
|00002570| 09 6c 6f 67 69 6e 20 61 | 74 74 65 6d 70 74 73 20 |.login a|ttempts |
|00002580| 70 65 72 6d 69 74 74 65 | 64 20 62 65 66 6f 72 65 |permitte|d before|
|00002590| 20 55 4e 61 58 63 65 73 | 73 20 65 78 69 74 73 2e | UNaXces|s exits.|
|000025a0| 0a 0a 09 61 73 63 69 69 | 2d 75 70 6c 6f 61 64 09 |...ascii|-upload.|
|000025b0| 73 74 72 69 6e 67 09 54 | 68 65 73 65 20 61 72 65 |string.T|hese are|
|000025c0| 20 74 68 65 20 63 6f 6d | 6d 61 6e 64 20 73 74 72 | the com|mand str|
|000025d0| 69 6e 67 73 20 74 6f 20 | 62 65 20 70 61 73 73 65 |ings to |be passe|
|000025e0| 64 20 74 6f 0a 09 61 73 | 63 69 69 2d 64 6f 77 6e |d to..as|cii-down|
|000025f0| 6c 6f 61 64 09 09 2f 62 | 69 6e 2f 73 68 20 76 69 |load../b|in/sh vi|
|00002600| 61 20 73 79 73 74 65 6d | 28 29 20 74 6f 20 70 65 |a system|() to pe|
|00002610| 72 66 6f 72 6d 20 74 68 | 65 20 73 70 65 63 69 66 |rform th|e specif|
|00002620| 69 65 64 0a 09 78 6d 6f | 64 65 6d 2d 75 70 6c 6f |ied..xmo|dem-uplo|
|00002630| 61 64 09 09 61 63 74 69 | 6f 6e 2e 20 20 54 68 65 |ad..acti|on. The|
|00002640| 20 64 65 66 75 61 6c 74 | 73 20 61 72 65 3a 20 20 | defualt|s are: |
|00002650| 61 20 63 61 74 20 73 74 | 72 69 6e 67 20 66 6f 72 |a cat st|ring for|
|00002660| 0a 09 78 6d 6f 64 65 6d | 2d 64 6f 77 6e 6c 6f 61 |..xmodem|-downloa|
|00002670| 64 09 09 61 73 63 69 69 | 2c 20 75 6d 6f 64 65 6d |d..ascii|, umodem|
|00002680| 20 2d 5b 73 72 5d 62 20 | 66 6f 72 20 58 4d 6f 64 | -[sr]b |for XMod|
|00002690| 65 6d 2c 20 61 6e 64 20 | 43 2d 4b 65 72 6d 69 74 |em, and |C-Kermit|
|000026a0| 0a 09 6b 65 72 6d 69 74 | 2d 75 70 6c 6f 61 64 09 |..kermit|-upload.|
|000026b0| 09 63 6f 6d 6d 61 6e 64 | 20 73 74 72 69 6e 67 73 |.command| strings|
|000026c0| 20 66 6f 72 20 4b 65 72 | 6d 69 74 2e 20 20 54 68 | for Ker|mit. Th|
|000026d0| 65 20 73 74 72 69 6e 67 | 20 60 60 25 73 27 27 0a |e string| ``%s''.|
|000026e0| 09 6b 65 72 6d 69 74 2d | 64 6f 77 6e 6c 6f 61 64 |.kermit-|download|
|000026f0| 09 09 77 69 6c 6c 20 62 | 65 20 72 65 70 6c 61 63 |..will b|e replac|
|00002700| 65 64 20 77 69 74 68 20 | 74 68 65 20 66 69 6c 65 |ed with |the file|
|00002710| 27 73 20 70 61 74 68 3b | 20 69 66 20 6e 6f 0a 09 |'s path;| if no..|
|00002720| 09 09 09 60 60 25 73 27 | 27 20 69 73 20 73 70 65 |...``%s'|' is spe|
|00002730| 63 69 66 69 65 64 2c 20 | 74 68 65 20 70 61 74 68 |cified, |the path|
|00002740| 6e 61 6d 65 20 77 69 6c | 6c 20 62 65 0a 09 09 09 |name wil|l be....|
|00002750| 09 61 70 70 65 6e 64 65 | 64 20 74 6f 20 74 68 65 |.appende|d to the|
|00002760| 20 63 6f 6d 6d 61 6e 64 | 2c 20 70 72 65 63 65 64 | command|, preced|
|00002770| 65 64 20 62 79 20 61 20 | 73 70 61 63 65 2e 0a 09 |ed by a |space...|
|00002780| 09 09 09 49 66 20 74 68 | 65 20 73 74 72 69 6e 67 |...If th|e string|
|00002790| 20 69 73 20 65 6d 70 74 | 79 2c 20 55 4e 61 58 63 | is empt|y, UNaXc|
|000027a0| 65 73 73 20 77 69 6c 6c | 20 61 73 73 75 6d 65 0a |ess will| assume.|
|000027b0| 09 09 09 09 74 68 61 74 | 20 6e 6f 20 63 61 70 61 |....that| no capa|
|000027c0| 63 69 74 79 20 65 78 69 | 73 74 73 20 66 6f 72 20 |city exi|sts for |
|000027d0| 74 68 65 20 61 63 74 69 | 6f 6e 2e 0a 0a 0a 41 20 |the acti|on....A |
|000027e0| 73 74 72 69 6e 67 20 69 | 73 20 73 70 65 63 69 66 |string i|s specif|
|000027f0| 69 65 64 20 69 6e 20 64 | 6f 75 62 6c 65 20 71 75 |ied in d|ouble qu|
|00002800| 6f 74 65 73 3a 20 20 22 | 2f 62 69 6e 2f 73 68 22 |otes: "|/bin/sh"|
|00002810| 2e 20 20 41 63 74 75 61 | 6c 6c 79 2c 20 74 68 65 |. Actua|lly, the|
|00002820| 20 71 75 6f 74 65 73 20 | 63 61 6e 0a 62 65 20 6c | quotes |can.be l|
|00002830| 65 66 74 20 6f 66 66 2c | 20 62 75 74 20 69 6e 20 |eft off,| but in |
|00002840| 74 68 69 73 20 63 61 73 | 65 20 74 68 65 20 73 74 |this cas|e the st|
|00002850| 72 69 6e 67 20 63 61 6e | 6e 6f 74 20 63 6f 6e 74 |ring can|not cont|
|00002860| 61 69 6e 20 73 70 61 63 | 65 73 20 6f 72 20 74 61 |ain spac|es or ta|
|00002870| 62 73 2e 20 20 41 0a 62 | 6f 6f 6c 65 61 6e 20 69 |bs. A.b|oolean i|
|00002880| 73 20 69 6e 64 69 63 61 | 74 65 64 20 61 73 20 59 |s indica|ted as Y|
|00002890| 45 53 20 6f 72 20 4e 4f | 20 28 59 20 6f 72 20 4e |ES or NO| (Y or N|
|000028a0| 20 77 69 6c 6c 20 64 6f | 2c 20 61 6e 64 20 63 61 | will do|, and ca|
|000028b0| 73 65 20 64 6f 65 73 6e | 27 74 20 6d 61 74 74 65 |se doesn|'t matte|
|000028c0| 72 29 2e 0a 41 20 6e 75 | 6d 62 65 72 20 69 73 20 |r)..A nu|mber is |
|000028d0| 73 69 6d 70 6c 79 20 61 | 20 6e 75 6d 62 65 72 2c |simply a| number,|
|000028e0| 20 62 75 74 20 69 73 20 | 6c 69 6d 69 74 65 64 20 | but is |limited |
|000028f0| 74 6f 20 30 2d 32 35 35 | 2e 20 20 53 74 72 69 6e |to 0-255|. Strin|
|00002900| 67 73 20 6d 61 79 20 63 | 6f 6e 74 61 69 6e 0a 65 |gs may c|ontain.e|
|00002910| 73 63 61 70 65 73 20 28 | 5c 6e 20 5c 72 20 5c 74 |scapes (|\n \r \t|
|00002920| 20 5c 62 20 5c 66 20 5c | 65 20 5c 6e 6e 6e 20 5c | \b \f \|e \nnn \|
|00002930| 61 29 20 28 5c 61 20 69 | 73 20 62 65 6c 6c 29 2e |a) (\a i|s bell).|
|00002940| 20 20 43 6f 6d 6d 65 6e | 74 73 20 61 72 65 20 69 | Commen|ts are i|
|00002950| 6e 64 69 63 61 74 65 64 | 20 62 79 0a 23 3b 20 74 |ndicated| by.#; t|
|00002960| 68 65 79 20 64 6f 20 4e | 4f 54 20 68 61 76 65 20 |hey do N|OT have |
|00002970| 74 6f 20 62 65 20 61 74 | 20 74 68 65 20 62 65 67 |to be at| the beg|
|00002980| 69 6e 6e 69 6e 67 20 6f | 66 20 61 20 6c 69 6e 65 |inning o|f a line|
|00002990| 2e 0a 0a 55 4e 61 58 63 | 65 73 73 20 64 65 70 65 |...UNaXc|ess depe|
|000029a0| 6e 64 73 20 6f 6e 20 62 | 65 69 6e 67 20 73 65 74 |nds on b|eing set|
|000029b0| 75 69 64 20 74 6f 20 69 | 74 73 20 6f 77 6e 65 72 |uid to i|ts owner|
|000029c0| 2c 20 6e 6f 74 20 6f 6e | 6c 79 20 66 6f 72 20 70 |, not on|ly for p|
|000029d0| 65 72 6d 69 73 73 69 6f | 6e 73 20 69 6e 0a 74 68 |ermissio|ns in.th|
|000029e0| 65 20 42 42 53 2c 20 62 | 75 74 20 61 6c 73 6f 20 |e BBS, b|ut also |
|000029f0| 74 6f 20 69 6e 73 75 72 | 65 20 74 68 61 74 20 74 |to insur|e that t|
|00002a00| 68 65 20 68 6f 6d 65 20 | 64 69 72 65 63 74 6f 72 |he home |director|
|00002a10| 79 20 28 63 6f 6e 74 61 | 69 6e 69 6e 67 20 74 68 |y (conta|ining th|
|00002a20| 65 20 6d 65 73 73 61 67 | 65 0a 64 61 74 61 62 61 |e messag|e.databa|
|00002a30| 73 65 20 61 6e 64 20 63 | 6f 6e 66 69 67 20 66 69 |se and c|onfig fi|
|00002a40| 6c 65 29 20 63 61 6e 20 | 62 65 20 6c 6f 63 61 74 |le) can |be locat|
|00002a50| 65 64 2e 0a 0a 55 4e 61 | 58 63 65 73 73 20 69 73 |ed...UNa|Xcess is|
|00002a60| 20 43 6f 70 79 72 69 67 | 68 74 20 28 43 29 20 31 | Copyrig|ht (C) 1|
|00002a70| 39 38 36 20 62 79 20 42 | 72 61 6e 64 6f 6e 20 53 |986 by B|randon S|
|00002a80| 2e 20 41 6c 6c 62 65 72 | 79 2e 20 20 50 65 72 6d |. Allber|y. Perm|
|00002a90| 69 73 73 69 6f 6e 20 69 | 73 20 68 65 72 65 62 79 |ission i|s hereby|
|00002aa0| 0a 67 72 61 6e 74 65 64 | 20 74 6f 20 63 6f 70 79 |.granted| to copy|
|00002ab0| 20 61 6e 64 20 66 72 65 | 65 6c 79 20 64 69 73 74 | and fre|ely dist|
|00002ac0| 72 69 62 75 74 65 20 74 | 68 69 73 20 63 6f 64 65 |ribute t|his code|
|00002ad0| 2c 20 56 65 72 73 69 6f | 6e 20 30 2e 34 2e 33 20 |, Versio|n 0.4.3 |
|00002ae0| 61 6e 64 20 64 65 72 69 | 76 61 74 69 76 65 73 0a |and deri|vatives.|
|00002af0| 4f 4e 4c 59 2e 20 20 56 | 65 72 73 69 6f 6e 73 20 |ONLY. V|ersions |
|00002b00| 31 2e 30 2e 30 20 61 6e | 64 20 6c 61 74 65 72 20 |1.0.0 an|d later |
|00002b10| 61 72 65 20 4e 4f 54 20 | 70 65 72 6d 69 74 74 65 |are NOT |permitte|
|00002b20| 64 20 74 6f 20 62 65 20 | 63 6f 70 69 65 64 20 6f |d to be |copied o|
|00002b30| 72 20 64 69 73 74 72 69 | 62 75 74 65 64 2e 0a 59 |r distri|buted..Y|
|00002b40| 6f 75 20 6d 61 79 20 63 | 68 61 72 67 65 20 6f 6e |ou may c|harge on|
|00002b50| 6c 79 20 61 20 72 65 61 | 73 6f 6e 61 62 6c 65 20 |ly a rea|sonable |
|00002b60| 68 61 6e 64 6c 69 6e 67 | 2f 63 6f 70 79 69 6e 67 |handling|/copying|
|00002b70| 20 66 65 65 20 66 6f 72 | 20 64 69 73 74 72 69 62 | fee for| distrib|
|00002b80| 75 74 69 6f 6e 20 6f 66 | 20 74 68 69 73 0a 63 6f |ution of| this.co|
|00002b90| 64 65 2c 20 79 6f 75 20 | 6d 61 79 20 4e 4f 54 20 |de, you |may NOT |
|00002ba0| 73 65 6c 6c 20 69 74 2e | 0a 0a 2d 2d 42 72 61 6e |sell it.|..--Bran|
|00002bb0| 64 6f 6e 20 41 6c 6c 62 | 65 72 79 0a 53 48 41 52 |don Allb|ery.SHAR|
|00002bc0| 5f 45 4f 46 0a 69 66 20 | 74 65 73 74 20 37 32 33 |_EOF.if |test 723|
|00002bd0| 33 20 2d 6e 65 20 22 60 | 77 63 20 2d 63 20 3c 20 |3 -ne "`|wc -c < |
|00002be0| 27 52 45 41 44 4d 45 27 | 60 22 0a 74 68 65 6e 0a |'README'|`".then.|
|00002bf0| 09 65 63 68 6f 20 73 68 | 61 72 3a 20 65 72 72 6f |.echo sh|ar: erro|
|00002c00| 72 20 74 72 61 6e 73 6d | 69 74 74 69 6e 67 20 22 |r transm|itting "|
|00002c10| 27 52 45 41 44 4d 45 27 | 22 20 27 28 73 68 6f 75 |'README'|" '(shou|
|00002c20| 6c 64 20 68 61 76 65 20 | 62 65 65 6e 20 37 32 33 |ld have |been 723|
|00002c30| 33 20 63 68 61 72 61 63 | 74 65 72 73 29 27 0a 66 |3 charac|ters)'.f|
|00002c40| 69 0a 66 69 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |i.fi.ech|o shar: |
|00002c50| 65 78 74 72 61 63 74 69 | 6e 67 20 22 27 4d 61 6b |extracti|ng "'Mak|
|00002c60| 65 66 69 6c 65 27 22 20 | 27 28 32 31 35 37 20 63 |efile'" |'(2157 c|
|00002c70| 68 61 72 61 63 74 65 72 | 73 29 27 0a 69 66 20 74 |haracter|s)'.if t|
|00002c80| 65 73 74 20 2d 66 20 27 | 4d 61 6b 65 66 69 6c 65 |est -f '|Makefile|
|00002c90| 27 0a 74 68 65 6e 0a 09 | 65 63 68 6f 20 73 68 61 |'.then..|echo sha|
|00002ca0| 72 3a 20 77 69 6c 6c 20 | 6e 6f 74 20 6f 76 65 72 |r: will |not over|
|00002cb0| 2d 77 72 69 74 65 20 65 | 78 69 73 74 69 6e 67 20 |-write e|xisting |
|00002cc0| 66 69 6c 65 20 22 27 4d | 61 6b 65 66 69 6c 65 27 |file "'M|akefile'|
|00002cd0| 22 0a 65 6c 73 65 0a 63 | 61 74 20 3c 3c 20 5c 53 |".else.c|at << \S|
|00002ce0| 48 41 52 5f 45 4f 46 20 | 3e 20 27 4d 61 6b 65 66 |HAR_EOF |> 'Makef|
|00002cf0| 69 6c 65 27 0a 23 0a 23 | 20 25 57 25 20 25 45 25 |ile'.#.#| %W% %E%|
|00002d00| 20 25 55 25 20 6e 63 6f | 61 73 74 21 62 73 61 20 | %U% nco|ast!bsa |
|00002d10| 25 5a 25 0a 23 20 25 5a | 25 20 43 6f 70 79 72 69 |%Z%.# %Z|% Copyri|
|00002d20| 67 68 74 20 28 43 29 20 | 31 39 38 36 20 62 79 20 |ght (C) |1986 by |
|00002d30| 42 72 61 6e 64 6f 6e 20 | 53 2e 20 41 6c 6c 62 65 |Brandon |S. Allbe|
|00002d40| 72 79 2c 20 41 6c 6c 20 | 52 69 67 68 74 73 20 52 |ry, All |Rights R|
|00002d50| 65 73 65 72 76 65 64 20 | 25 5a 25 0a 23 0a 0a 23 |eserved |%Z%.#..#|
|00002d60| 20 60 60 6d 61 6b 65 20 | 53 59 53 54 45 4d 3d 53 | ``make |SYSTEM=S|
|00002d70| 59 53 33 20 61 6c 6c 27 | 27 0a 23 20 60 60 6d 61 |YS3 all'|'.# ``ma|
|00002d80| 6b 65 20 53 59 53 54 45 | 4d 3d 42 53 44 20 61 6c |ke SYSTE|M=BSD al|
|00002d90| 6c 27 27 0a 23 20 60 60 | 6d 61 6b 65 20 53 59 53 |l''.# ``|make SYS|
|00002da0| 54 45 4d 3d 56 37 20 61 | 6c 6c 27 27 0a 0a 53 48 |TEM=V7 a|ll''..SH|
|00002db0| 45 4c 4c 20 3d 20 2f 62 | 69 6e 2f 73 68 0a 23 20 |ELL = /b|in/sh.# |
|00002dc0| 6d 61 6b 65 20 6f 6e 20 | 73 79 73 33 20 69 73 20 |make on |sys3 is |
|00002dd0| 6e 6f 74 20 76 65 72 79 | 20 6e 69 63 65 20 77 68 |not very| nice wh|
|00002de0| 65 6e 20 69 74 20 63 6f | 6d 65 73 20 74 6f 20 73 |en it co|mes to s|
|00002df0| 74 61 6e 64 61 72 64 20 | 73 68 65 6c 6c 20 69 6e |tandard |shell in|
|00002e00| 74 65 72 66 61 63 65 73 | 2e 2e 2e 0a 0a 23 20 2d |terfaces|.....# -|
|00002e10| 44 55 53 45 5f 50 52 49 | 4e 54 20 69 73 20 66 6f |DUSE_PRI|NT is fo|
|00002e20| 72 20 50 6c 65 78 75 73 | 20 73 79 73 20 33 20 2d |r Plexus| sys 3 -|
|00002e30| 20 74 68 65 20 64 65 66 | 61 75 6c 74 20 75 73 65 | the def|ault use|
|00002e40| 73 20 5f 64 6f 70 72 6e | 74 20 66 6f 72 20 66 6f |s _doprn|t for fo|
|00002e50| 72 6d 61 74 74 69 6e 67 | 2e 0a 23 43 46 4c 41 47 |rmatting|..#CFLAG|
|00002e60| 53 20 3d 20 2d 44 24 28 | 53 59 53 54 45 4d 29 20 |S = -D$(|SYSTEM) |
|00002e70| 2d 4f 20 2d 44 55 53 45 | 5f 50 52 49 4e 54 0a 43 |-O -DUSE|_PRINT.C|
|00002e80| 46 4c 41 47 53 20 3d 20 | 2d 44 24 28 53 59 53 54 |FLAGS = |-D$(SYST|
|00002e90| 45 4d 29 20 2d 4f 0a 0a | 61 6c 6c 3a 20 75 61 20 |EM) -O..|all: ua |
|00002ea0| 75 77 68 6f 20 75 64 61 | 74 65 20 6d 6b 63 6f 6e |uwho uda|te mkcon|
|00002eb0| 66 20 6d 76 6d 73 67 20 | 75 61 6e 65 77 73 0a 0a |f mvmsg |uanews..|
|00002ec0| 75 77 68 6f 3a 20 55 74 | 69 6c 69 74 69 65 73 2f |uwho: Ut|ilities/|
|00002ed0| 75 77 68 6f 0a 75 64 61 | 74 65 3a 20 55 74 69 6c |uwho.uda|te: Util|
|00002ee0| 69 74 69 65 73 2f 75 64 | 61 74 65 0a 6d 6b 63 6f |ities/ud|ate.mkco|
|00002ef0| 6e 66 3a 20 55 74 69 6c | 69 74 69 65 73 2f 6d 6b |nf: Util|ities/mk|
|00002f00| 63 6f 6e 66 0a 6d 76 6d | 73 67 3a 20 55 74 69 6c |conf.mvm|sg: Util|
|00002f10| 69 74 69 65 73 2f 6d 76 | 6d 73 67 0a 75 61 6e 65 |ities/mv|msg.uane|
|00002f20| 77 73 3a 20 55 74 69 6c | 69 74 69 65 73 2f 75 61 |ws: Util|ities/ua|
|00002f30| 6e 65 77 73 0a 0a 75 61 | 3a 20 75 61 2e 6f 20 6d |news..ua|: ua.o m|
|00002f40| 73 67 2e 6f 20 63 6f 6e | 66 2e 6f 20 64 61 74 65 |sg.o con|f.o date|
|00002f50| 2e 6f 20 62 75 6c 6c 2e | 6f 20 73 79 73 2e 6f 20 |.o bull.|o sys.o |
|00002f60| 75 73 65 72 2e 6f 20 64 | 69 72 2e 6f 20 70 61 72 |user.o d|ir.o par|
|00002f70| 61 6d 2e 6f 20 75 64 6c | 2e 6f 0a 09 63 63 20 2d |am.o udl|.o..cc -|
|00002f80| 6f 20 75 61 20 75 61 2e | 6f 20 6d 73 67 2e 6f 20 |o ua ua.|o msg.o |
|00002f90| 63 6f 6e 66 2e 6f 20 64 | 61 74 65 2e 6f 20 62 75 |conf.o d|ate.o bu|
|00002fa0| 6c 6c 2e 6f 20 73 79 73 | 2e 6f 20 75 73 65 72 2e |ll.o sys|.o user.|
|00002fb0| 6f 20 64 69 72 2e 6f 20 | 70 61 72 61 6d 2e 6f 20 |o dir.o |param.o |
|00002fc0| 75 64 6c 2e 6f 0a 0a 75 | 61 2e 6f 20 6d 73 67 2e |udl.o..u|a.o msg.|
|00002fd0| 6f 20 63 6f 6e 66 2e 6f | 20 64 61 74 65 2e 6f 20 |o conf.o| date.o |
|00002fe0| 62 75 6c 6c 2e 6f 20 73 | 79 73 2e 6f 20 75 73 65 |bull.o s|ys.o use|
|00002ff0| 72 2e 6f 20 64 69 72 2e | 6f 20 70 61 72 61 6d 2e |r.o dir.|o param.|
|00003000| 6f 20 75 64 6c 2e 6f 3a | 20 75 61 2e 68 20 75 73 |o udl.o:| ua.h us|
|00003010| 65 72 2e 68 20 64 69 72 | 2e 68 20 73 79 73 2e 68 |er.h dir|.h sys.h|
|00003020| 0a 0a 55 74 69 6c 69 74 | 69 65 73 2f 6d 6b 63 6f |..Utilit|ies/mkco|
|00003030| 6e 66 3a 20 55 74 69 6c | 69 74 69 65 73 2f 6d 6b |nf: Util|ities/mk|
|00003040| 63 6f 6e 66 2e 6f 0a 09 | 63 63 20 55 74 69 6c 69 |conf.o..|cc Utili|
|00003050| 74 69 65 73 2f 6d 6b 63 | 6f 6e 66 2e 6f 20 2d 6f |ties/mkc|onf.o -o|
|00003060| 20 55 74 69 6c 69 74 69 | 65 73 2f 6d 6b 63 6f 6e | Utiliti|es/mkcon|
|00003070| 66 0a 0a 55 74 69 6c 69 | 74 69 65 73 2f 75 64 61 |f..Utili|ties/uda|
|00003080| 74 65 3a 20 55 74 69 6c | 69 74 69 65 73 2f 75 64 |te: Util|ities/ud|
|00003090| 61 74 65 2e 6f 20 64 61 | 74 65 2e 6f 0a 09 63 63 |ate.o da|te.o..cc|
|000030a0| 20 55 74 69 6c 69 74 69 | 65 73 2f 75 64 61 74 65 | Utiliti|es/udate|
|000030b0| 2e 6f 20 64 61 74 65 2e | 6f 20 2d 6f 20 55 74 69 |.o date.|o -o Uti|
|000030c0| 6c 69 74 69 65 73 2f 75 | 64 61 74 65 0a 0a 55 74 |lities/u|date..Ut|
|000030d0| 69 6c 69 74 69 65 73 2f | 75 77 68 6f 3a 20 55 74 |ilities/|uwho: Ut|
|000030e0| 69 6c 69 74 69 65 73 2f | 75 77 68 6f 2e 6f 0a 09 |ilities/|uwho.o..|
|000030f0| 63 63 20 2d 6f 20 55 74 | 69 6c 69 74 69 65 73 2f |cc -o Ut|ilities/|
|00003100| 75 77 68 6f 20 55 74 69 | 6c 69 74 69 65 73 2f 75 |uwho Uti|lities/u|
|00003110| 77 68 6f 2e 6f 0a 0a 55 | 74 69 6c 69 74 69 65 73 |who.o..U|tilities|
|00003120| 2f 6d 76 6d 73 67 3a 20 | 55 74 69 6c 69 74 69 65 |/mvmsg: |Utilitie|
|00003130| 73 2f 6d 76 6d 73 67 2e | 6f 0a 09 63 63 20 2d 6f |s/mvmsg.|o..cc -o|
|00003140| 20 55 74 69 6c 69 74 69 | 65 73 2f 6d 76 6d 73 67 | Utiliti|es/mvmsg|
|00003150| 20 55 74 69 6c 69 74 69 | 65 73 2f 6d 76 6d 73 67 | Utiliti|es/mvmsg|
|00003160| 2e 6f 0a 0a 55 74 69 6c | 69 74 69 65 73 2f 75 61 |.o..Util|ities/ua|
|00003170| 6e 65 77 73 3a 20 55 74 | 69 6c 69 74 69 65 73 2f |news: Ut|ilities/|
|00003180| 75 61 6e 65 77 73 2e 6f | 0a 09 63 63 20 2d 6f 20 |uanews.o|..cc -o |
|00003190| 55 74 69 6c 69 74 69 65 | 73 2f 75 61 6e 65 77 73 |Utilitie|s/uanews|
|000031a0| 20 55 74 69 6c 69 74 69 | 65 73 2f 75 61 6e 65 77 | Utiliti|es/uanew|
|000031b0| 73 2e 6f 0a 0a 55 74 69 | 6c 69 74 69 65 73 2f 6d |s.o..Uti|lities/m|
|000031c0| 6b 63 6f 6e 66 2e 6f 3a | 20 55 74 69 6c 69 74 69 |kconf.o:| Utiliti|
|000031d0| 65 73 2f 6d 6b 63 6f 6e | 66 2e 63 0a 09 24 7b 43 |es/mkcon|f.c..${C|
|000031e0| 43 7d 20 24 7b 43 46 4c | 41 47 53 7d 20 2d 63 20 |C} ${CFL|AGS} -c |
|000031f0| 55 74 69 6c 69 74 69 65 | 73 2f 6d 6b 63 6f 6e 66 |Utilitie|s/mkconf|
|00003200| 2e 63 0a 09 6d 76 20 6d | 6b 63 6f 6e 66 2e 6f 20 |.c..mv m|kconf.o |
|00003210| 55 74 69 6c 69 74 69 65 | 73 2f 6d 6b 63 6f 6e 66 |Utilitie|s/mkconf|
|00003220| 2e 6f 0a 0a 55 74 69 6c | 69 74 69 65 73 2f 75 64 |.o..Util|ities/ud|
|00003230| 61 74 65 2e 6f 3a 20 55 | 74 69 6c 69 74 69 65 73 |ate.o: U|tilities|
|00003240| 2f 75 64 61 74 65 2e 63 | 0a 09 24 7b 43 43 7d 20 |/udate.c|..${CC} |
|00003250| 24 7b 43 46 4c 41 47 53 | 7d 20 2d 63 20 55 74 69 |${CFLAGS|} -c Uti|
|00003260| 6c 69 74 69 65 73 2f 75 | 64 61 74 65 2e 63 0a 09 |lities/u|date.c..|
|00003270| 6d 76 20 75 64 61 74 65 | 2e 6f 20 55 74 69 6c 69 |mv udate|.o Utili|
|00003280| 74 69 65 73 2f 75 64 61 | 74 65 2e 6f 0a 0a 55 74 |ties/uda|te.o..Ut|
|00003290| 69 6c 69 74 69 65 73 2f | 75 77 68 6f 2e 6f 3a 20 |ilities/|uwho.o: |
|000032a0| 55 74 69 6c 69 74 69 65 | 73 2f 75 77 68 6f 2e 63 |Utilitie|s/uwho.c|
|000032b0| 0a 09 24 7b 43 43 7d 20 | 24 7b 43 46 4c 41 47 53 |..${CC} |${CFLAGS|
|000032c0| 7d 20 2d 63 20 55 74 69 | 6c 69 74 69 65 73 2f 75 |} -c Uti|lities/u|
|000032d0| 77 68 6f 2e 63 0a 09 6d | 76 20 75 77 68 6f 2e 6f |who.c..m|v uwho.o|
|000032e0| 20 55 74 69 6c 69 74 69 | 65 73 2f 75 77 68 6f 2e | Utiliti|es/uwho.|
|000032f0| 6f 0a 0a 55 74 69 6c 69 | 74 69 65 73 2f 6d 76 6d |o..Utili|ties/mvm|
|00003300| 73 67 2e 6f 3a 20 55 74 | 69 6c 69 74 69 65 73 2f |sg.o: Ut|ilities/|
|00003310| 6d 76 6d 73 67 2e 63 0a | 09 24 7b 43 43 7d 20 24 |mvmsg.c.|.${CC} $|
|00003320| 7b 43 46 4c 41 47 53 7d | 20 2d 63 20 55 74 69 6c |{CFLAGS}| -c Util|
|00003330| 69 74 69 65 73 2f 6d 76 | 6d 73 67 2e 63 0a 09 6d |ities/mv|msg.c..m|
|00003340| 76 20 6d 76 6d 73 67 2e | 6f 20 55 74 69 6c 69 74 |v mvmsg.|o Utilit|
|00003350| 69 65 73 2f 6d 76 6d 73 | 67 2e 6f 0a 0a 55 74 69 |ies/mvms|g.o..Uti|
|00003360| 6c 69 74 69 65 73 2f 75 | 61 6e 65 77 73 2e 6f 3a |lities/u|anews.o:|
|00003370| 20 55 74 69 6c 69 74 69 | 65 73 2f 75 61 6e 65 77 | Utiliti|es/uanew|
|00003380| 73 2e 63 0a 09 24 7b 43 | 43 7d 20 24 7b 43 46 4c |s.c..${C|C} ${CFL|
|00003390| 41 47 53 7d 20 2d 63 20 | 55 74 69 6c 69 74 69 65 |AGS} -c |Utilitie|
|000033a0| 73 2f 75 61 6e 65 77 73 | 2e 63 0a 09 6d 76 20 75 |s/uanews|.c..mv u|
|000033b0| 61 6e 65 77 73 2e 6f 20 | 55 74 69 6c 69 74 69 65 |anews.o |Utilitie|
|000033c0| 73 2f 75 61 6e 65 77 73 | 2e 6f 0a 0a 63 6c 65 61 |s/uanews|.o..clea|
|000033d0| 6e 3a 0a 09 72 6d 20 2d | 66 20 75 61 20 55 74 69 |n:..rm -|f ua Uti|
|000033e0| 6c 69 74 69 65 73 2f 75 | 77 68 6f 20 55 74 69 6c |lities/u|who Util|
|000033f0| 69 74 69 65 73 2f 75 64 | 61 74 65 20 55 74 69 6c |ities/ud|ate Util|
|00003400| 69 74 69 65 73 2f 75 70 | 6f 73 74 20 5c 0a 09 09 |ities/up|ost \...|
|00003410| 55 74 69 6c 69 74 69 65 | 73 2f 6d 76 6d 73 67 20 |Utilitie|s/mvmsg |
|00003420| 55 74 69 6c 69 74 69 65 | 73 2f 75 61 6e 65 77 73 |Utilitie|s/uanews|
|00003430| 20 5c 0a 09 09 55 74 69 | 6c 69 74 69 65 73 2f 6d | \...Uti|lities/m|
|00003440| 6b 63 6f 6e 66 20 55 74 | 69 6c 69 74 69 65 73 2f |kconf Ut|ilities/|
|00003450| 75 6d 6f 74 64 20 2a 2e | 6f 20 55 74 69 6c 69 74 |umotd *.|o Utilit|
|00003460| 69 65 73 2f 2a 2e 6f 20 | 74 61 67 73 20 63 6f 72 |ies/*.o |tags cor|
|00003470| 65 20 5c 0a 09 09 73 68 | 61 72 3f 0a 0a 74 61 67 |e \...sh|ar?..tag|
|00003480| 73 3a 0a 09 63 74 61 67 | 73 20 2a 2e 5b 63 68 5d |s:..ctag|s *.[ch]|
|00003490| 20 55 74 69 6c 69 74 69 | 65 73 2f 2a 2e 63 0a 0a | Utiliti|es/*.c..|
|000034a0| 73 68 61 72 3a 0a 09 73 | 68 61 72 20 2d 64 76 20 |shar:..s|har -dv |
|000034b0| 75 61 2e 63 20 64 61 74 | 65 2e 63 20 62 75 6c 6c |ua.c dat|e.c bull|
|000034c0| 2e 63 20 73 79 73 2e 63 | 20 75 73 65 72 2e 63 20 |.c sys.c| user.c |
|000034d0| 70 61 72 61 6d 2e 63 20 | 64 69 72 2e 63 20 3e 20 |param.c |dir.c > |
|000034e0| 73 68 61 72 31 0a 09 73 | 68 61 72 20 2d 64 76 20 |shar1..s|har -dv |
|000034f0| 6d 73 67 2e 63 20 63 6f | 6e 66 2e 63 20 75 61 2e |msg.c co|nf.c ua.|
|00003500| 68 20 75 73 65 72 2e 68 | 20 64 69 72 2e 68 20 73 |h user.h| dir.h s|
|00003510| 79 73 2e 68 20 52 45 41 | 44 4d 45 20 3e 20 73 68 |ys.h REA|DME > sh|
|00003520| 61 72 32 0a 09 73 68 61 | 72 20 2d 64 76 20 75 64 |ar2..sha|r -dv ud|
|00003530| 6c 2e 63 20 4d 61 6b 65 | 66 69 6c 65 20 55 74 69 |l.c Make|file Uti|
|00003540| 6c 69 74 69 65 73 2f 2a | 2e 63 20 55 74 69 6c 69 |lities/*|.c Utili|
|00003550| 74 69 65 73 2f 2a 2e 73 | 68 20 3e 20 73 68 61 72 |ties/*.s|h > shar|
|00003560| 33 0a 53 48 41 52 5f 45 | 4f 46 0a 69 66 20 74 65 |3.SHAR_E|OF.if te|
|00003570| 73 74 20 32 31 35 37 20 | 2d 6e 65 20 22 60 77 63 |st 2157 |-ne "`wc|
|00003580| 20 2d 63 20 3c 20 27 4d | 61 6b 65 66 69 6c 65 27 | -c < 'M|akefile'|
|00003590| 60 22 0a 74 68 65 6e 0a | 09 65 63 68 6f 20 73 68 |`".then.|.echo sh|
|000035a0| 61 72 3a 20 65 72 72 6f | 72 20 74 72 61 6e 73 6d |ar: erro|r transm|
|000035b0| 69 74 74 69 6e 67 20 22 | 27 4d 61 6b 65 66 69 6c |itting "|'Makefil|
|000035c0| 65 27 22 20 27 28 73 68 | 6f 75 6c 64 20 68 61 76 |e'" '(sh|ould hav|
|000035d0| 65 20 62 65 65 6e 20 32 | 31 35 37 20 63 68 61 72 |e been 2|157 char|
|000035e0| 61 63 74 65 72 73 29 27 | 0a 66 69 0a 66 69 0a 69 |acters)'|.fi.fi.i|
|000035f0| 66 20 74 65 73 74 20 21 | 20 2d 64 20 27 55 74 69 |f test !| -d 'Uti|
|00003600| 6c 69 74 69 65 73 27 0a | 74 68 65 6e 0a 09 65 63 |lities'.|then..ec|
|00003610| 68 6f 20 73 68 61 72 3a | 20 63 72 65 61 74 69 6e |ho shar:| creatin|
|00003620| 67 20 64 69 72 65 63 74 | 6f 72 79 20 22 27 55 74 |g direct|ory "'Ut|
|00003630| 69 6c 69 74 69 65 73 27 | 22 0a 09 6d 6b 64 69 72 |ilities'|"..mkdir|
|00003640| 20 27 55 74 69 6c 69 74 | 69 65 73 27 0a 66 69 0a | 'Utilit|ies'.fi.|
|00003650| 65 63 68 6f 20 73 68 61 | 72 3a 20 65 78 74 72 61 |echo sha|r: extra|
|00003660| 63 74 69 6e 67 20 22 27 | 55 74 69 6c 69 74 69 65 |cting "'|Utilitie|
|00003670| 73 2f 6d 6b 63 6f 6e 66 | 2e 63 27 22 20 27 28 31 |s/mkconf|.c'" '(1|
|00003680| 32 34 33 20 63 68 61 72 | 61 63 74 65 72 73 29 27 |243 char|acters)'|
|00003690| 0a 69 66 20 74 65 73 74 | 20 2d 66 20 27 55 74 69 |.if test| -f 'Uti|
|000036a0| 6c 69 74 69 65 73 2f 6d | 6b 63 6f 6e 66 2e 63 27 |lities/m|kconf.c'|
|000036b0| 0a 74 68 65 6e 0a 09 65 | 63 68 6f 20 73 68 61 72 |.then..e|cho shar|
|000036c0| 3a 20 77 69 6c 6c 20 6e | 6f 74 20 6f 76 65 72 2d |: will n|ot over-|
|000036d0| 77 72 69 74 65 20 65 78 | 69 73 74 69 6e 67 20 66 |write ex|isting f|
|000036e0| 69 6c 65 20 22 27 55 74 | 69 6c 69 74 69 65 73 2f |ile "'Ut|ilities/|
|000036f0| 6d 6b 63 6f 6e 66 2e 63 | 27 22 0a 65 6c 73 65 0a |mkconf.c|'".else.|
|00003700| 63 61 74 20 3c 3c 20 5c | 53 48 41 52 5f 45 4f 46 |cat << \|SHAR_EOF|
|00003710| 20 3e 20 27 55 74 69 6c | 69 74 69 65 73 2f 6d 6b | > 'Util|ities/mk|
|00003720| 63 6f 6e 66 2e 63 27 0a | 2f 2a 0a 20 2a 20 25 57 |conf.c'.|/*. * %W|
|00003730| 25 20 25 45 25 20 25 55 | 25 20 6e 63 6f 61 73 74 |% %E% %U|% ncoast|
|00003740| 21 62 73 61 20 25 5a 25 | 0a 20 2a 20 25 5a 25 20 |!bsa %Z%|. * %Z% |
|00003750| 43 6f 70 79 72 69 67 68 | 74 20 28 43 29 20 31 39 |Copyrigh|t (C) 19|
|00003760| 38 36 20 62 79 20 42 72 | 61 6e 64 6f 6e 20 53 2e |86 by Br|andon S.|
|00003770| 20 41 6c 6c 62 65 72 79 | 2c 20 41 6c 6c 20 52 69 | Allbery|, All Ri|
|00003780| 67 68 74 73 20 52 65 73 | 65 72 76 65 64 20 25 5a |ghts Res|erved %Z|
|00003790| 25 0a 20 2a 2f 0a 0a 23 | 69 66 6e 64 65 66 20 6c |%. */..#|ifndef l|
|000037a0| 69 6e 74 0a 73 74 61 74 | 69 63 20 63 68 61 72 20 |int.stat|ic char |
|000037b0| 5f 53 63 63 73 49 64 5b | 5d 20 3d 20 22 25 57 25 |_SccsId[|] = "%W%|
|000037c0| 20 25 45 25 20 25 55 25 | 20 6e 63 6f 61 73 74 21 | %E% %U%| ncoast!|
|000037d0| 62 73 61 20 25 5a 25 22 | 3b 0a 73 74 61 74 69 63 |bsa %Z%"|;.static|
|000037e0| 20 63 68 61 72 20 5f 43 | 6f 70 79 52 74 5b 5d 20 | char _C|opyRt[] |
|000037f0| 3d 20 22 25 5a 25 20 43 | 6f 70 79 72 69 67 68 74 |= "%Z% C|opyright|
|00003800| 20 28 43 29 20 31 39 38 | 35 20 62 79 20 42 72 61 | (C) 198|5 by Bra|
|00003810| 6e 64 6f 6e 20 53 2e 20 | 41 6c 6c 62 65 72 79 20 |ndon S. |Allbery |
|00003820| 25 5a 25 22 3b 0a 23 65 | 6e 64 69 66 20 20 6c 69 |%Z%";.#e|ndif li|
|00003830| 6e 74 0a 0a 2f 2a 20 74 | 68 69 73 20 76 65 72 73 |nt../* t|his vers|
|00003840| 69 6f 6e 20 74 68 61 74 | 20 65 78 65 63 73 20 22 |ion that| execs "|
|00003850| 6d 6b 64 69 72 22 20 62 | 79 20 6a 70 6e 20 34 2f |mkdir" b|y jpn 4/|
|00003860| 31 32 2f 38 36 20 2a 2f | 0a 6d 61 69 6e 28 61 72 |12/86 */|.main(ar|
|00003870| 67 63 2c 20 61 72 67 76 | 29 0a 69 6e 74 20 61 72 |gc, argv|).int ar|
|00003880| 67 63 3b 0a 63 68 61 72 | 20 2a 2a 61 72 67 76 3b |gc;.char| **argv;|
|00003890| 0a 20 20 20 20 7b 0a 20 | 20 20 20 73 65 74 75 69 |. {. | setui|
|000038a0| 64 28 67 65 74 65 75 69 | 64 28 29 29 3b 0a 20 20 |d(geteui|d());. |
|000038b0| 20 20 75 6d 61 73 6b 28 | 30 32 32 29 3b 0a 20 20 | umask(|022);. |
|000038c0| 20 20 65 78 65 63 76 70 | 28 22 6d 6b 64 69 72 22 | execvp|("mkdir"|
|000038d0| 2c 20 61 72 67 76 29 3b | 0a 20 20 20 20 7d 0a 0a |, argv);|. }..|
|000038e0| 23 69 66 20 30 0a 2f 2a | 20 49 20 63 6f 6e 73 69 |#if 0./*| I consi|
|000038f0| 64 65 72 65 64 20 74 68 | 65 20 6f 72 69 67 69 6e |dered th|e origin|
|00003900| 61 6c 20 73 75 70 70 6c | 69 65 64 20 76 65 72 73 |al suppl|ied vers|
|00003910| 69 6f 6e 20 74 6f 20 62 | 65 20 74 6f 6f 20 64 61 |ion to b|e too da|
|00003920| 6e 67 65 72 6f 75 73 20 | 61 6e 64 0a 2a 2a 20 61 |ngerous |and.** a|
|00003930| 63 74 75 61 6c 6c 79 20 | 71 75 69 74 65 20 75 6e |ctually |quite un|
|00003940| 6e 65 63 65 73 73 61 72 | 79 2e 20 20 54 68 69 73 |necessar|y. This|
|00003950| 20 70 72 6f 67 72 61 6d | 20 6a 75 73 74 20 64 6f | program| just do|
|00003960| 65 73 20 61 20 22 6d 6b | 64 69 72 22 2c 20 73 6f |es a "mk|dir", so|
|00003970| 0a 2a 2a 20 74 68 65 20 | 6d 79 20 76 65 72 73 69 |.** the |my versi|
|00003980| 6f 6e 20 6a 75 73 74 20 | 65 78 65 63 27 73 20 22 |on just |exec's "|
|00003990| 6d 6b 64 69 72 22 21 0a | 2a 2a 0a 2a 2a 20 49 20 |mkdir"!.|**.** I |
|000039a0| 48 41 54 45 20 68 61 76 | 69 6e 67 20 73 65 74 75 |HATE hav|ing setu|
|000039b0| 69 64 20 74 6f 20 72 6f | 6f 74 20 70 72 6f 67 72 |id to ro|ot progr|
|000039c0| 61 6d 73 20 6f 6e 20 6d | 79 20 73 79 73 74 65 6d |ams on m|y system|
|000039d0| 20 74 68 61 74 20 77 65 | 72 65 20 6e 6f 74 20 73 | that we|re not s|
|000039e0| 75 70 70 6c 69 65 64 0a | 2a 2a 20 61 73 20 70 61 |upplied.|** as pa|
|000039f0| 72 74 20 6f 66 20 74 68 | 65 20 73 79 73 74 65 6d |rt of th|e system|
|00003a00| 21 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |! | |
|00003a10| 20 20 2d 20 6a 70 6e 20 | 34 2f 31 32 2f 38 36 0a | - jpn |4/12/86.|
|00003a20| 2a 2f 0a 23 69 6e 63 6c | 75 64 65 20 3c 73 79 73 |*/.#incl|ude <sys|
|00003a30| 2f 74 79 70 65 73 2e 68 | 3e 0a 23 69 6e 63 6c 75 |/types.h|>.#inclu|
|00003a40| 64 65 20 3c 73 79 73 2f | 73 74 61 74 2e 68 3e 0a |de <sys/|stat.h>.|
|00003a50| 23 69 6e 63 6c 75 64 65 | 20 3c 73 79 73 2f 64 69 |#include| <sys/di|
|00003a60| 72 2e 68 3e 0a 0a 63 68 | 61 72 20 6c 69 6e 65 5b |r.h>..ch|ar line[|
|00003a70| 32 35 36 5d 3b 0a 0a 23 | 69 66 64 65 66 20 53 59 |256];..#|ifdef SY|
|00003a80| 53 33 0a 23 64 65 66 69 | 6e 65 20 52 49 6e 64 65 |S3.#defi|ne RInde|
|00003a90| 78 09 09 73 74 72 72 63 | 68 72 0a 23 65 6c 73 65 |x..strrc|hr.#else|
|00003aa0| 0a 23 64 65 66 69 6e 65 | 20 52 49 6e 64 65 78 09 |.#define| RIndex.|
|00003ab0| 09 72 69 6e 64 65 78 0a | 23 65 6e 64 69 66 20 53 |.rindex.|#endif S|
|00003ac0| 59 53 33 0a 0a 63 68 61 | 72 20 2a 52 49 6e 64 65 |YS3..cha|r *RInde|
|00003ad0| 78 28 29 3b 0a 0a 6d 61 | 69 6e 28 61 72 67 63 2c |x();..ma|in(argc,|
|00003ae0| 20 61 72 67 76 29 0a 20 | 20 20 20 63 68 61 72 20 | argv). | char |
|00003af0| 2a 2a 61 72 67 76 3b 0a | 20 20 20 20 7b 0a 20 20 |**argv;.| {. |
|00003b00| 20 20 69 66 20 28 61 72 | 67 63 20 21 3d 20 33 29 | if (ar|gc != 3)|
|00003b10| 0a 09 65 78 69 74 28 31 | 29 3b 0a 20 20 20 20 6d |..exit(1|);. m|
|00003b20| 6b 6e 6f 64 28 61 72 67 | 76 5b 31 5d 2c 20 53 5f |knod(arg|v[1], S_|
|00003b30| 49 46 44 49 52 7c 30 37 | 35 35 2c 20 30 29 3b 0a |IFDIR|07|55, 0);.|
|00003b40| 20 20 20 20 63 68 6f 77 | 6e 28 61 72 67 76 5b 31 | chow|n(argv[1|
|00003b50| 5d 2c 20 61 74 6f 69 28 | 61 72 67 76 5b 32 5d 29 |], atoi(|argv[2])|
|00003b60| 2c 20 35 30 29 3b 0a 20 | 20 20 20 73 70 72 69 6e |, 50);. | sprin|
|00003b70| 74 66 28 6c 69 6e 65 2c | 20 22 25 73 2f 2e 22 2c |tf(line,| "%s/.",|
|00003b80| 20 61 72 67 76 5b 31 5d | 29 3b 0a 20 20 20 20 6c | argv[1]|);. l|
|00003b90| 69 6e 6b 28 61 72 67 76 | 5b 31 5d 2c 20 6c 69 6e |ink(argv|[1], lin|
|00003ba0| 65 29 3b 0a 20 20 20 20 | 2a 52 49 6e 64 65 78 28 |e);. |*RIndex(|
|00003bb0| 61 72 67 76 5b 31 5d 2c | 20 27 2f 27 29 20 3d 20 |argv[1],| '/') = |
|00003bc0| 27 5c 30 27 3b 0a 20 20 | 20 20 73 74 72 63 61 74 |'\0';. | strcat|
|00003bd0| 28 6c 69 6e 65 2c 20 22 | 2e 22 29 3b 0a 20 20 20 |(line, "|.");. |
|00003be0| 20 6c 69 6e 6b 28 61 72 | 67 76 5b 31 5d 2c 20 6c | link(ar|gv[1], l|
|00003bf0| 69 6e 65 29 3b 0a 20 20 | 20 20 7d 0a 23 65 6e 64 |ine);. | }.#end|
|00003c00| 69 66 0a 53 48 41 52 5f | 45 4f 46 0a 69 66 20 74 |if.SHAR_|EOF.if t|
|00003c10| 65 73 74 20 31 32 34 33 | 20 2d 6e 65 20 22 60 77 |est 1243| -ne "`w|
|00003c20| 63 20 2d 63 20 3c 20 27 | 55 74 69 6c 69 74 69 65 |c -c < '|Utilitie|
|00003c30| 73 2f 6d 6b 63 6f 6e 66 | 2e 63 27 60 22 0a 74 68 |s/mkconf|.c'`".th|
|00003c40| 65 6e 0a 09 65 63 68 6f | 20 73 68 61 72 3a 20 65 |en..echo| shar: e|
|00003c50| 72 72 6f 72 20 74 72 61 | 6e 73 6d 69 74 74 69 6e |rror tra|nsmittin|
|00003c60| 67 20 22 27 55 74 69 6c | 69 74 69 65 73 2f 6d 6b |g "'Util|ities/mk|
|00003c70| 63 6f 6e 66 2e 63 27 22 | 20 27 28 73 68 6f 75 6c |conf.c'"| '(shoul|
|00003c80| 64 20 68 61 76 65 20 62 | 65 65 6e 20 31 32 34 33 |d have b|een 1243|
|00003c90| 20 63 68 61 72 61 63 74 | 65 72 73 29 27 0a 66 69 | charact|ers)'.fi|
|00003ca0| 0a 66 69 0a 65 63 68 6f | 20 73 68 61 72 3a 20 65 |.fi.echo| shar: e|
|00003cb0| 78 74 72 61 63 74 69 6e | 67 20 22 27 55 74 69 6c |xtractin|g "'Util|
|00003cc0| 69 74 69 65 73 2f 6d 76 | 6d 73 67 2e 63 27 22 20 |ities/mv|msg.c'" |
|00003cd0| 27 28 34 31 30 38 20 63 | 68 61 72 61 63 74 65 72 |'(4108 c|haracter|
|00003ce0| 73 29 27 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |s)'.if t|est -f '|
|00003cf0| 55 74 69 6c 69 74 69 65 | 73 2f 6d 76 6d 73 67 2e |Utilitie|s/mvmsg.|
|00003d00| 63 27 0a 74 68 65 6e 0a | 09 65 63 68 6f 20 73 68 |c'.then.|.echo sh|
|00003d10| 61 72 3a 20 77 69 6c 6c | 20 6e 6f 74 20 6f 76 65 |ar: will| not ove|
|00003d20| 72 2d 77 72 69 74 65 20 | 65 78 69 73 74 69 6e 67 |r-write |existing|
|00003d30| 20 66 69 6c 65 20 22 27 | 55 74 69 6c 69 74 69 65 | file "'|Utilitie|
|00003d40| 73 2f 6d 76 6d 73 67 2e | 63 27 22 0a 65 6c 73 65 |s/mvmsg.|c'".else|
|00003d50| 0a 63 61 74 20 3c 3c 20 | 5c 53 48 41 52 5f 45 4f |.cat << |\SHAR_EO|
|00003d60| 46 20 3e 20 27 55 74 69 | 6c 69 74 69 65 73 2f 6d |F > 'Uti|lities/m|
|00003d70| 76 6d 73 67 2e 63 27 0a | 2f 2a 0a 20 2a 20 25 57 |vmsg.c'.|/*. * %W|
|00003d80| 25 20 25 45 25 20 25 55 | 25 20 6e 63 6f 61 73 74 |% %E% %U|% ncoast|
|00003d90| 21 62 73 61 20 25 5a 25 | 0a 20 2a 20 25 5a 25 20 |!bsa %Z%|. * %Z% |
|00003da0| 43 6f 70 79 72 69 67 68 | 74 20 28 43 29 20 31 39 |Copyrigh|t (C) 19|
|00003db0| 38 35 20 62 79 20 42 72 | 61 6e 64 6f 6e 20 53 2e |85 by Br|andon S.|
|00003dc0| 20 41 6c 6c 62 65 72 79 | 2c 20 41 6c 6c 20 52 69 | Allbery|, All Ri|
|00003dd0| 67 68 74 73 20 52 65 73 | 65 72 76 65 64 20 25 5a |ghts Res|erved %Z|
|00003de0| 25 0a 20 2a 2f 0a 0a 23 | 69 66 6e 64 65 66 20 6c |%. */..#|ifndef l|
|00003df0| 69 6e 74 0a 73 74 61 74 | 69 63 20 63 68 61 72 20 |int.stat|ic char |
|00003e00| 5f 53 63 63 73 49 64 5b | 5d 20 3d 20 22 25 57 25 |_SccsId[|] = "%W%|
|00003e10| 20 25 45 25 20 25 55 25 | 20 6e 63 6f 61 73 74 21 | %E% %U%| ncoast!|
|00003e20| 62 73 61 20 25 5a 25 22 | 3b 0a 73 74 61 74 69 63 |bsa %Z%"|;.static|
|00003e30| 20 63 68 61 72 20 5f 43 | 6f 70 79 52 74 5b 5d 20 | char _C|opyRt[] |
|00003e40| 3d 20 22 25 5a 25 20 43 | 6f 70 79 72 69 67 68 74 |= "%Z% C|opyright|
|00003e50| 20 28 43 29 20 31 39 38 | 35 20 62 79 20 42 72 61 | (C) 198|5 by Bra|
|00003e60| 6e 64 6f 6e 20 53 2e 20 | 41 6c 6c 62 65 72 79 20 |ndon S. |Allbery |
|00003e70| 25 5a 25 22 3b 0a 23 65 | 6e 64 69 66 20 20 6c 69 |%Z%";.#e|ndif li|
|00003e80| 6e 74 0a 0a 23 69 6e 63 | 6c 75 64 65 20 3c 73 74 |nt..#inc|lude <st|
|00003e90| 64 69 6f 2e 68 3e 0a 23 | 69 6e 63 6c 75 64 65 20 |dio.h>.#|include |
|00003ea0| 3c 70 77 64 2e 68 3e 0a | 23 69 6e 63 6c 75 64 65 |<pwd.h>.|#include|
|00003eb0| 20 3c 73 79 73 2f 74 79 | 70 65 73 2e 68 3e 0a 23 | <sys/ty|pes.h>.#|
|00003ec0| 69 6e 63 6c 75 64 65 20 | 3c 73 79 73 2f 73 74 61 |include |<sys/sta|
|00003ed0| 74 2e 68 3e 0a 0a 23 69 | 66 64 65 66 20 53 59 53 |t.h>..#i|fdef SYS|
|00003ee0| 33 0a 23 64 65 66 69 6e | 65 20 49 6e 64 65 78 09 |3.#defin|e Index.|
|00003ef0| 09 73 74 72 63 68 72 0a | 23 64 65 66 69 6e 65 20 |.strchr.|#define |
|00003f00| 52 49 6e 64 65 78 09 09 | 73 74 72 72 63 68 72 0a |RIndex..|strrchr.|
|00003f10| 23 65 6c 73 65 20 20 53 | 59 53 33 0a 23 64 65 66 |#else S|YS3.#def|
|00003f20| 69 6e 65 20 49 6e 64 65 | 78 09 09 69 6e 64 65 78 |ine Inde|x..index|
|00003f30| 0a 23 64 65 66 69 6e 65 | 20 52 49 6e 64 65 78 09 |.#define| RIndex.|
|00003f40| 09 72 69 6e 64 65 78 0a | 23 65 6e 64 69 66 0a 0a |.rindex.|#endif..|
|00003f50| 65 78 74 65 72 6e 20 6c | 6f 6e 67 20 61 74 6f 6c |extern l|ong atol|
|00003f60| 28 29 3b 0a 65 78 74 65 | 72 6e 20 63 68 61 72 20 |();.exte|rn char |
|00003f70| 2a 49 6e 64 65 78 28 29 | 3b 0a 65 78 74 65 72 6e |*Index()|;.extern|
|00003f80| 20 73 74 72 75 63 74 20 | 70 61 73 73 77 64 20 2a | struct |passwd *|
|00003f90| 67 65 74 70 77 75 69 64 | 28 29 3b 0a 0a 6d 61 69 |getpwuid|();..mai|
|00003fa0| 6e 28 61 72 67 63 2c 20 | 61 72 67 76 29 0a 63 68 |n(argc, |argv).ch|
|00003fb0| 61 72 20 2a 2a 61 72 67 | 76 3b 20 7b 0a 09 63 68 |ar **arg|v; {..ch|
|00003fc0| 61 72 20 6d 73 67 64 69 | 72 5b 32 35 36 5d 2c 20 |ar msgdi|r[256], |
|00003fd0| 63 6f 6e 66 5b 33 33 5d | 3b 0a 09 6c 6f 6e 67 20 |conf[33]|;..long |
|00003fe0| 6d 73 67 3b 0a 09 63 68 | 61 72 20 2a 63 70 2c 20 |msg;..ch|ar *cp, |
|00003ff0| 2a 64 70 3b 0a 09 69 6e | 74 20 73 74 61 74 75 73 |*dp;..in|t status|
|00004000| 3b 0a 0a 09 69 66 20 28 | 61 72 67 63 20 21 3d 20 |;...if (|argc != |
|00004010| 33 29 20 7b 0a 09 09 66 | 70 72 69 6e 74 66 28 73 |3) {...f|printf(s|
|00004020| 74 64 65 72 72 2c 20 22 | 55 73 61 67 65 3a 20 6d |tderr, "|Usage: m|
|00004030| 76 6d 73 67 20 63 6f 6e | 66 5b 2f 6e 5d 20 63 6f |vmsg con|f[/n] co|
|00004040| 6e 66 5c 6e 22 29 3b 0a | 09 09 65 78 69 74 28 31 |nf\n");.|..exit(1|
|00004050| 29 3b 0a 09 7d 0a 09 73 | 74 72 63 70 79 28 6d 73 |);..}..s|trcpy(ms|
|00004060| 67 64 69 72 2c 20 67 65 | 74 70 77 75 69 64 28 67 |gdir, ge|tpwuid(g|
|00004070| 65 74 65 75 69 64 28 29 | 29 2d 3e 70 77 5f 64 69 |eteuid()|)->pw_di|
|00004080| 72 29 3b 0a 09 73 74 72 | 63 61 74 28 6d 73 67 64 |r);..str|cat(msgd|
|00004090| 69 72 2c 20 22 2f 6d 73 | 67 64 69 72 22 29 3b 0a |ir, "/ms|gdir");.|
|000040a0| 09 66 6f 72 20 28 63 70 | 20 3d 20 61 72 67 76 5b |.for (cp| = argv[|
|000040b0| 31 5d 2c 20 64 70 20 3d | 20 63 6f 6e 66 3b 20 2a |1], dp =| conf; *|
|000040c0| 63 70 20 21 3d 20 27 2f | 27 20 26 26 20 2a 63 70 |cp != '/|' && *cp|
|000040d0| 20 21 3d 20 27 5c 30 27 | 3b 20 63 70 2b 2b 2c 20 | != '\0'|; cp++, |
|000040e0| 64 70 2b 2b 29 0a 09 09 | 2a 64 70 20 3d 20 2a 63 |dp++)...|*dp = *c|
|000040f0| 70 3b 0a 09 2a 64 70 20 | 3d 20 27 5c 30 27 3b 0a |p;..*dp |= '\0';.|
|00004100| 09 69 66 20 28 2a 63 70 | 20 3d 3d 20 27 5c 30 27 |.if (*cp| == '\0'|
|00004110| 29 20 7b 0a 09 09 46 49 | 4c 45 20 2a 66 70 3b 0a |) {...FI|LE *fp;.|
|00004120| 09 09 63 68 61 72 20 74 | 6d 70 5b 35 31 32 5d 3b |..char t|mp[512];|
|00004130| 0a 09 09 6c 6f 6e 67 20 | 6c 69 6d 69 74 2c 20 63 |...long |limit, c|
|00004140| 6e 74 3b 0a 09 09 0a 09 | 09 73 70 72 69 6e 74 66 |nt;.....|.sprintf|
|00004150| 28 74 6d 70 2c 20 22 25 | 73 2f 25 73 2f 68 69 6d |(tmp, "%|s/%s/him|
|00004160| 73 67 22 2c 20 6d 73 67 | 64 69 72 2c 20 63 6f 6e |sg", msg|dir, con|
|00004170| 66 29 3b 0a 09 09 69 66 | 20 28 28 66 70 20 3d 20 |f);...if| ((fp = |
|00004180| 66 6f 70 65 6e 28 74 6d | 70 2c 20 22 72 22 29 29 |fopen(tm|p, "r"))|
|00004190| 20 3d 3d 20 28 46 49 4c | 45 20 2a 29 20 30 29 20 | == (FIL|E *) 0) |
|000041a0| 7b 0a 09 09 09 66 70 72 | 69 6e 74 66 28 73 74 64 |{....fpr|intf(std|
|000041b0| 65 72 72 2c 20 22 43 6f | 6e 66 65 72 65 6e 63 65 |err, "Co|nference|
|000041c0| 20 25 73 3a 20 6d 69 73 | 73 69 6e 67 20 68 69 6d | %s: mis|sing him|
|000041d0| 73 67 2e 2e 2e 5c 6e 22 | 2c 20 63 6f 6e 66 29 3b |sg...\n"|, conf);|
|000041e0| 0a 09 09 09 65 78 69 74 | 28 37 29 3b 0a 09 09 7d |....exit|(7);...}|
|000041f0| 0a 09 09 66 67 65 74 73 | 28 74 6d 70 2c 20 73 69 |...fgets|(tmp, si|
|00004200| 7a 65 6f 66 20 74 6d 70 | 2c 20 66 70 29 3b 0a 09 |zeof tmp|, fp);..|
|00004210| 09 66 63 6c 6f 73 65 28 | 66 70 29 3b 0a 09 09 69 |.fclose(|fp);...i|
|00004220| 66 20 28 28 6c 69 6d 69 | 74 20 3d 20 61 74 6f 6c |f ((limi|t = atol|
|00004230| 28 74 6d 70 29 29 20 3c | 3d 20 30 29 20 7b 0a 09 |(tmp)) <|= 0) {..|
|00004240| 09 09 66 70 72 69 6e 74 | 66 28 73 74 64 65 72 72 |..fprint|f(stderr|
|00004250| 2c 20 22 43 6f 6e 66 65 | 72 65 6e 63 65 20 25 73 |, "Confe|rence %s|
|00004260| 3a 20 69 6e 76 61 6c 69 | 64 20 68 69 6d 73 67 2e |: invali|d himsg.|
|00004270| 2e 2e 5c 6e 22 2c 20 63 | 6f 6e 66 29 3b 0a 09 09 |..\n", c|onf);...|
|00004280| 09 65 78 69 74 28 38 29 | 3b 0a 09 09 7d 0a 09 09 |.exit(8)|;...}...|
|00004290| 66 6f 72 20 28 63 6e 74 | 20 3d 20 30 2c 20 6d 73 |for (cnt| = 0, ms|
|000042a0| 67 20 3d 20 31 3b 20 6d | 73 67 20 3c 3d 20 6c 69 |g = 1; m|sg <= li|
|000042b0| 6d 69 74 3b 20 6d 73 67 | 2b 2b 29 0a 09 09 09 69 |mit; msg|++)....i|
|000042c0| 66 20 28 28 73 74 61 74 | 75 73 20 3d 20 6d 76 6d |f ((stat|us = mvm|
|000042d0| 73 67 28 6d 73 67 64 69 | 72 2c 20 63 6f 6e 66 2c |sg(msgdi|r, conf,|
|000042e0| 20 6d 73 67 2c 20 61 72 | 67 76 5b 32 5d 29 29 20 | msg, ar|gv[2])) |
|000042f0| 3e 20 30 29 0a 09 09 09 | 09 65 78 69 74 28 73 74 |> 0)....|.exit(st|
|00004300| 61 74 75 73 29 3b 0a 09 | 09 09 65 6c 73 65 20 69 |atus);..|..else i|
|00004310| 66 20 28 73 74 61 74 75 | 73 20 3d 3d 20 30 29 0a |f (statu|s == 0).|
|00004320| 09 09 09 09 63 6e 74 2b | 2b 3b 0a 09 09 70 72 69 |....cnt+|+;...pri|
|00004330| 6e 74 66 28 22 25 6c 64 | 20 6d 65 73 73 61 67 65 |ntf("%ld| message|
|00004340| 73 20 6d 6f 76 65 64 20 | 66 72 6f 6d 20 25 73 20 |s moved |from %s |
|00004350| 74 6f 20 25 73 2e 5c 6e | 22 2c 20 63 6e 74 2c 20 |to %s.\n|", cnt, |
|00004360| 63 6f 6e 66 2c 20 61 72 | 67 76 5b 32 5d 29 3b 0a |conf, ar|gv[2]);.|
|00004370| 09 09 73 70 72 69 6e 74 | 66 28 74 6d 70 2c 20 22 |..sprint|f(tmp, "|
|00004380| 25 73 2f 25 73 2f 68 69 | 6d 73 67 22 2c 20 6d 73 |%s/%s/hi|msg", ms|
|00004390| 67 64 69 72 2c 20 63 6f | 6e 66 29 3b 0a 09 09 69 |gdir, co|nf);...i|
|000043a0| 66 20 28 75 6e 6c 69 6e | 6b 28 74 6d 70 29 20 21 |f (unlin|k(tmp) !|
|000043b0| 3d 20 30 29 0a 09 09 09 | 65 78 69 74 28 31 32 29 |= 0)....|exit(12)|
|000043c0| 3b 0a 09 09 73 70 72 69 | 6e 74 66 28 74 6d 70 2c |;...spri|ntf(tmp,|
|000043d0| 20 22 25 73 2f 25 73 22 | 2c 20 6d 73 67 64 69 72 | "%s/%s"|, msgdir|
|000043e0| 2c 20 63 6f 6e 66 29 3b | 0a 09 09 69 66 20 28 72 |, conf);|...if (r|
|000043f0| 6d 64 69 72 28 74 6d 70 | 29 20 21 3d 20 30 29 0a |mdir(tmp|) != 0).|
|00004400| 09 09 09 65 78 69 74 28 | 31 33 29 3b 0a 09 09 65 |...exit(|13);...e|
|00004410| 78 69 74 28 63 6e 74 20 | 3d 3d 20 30 3f 20 39 3a |xit(cnt |== 0? 9:|
|00004420| 20 30 29 3b 0a 09 7d 0a | 09 6d 73 67 20 3d 20 61 | 0);..}.|.msg = a|
|00004430| 74 6f 6c 28 2b 2b 63 70 | 29 3b 0a 09 69 66 20 28 |tol(++cp|);..if (|
|00004440| 49 6e 64 65 78 28 61 72 | 67 76 5b 32 5d 2c 20 27 |Index(ar|gv[2], '|
|00004450| 2f 27 29 20 21 3d 20 28 | 63 68 61 72 20 2a 29 20 |/') != (|char *) |
|00004460| 30 29 20 7b 0a 09 09 66 | 70 72 69 6e 74 66 28 73 |0) {...f|printf(s|
|00004470| 74 64 65 72 72 2c 20 22 | 55 73 61 67 65 3a 20 6d |tderr, "|Usage: m|
|00004480| 76 6d 73 67 20 63 6f 6e | 66 5b 2f 6e 5d 20 63 6f |vmsg con|f[/n] co|
|00004490| 6e 66 5c 6e 22 29 3b 0a | 09 09 65 78 69 74 28 31 |nf\n");.|..exit(1|
|000044a0| 29 3b 0a 09 7d 0a 09 69 | 66 20 28 28 73 74 61 74 |);..}..i|f ((stat|
|000044b0| 75 73 20 3d 20 6d 76 6d | 73 67 28 6d 73 67 64 69 |us = mvm|sg(msgdi|
|000044c0| 72 2c 20 63 6f 6e 66 2c | 20 6d 73 67 2c 20 61 72 |r, conf,| msg, ar|
|000044d0| 67 76 5b 32 5d 29 29 20 | 3d 3d 20 2d 31 29 0a 09 |gv[2])) |== -1)..|
|000044e0| 09 66 70 72 69 6e 74 66 | 28 73 74 64 65 72 72 2c |.fprintf|(stderr,|
|000044f0| 20 22 43 6f 75 6c 64 6e | 27 74 20 72 65 61 64 20 | "Couldn|'t read |
|00004500| 25 73 2f 25 6c 64 5c 6e | 22 2c 20 63 6f 6e 66 2c |%s/%ld\n|", conf,|
|00004510| 20 6d 73 67 29 3b 0a 09 | 65 78 69 74 28 73 74 61 | msg);..|exit(sta|
|00004520| 74 75 73 29 3b 0a 7d 0a | 0a 6d 76 6d 73 67 28 62 |tus);.}.|.mvmsg(b|
|00004530| 61 73 65 2c 20 63 6f 6e | 66 2c 20 6d 73 67 2c 20 |ase, con|f, msg, |
|00004540| 64 65 73 74 29 0a 63 68 | 61 72 20 2a 62 61 73 65 |dest).ch|ar *base|
|00004550| 2c 20 2a 63 6f 6e 66 2c | 20 2a 64 65 73 74 3b 0a |, *conf,| *dest;.|
|00004560| 6c 6f 6e 67 20 6d 73 67 | 3b 20 7b 0a 09 63 68 61 |long msg|; {..cha|
|00004570| 72 20 70 61 74 68 5b 35 | 31 32 5d 2c 20 74 65 6d |r path[5|12], tem|
|00004580| 70 5b 35 31 32 5d 3b 0a | 09 6c 6f 6e 67 20 6e 65 |p[512];.|.long ne|
|00004590| 77 6d 73 67 3b 0a 09 46 | 49 4c 45 20 2a 69 66 70 |wmsg;..F|ILE *ifp|
|000045a0| 2c 20 2a 6f 66 70 3b 0a | 09 73 74 72 75 63 74 20 |, *ofp;.|.struct |
|000045b0| 73 74 61 74 20 73 62 75 | 66 3b 0a 09 0a 09 73 70 |stat sbu|f;....sp|
|000045c0| 72 69 6e 74 66 28 70 61 | 74 68 2c 20 22 25 73 2f |rintf(pa|th, "%s/|
|000045d0| 25 73 2f 25 6c 64 22 2c | 20 62 61 73 65 2c 20 63 |%s/%ld",| base, c|
|000045e0| 6f 6e 66 2c 20 6d 73 67 | 29 3b 0a 09 69 66 20 28 |onf, msg|);..if (|
|000045f0| 73 74 61 74 28 70 61 74 | 68 2c 20 26 73 62 75 66 |stat(pat|h, &sbuf|
|00004600| 29 20 3c 20 30 29 0a 09 | 09 72 65 74 75 72 6e 20 |) < 0)..|.return |
|00004610| 2d 31 3b 09 2f 2a 20 6c | 69 6b 65 6c 79 20 74 6f |-1;./* l|ikely to|
|00004620| 20 62 65 20 63 6f 6d 6d | 6f 6e 2e 2e 2e 20 2a 2f | be comm|on... */|
|00004630| 0a 09 73 70 72 69 6e 74 | 66 28 70 61 74 68 2c 20 |..sprint|f(path, |
|00004640| 22 25 73 2f 25 73 2f 68 | 69 6d 73 67 22 2c 20 62 |"%s/%s/h|imsg", b|
|00004650| 61 73 65 2c 20 64 65 73 | 74 29 3b 0a 09 69 66 20 |ase, des|t);..if |
|00004660| 28 28 69 66 70 20 3d 20 | 66 6f 70 65 6e 28 70 61 |((ifp = |fopen(pa|
|00004670| 74 68 2c 20 22 72 22 29 | 29 20 3d 3d 20 28 46 49 |th, "r")|) == (FI|
|00004680| 4c 45 20 2a 29 20 30 29 | 20 7b 0a 09 09 66 70 72 |LE *) 0)| {...fpr|
|00004690| 69 6e 74 66 28 73 74 64 | 65 72 72 2c 20 22 43 6f |intf(std|err, "Co|
|000046a0| 6e 66 65 72 65 6e 63 65 | 20 25 73 3a 20 6d 69 73 |nference| %s: mis|
|000046b0| 73 69 6e 67 20 68 69 6d | 73 67 2e 2e 2e 5c 6e 22 |sing him|sg...\n"|
|000046c0| 2c 20 64 65 73 74 29 3b | 0a 09 09 72 65 74 75 72 |, dest);|...retur|
|000046d0| 6e 20 32 3b 0a 09 7d 0a | 09 66 67 65 74 73 28 74 |n 2;..}.|.fgets(t|
|000046e0| 65 6d 70 2c 20 73 69 7a | 65 6f 66 20 74 65 6d 70 |emp, siz|eof temp|
|000046f0| 2c 20 69 66 70 29 3b 0a | 09 66 63 6c 6f 73 65 28 |, ifp);.|.fclose(|
|00004700| 69 66 70 29 3b 0a 09 69 | 66 20 28 28 6e 65 77 6d |ifp);..i|f ((newm|
|00004710| 73 67 20 3d 20 61 74 6f | 6c 28 74 65 6d 70 29 29 |sg = ato|l(temp))|
|00004720| 20 3c 3d 20 30 29 20 7b | 0a 09 09 66 70 72 69 6e | <= 0) {|...fprin|
|00004730| 74 66 28 73 74 64 65 72 | 72 2c 20 22 43 6f 6e 66 |tf(stder|r, "Conf|
|00004740| 65 72 65 6e 63 65 20 25 | 73 3a 20 69 6e 76 61 6c |erence %|s: inval|
|00004750| 69 64 20 68 69 6d 73 67 | 2e 2e 2e 5c 6e 22 2c 20 |id himsg|...\n", |
|00004760| 64 65 73 74 29 3b 0a 09 | 09 72 65 74 75 72 6e 20 |dest);..|.return |
|00004770| 32 3b 0a 09 7d 0a 09 6e | 65 77 6d 73 67 2b 2b 3b |2;..}..n|ewmsg++;|
|00004780| 0a 09 73 70 72 69 6e 74 | 66 28 70 61 74 68 2c 20 |..sprint|f(path, |
|00004790| 22 25 73 2f 25 73 2f 25 | 6c 64 22 2c 20 62 61 73 |"%s/%s/%|ld", bas|
|000047a0| 65 2c 20 63 6f 6e 66 2c | 20 6d 73 67 29 3b 0a 09 |e, conf,| msg);..|
|000047b0| 69 66 20 28 28 69 66 70 | 20 3d 20 66 6f 70 65 6e |if ((ifp| = fopen|
|000047c0| 28 70 61 74 68 2c 20 22 | 72 22 29 29 20 3d 3d 20 |(path, "|r")) == |
|000047d0| 28 46 49 4c 45 20 2a 29 | 20 30 29 20 7b 0a 09 09 |(FILE *)| 0) {...|
|000047e0| 66 70 72 69 6e 74 66 28 | 73 74 64 65 72 72 2c 20 |fprintf(|stderr, |
|000047f0| 22 43 6f 6e 66 65 72 65 | 6e 63 65 20 25 73 3a 20 |"Confere|nce %s: |
|00004800| 63 68 65 63 6b 20 70 65 | 72 6d 69 73 73 69 6f 6e |check pe|rmission|
|00004810| 73 20 6f 6e 20 6d 65 73 | 73 61 67 65 20 25 6c 64 |s on mes|sage %ld|
|00004820| 5c 6e 22 2c 20 63 6f 6e | 66 2c 20 6d 73 67 29 3b |\n", con|f, msg);|
|00004830| 0a 09 09 72 65 74 75 72 | 6e 20 33 3b 0a 09 7d 0a |...retur|n 3;..}.|
|00004840| 09 73 70 72 69 6e 74 66 | 28 70 61 74 68 2c 20 22 |.sprintf|(path, "|
|00004850| 25 73 2f 25 73 2f 25 6c | 64 22 2c 20 62 61 73 65 |%s/%s/%l|d", base|
|00004860| 2c 20 64 65 73 74 2c 20 | 6e 65 77 6d 73 67 29 3b |, dest, |newmsg);|
|00004870| 0a 09 69 66 20 28 73 74 | 61 74 28 70 61 74 68 2c |..if (st|at(path,|
|00004880| 20 26 73 62 75 66 29 20 | 3d 3d 20 30 29 20 7b 0a | &sbuf) |== 0) {.|
|00004890| 09 09 66 70 72 69 6e 74 | 66 28 73 74 64 65 72 72 |..fprint|f(stderr|
|000048a0| 2c 20 22 43 6f 6e 66 65 | 72 65 6e 63 65 20 25 73 |, "Confe|rence %s|
|000048b0| 3a 20 63 6f 72 72 75 70 | 74 65 64 20 28 68 69 6d |: corrup|ted (him|
|000048c0| 73 67 20 69 6e 63 6f 72 | 72 65 63 74 29 5c 6e 22 |sg incor|rect)\n"|
|000048d0| 2c 20 64 65 73 74 29 3b | 0a 09 09 66 63 6c 6f 73 |, dest);|...fclos|
|000048e0| 65 28 69 66 70 29 3b 0a | 09 09 72 65 74 75 72 6e |e(ifp);.|..return|
|000048f0| 20 34 3b 0a 09 7d 0a 09 | 69 66 20 28 28 6f 66 70 | 4;..}..|if ((ofp|
|00004900| 20 3d 20 66 6f 70 65 6e | 28 70 61 74 68 2c 20 22 | = fopen|(path, "|
|00004910| 77 22 29 29 20 3d 3d 20 | 28 46 49 4c 45 20 2a 29 |w")) == |(FILE *)|
|00004920| 20 30 29 20 7b 0a 09 09 | 66 70 72 69 6e 74 66 28 | 0) {...|fprintf(|
|00004930| 73 74 64 65 72 72 2c 20 | 22 43 6f 6e 66 65 72 65 |stderr, |"Confere|
|00004940| 6e 63 65 20 25 73 3a 20 | 63 68 65 63 6b 20 70 65 |nce %s: |check pe|
|00004950| 72 6d 69 73 73 69 6f 6e | 73 20 28 63 61 6e 27 74 |rmission|s (can't|
|00004960| 20 63 72 65 61 74 65 20 | 6d 65 73 73 61 67 65 29 | create |message)|
|00004970| 5c 6e 22 2c 20 64 65 73 | 74 29 3b 0a 09 09 66 63 |\n", des|t);...fc|
|00004980| 6c 6f 73 65 28 69 66 70 | 29 3b 0a 09 09 72 65 74 |lose(ifp|);...ret|
|00004990| 75 72 6e 20 35 3b 0a 09 | 7d 0a 09 77 68 69 6c 65 |urn 5;..|}..while|
|000049a0| 20 28 66 67 65 74 73 28 | 74 65 6d 70 2c 20 73 69 | (fgets(|temp, si|
|000049b0| 7a 65 6f 66 20 74 65 6d | 70 2c 20 69 66 70 29 20 |zeof tem|p, ifp) |
|000049c0| 21 3d 20 28 63 68 61 72 | 20 2a 29 20 30 29 20 7b |!= (char| *) 0) {|
|000049d0| 0a 09 09 66 70 75 74 73 | 28 74 65 6d 70 2c 20 6f |...fputs|(temp, o|
|000049e0| 66 70 29 3b 0a 09 09 69 | 66 20 28 66 65 72 72 6f |fp);...i|f (ferro|
|000049f0| 72 28 6f 66 70 29 29 20 | 7b 0a 09 09 09 66 70 72 |r(ofp)) |{....fpr|
|00004a00| 69 6e 74 66 28 73 74 64 | 65 72 72 2c 20 22 57 72 |intf(std|err, "Wr|
|00004a10| 69 74 65 20 65 72 72 6f | 72 20 6f 6e 20 25 73 2f |ite erro|r on %s/|
|00004a20| 25 6c 64 5c 6e 22 2c 20 | 64 65 73 74 2c 20 6e 65 |%ld\n", |dest, ne|
|00004a30| 77 6d 73 67 29 3b 0a 09 | 09 09 65 78 69 74 28 35 |wmsg);..|..exit(5|
|00004a40| 29 3b 09 2f 2a 20 66 61 | 74 61 6c 21 20 2a 2f 0a |);./* fa|tal! */.|
|00004a50| 09 09 7d 0a 09 7d 0a 09 | 69 66 20 28 66 65 72 72 |..}..}..|if (ferr|
|00004a60| 6f 72 28 69 66 70 29 29 | 20 7b 0a 09 09 66 70 72 |or(ifp))| {...fpr|
|00004a70| 69 6e 74 66 28 73 74 64 | 65 72 72 2c 20 22 52 65 |intf(std|err, "Re|
|00004a80| 61 64 20 65 72 72 6f 72 | 20 6f 6e 20 25 73 2f 25 |ad error| on %s/%|
|00004a90| 6c 64 5c 6e 22 2c 20 63 | 6f 6e 66 2c 20 6d 73 67 |ld\n", c|onf, msg|
|00004aa0| 29 3b 0a 09 09 66 63 6c | 6f 73 65 28 69 66 70 29 |);...fcl|ose(ifp)|
|00004ab0| 3b 0a 09 09 66 63 6c 6f | 73 65 28 6f 66 70 29 3b |;...fclo|se(ofp);|
|00004ac0| 0a 09 09 72 65 74 75 72 | 6e 20 36 3b 0a 09 7d 0a |...retur|n 6;..}.|
|00004ad0| 09 66 63 6c 6f 73 65 28 | 69 66 70 29 3b 0a 09 66 |.fclose(|ifp);..f|
|00004ae0| 63 6c 6f 73 65 28 6f 66 | 70 29 3b 0a 09 73 70 72 |close(of|p);..spr|
|00004af0| 69 6e 74 66 28 70 61 74 | 68 2c 20 22 25 73 2f 25 |intf(pat|h, "%s/%|
|00004b00| 73 2f 68 69 6d 73 67 22 | 2c 20 62 61 73 65 2c 20 |s/himsg"|, base, |
|00004b10| 64 65 73 74 29 3b 0a 09 | 69 66 20 28 28 69 66 70 |dest);..|if ((ifp|
|00004b20| 20 3d 20 66 6f 70 65 6e | 28 70 61 74 68 2c 20 22 | = fopen|(path, "|
|00004b30| 77 22 29 29 20 3d 3d 20 | 28 46 49 4c 45 20 2a 29 |w")) == |(FILE *)|
|00004b40| 20 30 29 20 7b 0a 09 09 | 66 70 72 69 6e 74 66 28 | 0) {...|fprintf(|
|00004b50| 73 74 64 65 72 72 2c 20 | 22 43 6f 6e 66 65 72 65 |stderr, |"Confere|
|00004b60| 6e 63 65 20 25 73 3a 20 | 63 68 65 63 6b 20 70 65 |nce %s: |check pe|
|00004b70| 72 6d 69 73 73 69 6f 6e | 73 20 6f 6e 20 68 69 6d |rmission|s on him|
|00004b80| 73 67 2e 2e 2e 5c 6e 22 | 2c 20 64 65 73 74 29 3b |sg...\n"|, dest);|
|00004b90| 0a 09 09 72 65 74 75 72 | 6e 20 32 3b 0a 09 7d 0a |...retur|n 2;..}.|
|00004ba0| 09 66 70 72 69 6e 74 66 | 28 69 66 70 2c 20 22 25 |.fprintf|(ifp, "%|
|00004bb0| 6c 64 5c 6e 22 2c 20 6e | 65 77 6d 73 67 29 3b 0a |ld\n", n|ewmsg);.|
|00004bc0| 09 66 63 6c 6f 73 65 28 | 69 66 70 29 3b 0a 09 73 |.fclose(|ifp);..s|
|00004bd0| 70 72 69 6e 74 66 28 70 | 61 74 68 2c 20 22 25 73 |printf(p|ath, "%s|
|00004be0| 2f 25 73 2f 25 6c 64 22 | 2c 20 62 61 73 65 2c 20 |/%s/%ld"|, base, |
|00004bf0| 63 6f 6e 66 2c 20 6d 73 | 67 29 3b 0a 09 69 66 20 |conf, ms|g);..if |
|00004c00| 28 75 6e 6c 69 6e 6b 28 | 70 61 74 68 29 20 3c 20 |(unlink(|path) < |
|00004c10| 30 29 0a 09 09 72 65 74 | 75 72 6e 20 31 30 3b 0a |0)...ret|urn 10;.|
|00004c20| 09 72 65 74 75 72 6e 20 | 30 3b 0a 7d 0a 0a 23 69 |.return |0;.}..#i|
|00004c30| 66 6e 64 65 66 20 42 53 | 44 34 0a 0a 2f 2a 20 42 |fndef BS|D4../* B|
|00004c40| 65 72 6b 65 6c 65 79 20 | 68 61 73 20 61 20 72 6d |erkeley |has a rm|
|00004c50| 64 69 72 28 29 20 73 79 | 73 74 65 6d 20 63 61 6c |dir() sy|stem cal|
|00004c60| 6c 21 20 20 48 65 61 76 | 65 6e 21 20 20 42 75 74 |l! Heav|en! But|
|00004c70| 20 49 27 6d 20 6f 6e 20 | 73 79 73 33 20 28 62 6f | I'm on |sys3 (bo|
|00004c80| 6f 20 68 69 73 73 29 20 | 2a 2f 0a 0a 72 6d 64 69 |o hiss) |*/..rmdi|
|00004c90| 72 28 70 61 74 68 29 0a | 63 68 61 72 20 2a 70 61 |r(path).|char *pa|
|00004ca0| 74 68 3b 20 7b 0a 09 69 | 6e 74 20 70 69 64 2c 20 |th; {..i|nt pid, |
|00004cb0| 73 74 61 74 75 73 3b 0a | 09 0a 09 73 77 69 74 63 |status;.|...switc|
|00004cc0| 68 20 28 70 69 64 20 3d | 20 66 6f 72 6b 28 29 29 |h (pid =| fork())|
|00004cd0| 20 7b 0a 09 09 63 61 73 | 65 20 2d 31 3a 0a 09 09 | {...cas|e -1:...|
|00004ce0| 09 72 65 74 75 72 6e 20 | 2d 31 3b 0a 09 09 63 61 |.return |-1;...ca|
|00004cf0| 73 65 20 30 3a 0a 09 09 | 09 65 78 65 63 6c 28 22 |se 0:...|.execl("|
|00004d00| 2f 62 69 6e 2f 72 6d 64 | 69 72 22 2c 20 22 72 6d |/bin/rmd|ir", "rm|
|00004d10| 64 69 72 22 2c 20 70 61 | 74 68 2c 20 30 29 3b 0a |dir", pa|th, 0);.|
|00004d20| 09 09 09 65 78 69 74 28 | 2d 31 30 30 29 3b 0a 09 |...exit(|-100);..|
|00004d30| 09 64 65 66 61 75 6c 74 | 3a 0a 09 09 09 77 68 69 |.default|:....whi|
|00004d40| 6c 65 20 28 77 61 69 74 | 28 26 73 74 61 74 75 73 |le (wait|(&status|
|00004d50| 29 20 21 3d 20 70 69 64 | 29 0a 09 09 09 09 3b 0a |) != pid|).....;.|
|00004d60| 09 09 09 72 65 74 75 72 | 6e 20 73 74 61 74 75 73 |...retur|n status|
|00004d70| 3b 0a 09 7d 0a 7d 0a 0a | 23 65 6e 64 69 66 20 42 |;..}.}..|#endif B|
|00004d80| 53 44 34 0a 53 48 41 52 | 5f 45 4f 46 0a 69 66 20 |SD4.SHAR|_EOF.if |
|00004d90| 74 65 73 74 20 34 31 30 | 38 20 2d 6e 65 20 22 60 |test 410|8 -ne "`|
|00004da0| 77 63 20 2d 63 20 3c 20 | 27 55 74 69 6c 69 74 69 |wc -c < |'Utiliti|
|00004db0| 65 73 2f 6d 76 6d 73 67 | 2e 63 27 60 22 0a 74 68 |es/mvmsg|.c'`".th|
|00004dc0| 65 6e 0a 09 65 63 68 6f | 20 73 68 61 72 3a 20 65 |en..echo| shar: e|
|00004dd0| 72 72 6f 72 20 74 72 61 | 6e 73 6d 69 74 74 69 6e |rror tra|nsmittin|
|00004de0| 67 20 22 27 55 74 69 6c | 69 74 69 65 73 2f 6d 76 |g "'Util|ities/mv|
|00004df0| 6d 73 67 2e 63 27 22 20 | 27 28 73 68 6f 75 6c 64 |msg.c'" |'(should|
|00004e00| 20 68 61 76 65 20 62 65 | 65 6e 20 34 31 30 38 20 | have be|en 4108 |
|00004e10| 63 68 61 72 61 63 74 65 | 72 73 29 27 0a 66 69 0a |characte|rs)'.fi.|
|00004e20| 66 69 0a 65 63 68 6f 20 | 73 68 61 72 3a 20 65 78 |fi.echo |shar: ex|
|00004e30| 74 72 61 63 74 69 6e 67 | 20 22 27 55 74 69 6c 69 |tracting| "'Utili|
|00004e40| 74 69 65 73 2f 75 61 6e | 65 77 73 2e 63 27 22 20 |ties/uan|ews.c'" |
|00004e50| 27 28 35 38 30 34 20 63 | 68 61 72 61 63 74 65 72 |'(5804 c|haracter|
|00004e60| 73 29 27 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |s)'.if t|est -f '|
|00004e70| 55 74 69 6c 69 74 69 65 | 73 2f 75 61 6e 65 77 73 |Utilitie|s/uanews|
|00004e80| 2e 63 27 0a 74 68 65 6e | 0a 09 65 63 68 6f 20 73 |.c'.then|..echo s|
|00004e90| 68 61 72 3a 20 77 69 6c | 6c 20 6e 6f 74 20 6f 76 |har: wil|l not ov|
|00004ea0| 65 72 2d 77 72 69 74 65 | 20 65 78 69 73 74 69 6e |er-write| existin|
|00004eb0| 67 20 66 69 6c 65 20 22 | 27 55 74 69 6c 69 74 69 |g file "|'Utiliti|
|00004ec0| 65 73 2f 75 61 6e 65 77 | 73 2e 63 27 22 0a 65 6c |es/uanew|s.c'".el|
|00004ed0| 73 65 0a 63 61 74 20 3c | 3c 20 5c 53 48 41 52 5f |se.cat <|< \SHAR_|
|00004ee0| 45 4f 46 20 3e 20 27 55 | 74 69 6c 69 74 69 65 73 |EOF > 'U|tilities|
|00004ef0| 2f 75 61 6e 65 77 73 2e | 63 27 0a 2f 2a 0a 20 2a |/uanews.|c'./*. *|
|00004f00| 20 25 57 25 20 25 45 25 | 20 25 55 25 20 6e 63 6f | %W% %E%| %U% nco|
|00004f10| 61 73 74 21 62 73 61 20 | 25 5a 25 0a 20 2a 20 25 |ast!bsa |%Z%. * %|
|00004f20| 5a 25 20 43 6f 70 79 72 | 69 67 68 74 20 28 43 29 |Z% Copyr|ight (C)|
|00004f30| 20 31 39 38 35 20 62 79 | 20 42 72 61 6e 64 6f 6e | 1985 by| Brandon|
|00004f40| 20 53 2e 20 41 6c 6c 62 | 65 72 79 2c 20 41 6c 6c | S. Allb|ery, All|
|00004f50| 20 52 69 67 68 74 73 20 | 52 65 73 65 72 76 65 64 | Rights |Reserved|
|00004f60| 20 25 5a 25 0a 20 2a 2f | 0a 0a 23 69 66 6e 64 65 | %Z%. */|..#ifnde|
|00004f70| 66 20 6c 69 6e 74 0a 73 | 74 61 74 69 63 20 63 68 |f lint.s|tatic ch|
|00004f80| 61 72 20 5f 53 63 63 73 | 49 64 5b 5d 20 3d 20 22 |ar _Sccs|Id[] = "|
|00004f90| 25 57 25 20 25 45 25 20 | 25 55 25 20 6e 63 6f 61 |%W% %E% |%U% ncoa|
|00004fa0| 73 74 21 62 73 61 20 25 | 5a 25 22 3b 0a 73 74 61 |st!bsa %|Z%";.sta|
|00004fb0| 74 69 63 20 63 68 61 72 | 20 5f 43 6f 70 79 52 74 |tic char| _CopyRt|
|00004fc0| 5b 5d 20 3d 20 22 25 5a | 25 20 43 6f 70 79 72 69 |[] = "%Z|% Copyri|
|00004fd0| 67 68 74 20 28 43 29 20 | 31 39 38 35 20 62 79 20 |ght (C) |1985 by |
|00004fe0| 42 72 61 6e 64 6f 6e 20 | 53 2e 20 41 6c 6c 62 65 |Brandon |S. Allbe|
|00004ff0| 72 79 20 25 5a 25 22 3b | 0a 23 65 6e 64 69 66 20 |ry %Z%";|.#endif |
|00005000| 20 6c 69 6e 74 0a 0a 23 | 69 6e 63 6c 75 64 65 20 | lint..#|include |
|00005010| 3c 73 74 64 69 6f 2e 68 | 3e 0a 23 69 6e 63 6c 75 |<stdio.h|>.#inclu|
|00005020| 64 65 20 3c 70 77 64 2e | 68 3e 0a 23 69 6e 63 6c |de <pwd.|h>.#incl|
|00005030| 75 64 65 20 3c 73 79 73 | 2f 74 79 70 65 73 2e 68 |ude <sys|/types.h|
|00005040| 3e 0a 23 69 6e 63 6c 75 | 64 65 20 3c 73 79 73 2f |>.#inclu|de <sys/|
|00005050| 73 74 61 74 2e 68 3e 0a | 0a 23 64 65 66 69 6e 65 |stat.h>.|.#define|
|00005060| 20 4e 45 57 53 52 43 09 | 09 22 25 6e 65 77 73 6c | NEWSRC.|."%newsl|
|00005070| 69 6e 6b 22 09 2f 2a 20 | 73 69 6d 70 6c 69 66 69 |ink"./* |simplifi|
|00005080| 65 64 20 2e 6e 65 77 73 | 72 63 20 2a 2f 0a 23 64 |ed .news|rc */.#d|
|00005090| 65 66 69 6e 65 20 41 43 | 54 49 56 45 09 09 22 2f |efine AC|TIVE.."/|
|000050a0| 75 73 72 2f 6c 69 62 2f | 6e 65 77 73 2f 61 63 74 |usr/lib/|news/act|
|000050b0| 69 76 65 22 0a 23 64 65 | 66 69 6e 65 20 4e 45 57 |ive".#de|fine NEW|
|000050c0| 53 44 49 52 09 09 22 2f | 75 73 72 2f 73 70 6f 6f |SDIR.."/|usr/spoo|
|000050d0| 6c 2f 6e 65 77 73 22 0a | 2f 2a 20 6e 6f 20 6e 65 |l/news".|/* no ne|
|000050e0| 65 64 20 74 6f 20 64 65 | 66 69 6e 65 20 73 70 65 |ed to de|fine spe|
|000050f0| 63 69 61 6c 20 69 66 20 | 79 6f 75 27 72 65 20 32 |cial if |you're 2|
|00005100| 2e 31 30 2e 32 3b 20 77 | 65 20 63 61 6e 20 69 6e |.10.2; w|e can in|
|00005110| 74 75 69 74 20 74 68 65 | 20 6e 65 77 20 61 63 74 |tuit the| new act|
|00005120| 69 76 65 20 66 69 6c 65 | 20 2a 2f 0a 0a 23 69 66 |ive file| */..#if|
|00005130| 64 65 66 20 53 59 53 33 | 0a 23 64 65 66 69 6e 65 |def SYS3|.#define|
|00005140| 20 49 6e 64 65 78 09 09 | 73 74 72 63 68 72 0a 23 | Index..|strchr.#|
|00005150| 64 65 66 69 6e 65 20 52 | 49 6e 64 65 78 09 09 73 |define R|Index..s|
|00005160| 74 72 72 63 68 72 0a 23 | 65 6c 73 65 20 20 53 59 |trrchr.#|else SY|
|00005170| 53 33 0a 23 64 65 66 69 | 6e 65 20 49 6e 64 65 78 |S3.#defi|ne Index|
|00005180| 09 09 69 6e 64 65 78 0a | 23 64 65 66 69 6e 65 20 |..index.|#define |
|00005190| 52 49 6e 64 65 78 09 09 | 72 69 6e 64 65 78 0a 23 |RIndex..|rindex.#|
|000051a0| 65 6e 64 69 66 0a 0a 65 | 78 74 65 72 6e 20 6c 6f |endif..e|xtern lo|
|000051b0| 6e 67 20 61 74 6f 6c 28 | 29 3b 0a 65 78 74 65 72 |ng atol(|);.exter|
|000051c0| 6e 20 63 68 61 72 20 2a | 49 6e 64 65 78 28 29 3b |n char *|Index();|
|000051d0| 0a 65 78 74 65 72 6e 20 | 73 74 72 75 63 74 20 70 |.extern |struct p|
|000051e0| 61 73 73 77 64 20 2a 67 | 65 74 70 77 75 69 64 28 |asswd *g|etpwuid(|
|000051f0| 29 3b 0a 0a 65 78 74 65 | 72 6e 20 69 6e 74 20 65 |);..exte|rn int e|
|00005200| 72 72 6e 6f 3b 0a 0a 6d | 61 69 6e 28 61 72 67 63 |rrno;..m|ain(argc|
|00005210| 2c 20 61 72 67 76 29 0a | 63 68 61 72 20 2a 2a 61 |, argv).|char **a|
|00005220| 72 67 76 3b 20 7b 0a 09 | 63 68 61 72 20 6d 73 67 |rgv; {..|char msg|
|00005230| 64 69 72 5b 32 35 36 5d | 2c 20 63 6f 6e 66 5b 33 |dir[256]|, conf[3|
|00005240| 33 5d 3b 0a 09 6c 6f 6e | 67 20 6d 73 67 3b 0a 09 |3];..lon|g msg;..|
|00005250| 63 68 61 72 20 2a 63 70 | 2c 20 2a 64 70 3b 0a 09 |char *cp|, *dp;..|
|00005260| 69 6e 74 20 73 74 61 74 | 75 73 3b 0a 0a 09 69 66 |int stat|us;...if|
|00005270| 20 28 61 72 67 63 20 21 | 3d 20 33 29 20 7b 0a 09 | (argc !|= 3) {..|
|00005280| 09 66 70 72 69 6e 74 66 | 28 73 74 64 65 72 72 2c |.fprintf|(stderr,|
|00005290| 20 22 55 73 61 67 65 3a | 20 75 61 6e 65 77 73 20 | "Usage:| uanews |
|000052a0| 6e 65 77 73 67 72 6f 75 | 70 5b 2f 61 72 74 69 63 |newsgrou|p[/artic|
|000052b0| 6c 65 5d 20 63 6f 6e 66 | 5c 6e 22 29 3b 0a 09 09 |le] conf|\n");...|
|000052c0| 65 78 69 74 28 31 29 3b | 0a 09 7d 0a 09 73 74 72 |exit(1);|..}..str|
|000052d0| 63 70 79 28 6d 73 67 64 | 69 72 2c 20 67 65 74 70 |cpy(msgd|ir, getp|
|000052e0| 77 75 69 64 28 67 65 74 | 65 75 69 64 28 29 29 2d |wuid(get|euid())-|
|000052f0| 3e 70 77 5f 64 69 72 29 | 3b 0a 09 73 74 72 63 61 |>pw_dir)|;..strca|
|00005300| 74 28 6d 73 67 64 69 72 | 2c 20 22 2f 6d 73 67 64 |t(msgdir|, "/msgd|
|00005310| 69 72 22 29 3b 0a 09 66 | 6f 72 20 28 63 70 20 3d |ir");..f|or (cp =|
|00005320| 20 61 72 67 76 5b 31 5d | 2c 20 64 70 20 3d 20 63 | argv[1]|, dp = c|
|00005330| 6f 6e 66 3b 20 2a 63 70 | 20 21 3d 20 27 2f 27 20 |onf; *cp| != '/' |
|00005340| 26 26 20 2a 63 70 20 21 | 3d 20 27 5c 30 27 3b 20 |&& *cp !|= '\0'; |
|00005350| 63 70 2b 2b 2c 20 64 70 | 2b 2b 29 0a 09 09 2a 64 |cp++, dp|++)...*d|
|00005360| 70 20 3d 20 2a 63 70 3b | 0a 09 2a 64 70 20 3d 20 |p = *cp;|..*dp = |
|00005370| 27 5c 30 27 3b 0a 09 69 | 66 20 28 2a 63 70 20 3d |'\0';..i|f (*cp =|
|00005380| 3d 20 27 5c 30 27 29 20 | 7b 0a 09 09 46 49 4c 45 |= '\0') |{...FILE|
|00005390| 20 2a 66 70 3b 0a 09 09 | 63 68 61 72 20 74 6d 70 | *fp;...|char tmp|
|000053a0| 5b 35 31 32 5d 2c 20 6e | 67 5b 35 31 32 5d 3b 0a |[512], n|g[512];.|
|000053b0| 09 09 6c 6f 6e 67 20 6c | 69 6d 69 74 2c 20 63 6e |..long l|imit, cn|
|000053c0| 74 2c 20 6d 69 6e 61 63 | 74 3b 0a 09 09 0a 09 09 |t, minac|t;......|
|000053d0| 69 66 20 28 28 66 70 20 | 3d 20 66 6f 70 65 6e 28 |if ((fp |= fopen(|
|000053e0| 41 43 54 49 56 45 2c 20 | 22 72 22 29 29 20 3d 3d |ACTIVE, |"r")) ==|
|000053f0| 20 28 46 49 4c 45 20 2a | 29 20 30 29 20 7b 0a 09 | (FILE *|) 0) {..|
|00005400| 09 09 66 70 72 69 6e 74 | 66 28 73 74 64 65 72 72 |..fprint|f(stderr|
|00005410| 2c 20 22 4e 6f 74 20 61 | 20 55 73 65 6e 65 74 20 |, "Not a| Usenet |
|00005420| 73 69 74 65 20 28 6e 6f | 20 61 63 74 69 76 65 20 |site (no| active |
|00005430| 66 69 6c 65 29 2e 2e 2e | 5c 6e 22 2c 20 63 6f 6e |file)...|\n", con|
|00005440| 66 29 3b 0a 09 09 09 65 | 78 69 74 28 37 29 3b 0a |f);....e|xit(7);.|
|00005450| 09 09 7d 0a 09 09 77 68 | 69 6c 65 20 28 66 67 65 |..}...wh|ile (fge|
|00005460| 74 73 28 74 6d 70 2c 20 | 73 69 7a 65 6f 66 20 74 |ts(tmp, |sizeof t|
|00005470| 6d 70 2c 20 66 70 29 20 | 21 3d 20 4e 55 4c 4c 29 |mp, fp) |!= NULL)|
|00005480| 20 7b 0a 09 09 09 69 66 | 20 28 73 73 63 61 6e 66 | {....if| (sscanf|
|00005490| 28 74 6d 70 2c 20 22 25 | 73 20 25 6c 64 20 25 6c |(tmp, "%|s %ld %l|
|000054a0| 64 22 2c 20 6e 67 2c 20 | 26 6c 69 6d 69 74 2c 20 |d", ng, |&limit, |
|000054b0| 26 6d 69 6e 61 63 74 29 | 20 3d 3d 20 32 29 0a 09 |&minact)| == 2)..|
|000054c0| 09 09 09 6d 69 6e 61 63 | 74 20 3d 20 31 3b 09 2f |...minac|t = 1;./|
|000054d0| 2a 20 3c 20 32 2e 31 30 | 2e 32 20 2a 2f 0a 09 09 |* < 2.10|.2 */...|
|000054e0| 09 69 66 20 28 73 74 72 | 63 6d 70 28 6e 67 2c 20 |.if (str|cmp(ng, |
|000054f0| 63 6f 6e 66 29 20 3d 3d | 20 30 29 0a 09 09 09 09 |conf) ==| 0).....|
|00005500| 62 72 65 61 6b 3b 0a 09 | 09 7d 0a 09 09 66 63 6c |break;..|.}...fcl|
|00005510| 6f 73 65 28 66 70 29 3b | 0a 09 09 69 66 20 28 73 |ose(fp);|...if (s|
|00005520| 74 72 63 6d 70 28 6e 67 | 2c 20 63 6f 6e 66 29 20 |trcmp(ng|, conf) |
|00005530| 21 3d 20 30 29 20 7b 0a | 09 09 09 66 70 72 69 6e |!= 0) {.|...fprin|
|00005540| 74 66 28 73 74 64 65 72 | 72 2c 20 22 49 20 63 61 |tf(stder|r, "I ca|
|00005550| 6e 27 74 20 66 69 6e 64 | 20 61 20 6e 65 77 73 67 |n't find| a newsg|
|00005560| 72 6f 75 70 20 63 61 6c | 6c 65 64 20 25 73 2e 5c |roup cal|led %s.\|
|00005570| 6e 22 2c 20 63 6f 6e 66 | 29 3b 0a 09 09 09 65 78 |n", conf|);....ex|
|00005580| 69 74 28 31 33 29 3b 0a | 09 09 7d 0a 09 09 69 66 |it(13);.|..}...if|
|00005590| 20 28 6d 69 6e 61 63 74 | 20 3d 3d 20 6c 69 6d 69 | (minact| == limi|
|000055a0| 74 29 20 7b 0a 09 09 09 | 66 70 72 69 6e 74 66 28 |t) {....|fprintf(|
|000055b0| 73 74 64 65 72 72 2c 20 | 22 4e 65 77 73 67 72 6f |stderr, |"Newsgro|
|000055c0| 75 70 20 25 73 20 69 73 | 20 65 6d 70 74 79 2e 5c |up %s is| empty.\|
|000055d0| 6e 22 2c 20 63 6f 6e 66 | 29 3b 0a 09 09 09 65 78 |n", conf|);....ex|
|000055e0| 69 74 28 31 34 29 3b 0a | 09 09 7d 0a 09 09 73 70 |it(14);.|..}...sp|
|000055f0| 72 69 6e 74 66 28 74 6d | 70 2c 20 22 25 73 2f 25 |rintf(tm|p, "%s/%|
|00005600| 73 2f 25 73 22 2c 20 6d | 73 67 64 69 72 2c 20 61 |s/%s", m|sgdir, a|
|00005610| 72 67 76 5b 32 5d 2c 20 | 4e 45 57 53 52 43 29 3b |rgv[2], |NEWSRC);|
|00005620| 0a 09 09 69 66 20 28 28 | 66 70 20 3d 20 66 6f 70 |...if ((|fp = fop|
|00005630| 65 6e 28 74 6d 70 2c 20 | 22 72 22 29 29 20 21 3d |en(tmp, |"r")) !=|
|00005640| 20 28 46 49 4c 45 20 2a | 29 20 30 29 20 7b 0a 09 | (FILE *|) 0) {..|
|00005650| 09 09 63 68 61 72 20 74 | 6d 70 32 5b 35 31 32 5d |..char t|mp2[512]|
|00005660| 3b 0a 0a 09 09 09 77 68 | 69 6c 65 20 28 66 67 65 |;.....wh|ile (fge|
|00005670| 74 73 28 74 6d 70 2c 20 | 73 69 7a 65 6f 66 20 74 |ts(tmp, |sizeof t|
|00005680| 6d 70 2c 20 66 70 29 20 | 21 3d 20 28 63 68 61 72 |mp, fp) |!= (char|
|00005690| 20 2a 29 20 30 29 20 7b | 0a 09 09 09 09 73 73 63 | *) 0) {|.....ssc|
|000056a0| 61 6e 66 28 74 6d 70 2c | 20 22 25 5b 5e 3a 5d 3a |anf(tmp,| "%[^:]:|
|000056b0| 20 25 6c 64 22 2c 20 74 | 6d 70 32 2c 20 26 63 6e | %ld", t|mp2, &cn|
|000056c0| 74 29 3b 0a 09 09 09 09 | 69 66 20 28 73 74 72 63 |t);.....|if (strc|
|000056d0| 6d 70 28 74 6d 70 32 2c | 20 6e 67 29 20 3d 3d 20 |mp(tmp2,| ng) == |
|000056e0| 30 29 0a 09 09 09 09 09 | 62 72 65 61 6b 3b 0a 09 |0)......|break;..|
|000056f0| 09 09 7d 0a 09 09 09 69 | 66 20 28 73 74 72 63 6d |..}....i|f (strcm|
|00005700| 70 28 74 6d 70 32 2c 20 | 6e 67 29 20 3d 3d 20 30 |p(tmp2, |ng) == 0|
|00005710| 29 0a 09 09 09 09 6d 69 | 6e 61 63 74 20 3d 20 63 |).....mi|nact = c|
|00005720| 6e 74 20 2b 20 31 3b 0a | 09 09 09 66 63 6c 6f 73 |nt + 1;.|...fclos|
|00005730| 65 28 66 70 29 3b 0a 09 | 09 7d 0a 09 09 70 72 69 |e(fp);..|.}...pri|
|00005740| 6e 74 66 28 22 4e 65 77 | 73 20 61 72 74 69 63 6c |ntf("New|s articl|
|00005750| 65 73 20 25 64 20 74 6f | 20 25 64 5c 6e 22 2c 20 |es %d to| %d\n", |
|00005760| 6d 69 6e 61 63 74 2c 20 | 6c 69 6d 69 74 29 3b 0a |minact, |limit);.|
|00005770| 09 09 66 6f 72 20 28 63 | 6e 74 20 3d 20 30 2c 20 |..for (c|nt = 0, |
|00005780| 6d 73 67 20 3d 20 6d 69 | 6e 61 63 74 3b 20 6d 73 |msg = mi|nact; ms|
|00005790| 67 20 3c 3d 20 6c 69 6d | 69 74 3b 20 6d 73 67 2b |g <= lim|it; msg+|
|000057a0| 2b 29 20 7b 0a 09 09 09 | 69 66 20 28 28 73 74 61 |+) {....|if ((sta|
|000057b0| 74 75 73 20 3d 20 63 6f | 70 79 6e 65 77 73 28 6d |tus = co|pynews(m|
|000057c0| 73 67 64 69 72 2c 20 63 | 6f 6e 66 2c 20 6d 73 67 |sgdir, c|onf, msg|
|000057d0| 2c 20 61 72 67 76 5b 32 | 5d 29 29 20 3e 20 30 29 |, argv[2|])) > 0)|
|000057e0| 0a 09 09 09 09 65 78 69 | 74 28 73 74 61 74 75 73 |.....exi|t(status|
|000057f0| 29 3b 0a 09 09 09 65 6c | 73 65 20 69 66 20 28 73 |);....el|se if (s|
|00005800| 74 61 74 75 73 20 3d 3d | 20 30 29 0a 09 09 09 09 |tatus ==| 0).....|
|00005810| 63 6e 74 2b 2b 3b 0a 09 | 09 7d 0a 09 09 70 72 69 |cnt++;..|.}...pri|
|00005820| 6e 74 66 28 22 25 6c 64 | 20 6e 65 77 73 20 61 72 |ntf("%ld| news ar|
|00005830| 74 69 63 6c 65 73 20 70 | 6f 73 74 65 64 20 66 72 |ticles p|osted fr|
|00005840| 6f 6d 20 25 73 20 74 6f | 20 25 73 2e 5c 6e 22 2c |om %s to| %s.\n",|
|00005850| 20 63 6e 74 2c 20 63 6f | 6e 66 2c 20 61 72 67 76 | cnt, co|nf, argv|
|00005860| 5b 32 5d 29 3b 0a 09 09 | 65 78 69 74 28 63 6e 74 |[2]);...|exit(cnt|
|00005870| 20 3d 3d 20 30 3f 20 39 | 3a 20 30 29 3b 0a 09 7d | == 0? 9|: 0);..}|
|00005880| 0a 09 6d 73 67 20 3d 20 | 61 74 6f 6c 28 2b 2b 63 |..msg = |atol(++c|
|00005890| 70 29 3b 0a 09 69 66 20 | 28 49 6e 64 65 78 28 61 |p);..if |(Index(a|
|000058a0| 72 67 76 5b 32 5d 2c 20 | 27 2f 27 29 20 21 3d 20 |rgv[2], |'/') != |
|000058b0| 28 63 68 61 72 20 2a 29 | 20 30 29 20 7b 0a 09 09 |(char *)| 0) {...|
|000058c0| 66 70 72 69 6e 74 66 28 | 73 74 64 65 72 72 2c 20 |fprintf(|stderr, |
|000058d0| 22 55 73 61 67 65 3a 20 | 75 61 6e 65 77 73 20 6e |"Usage: |uanews n|
|000058e0| 65 77 73 67 72 6f 75 70 | 5b 2f 61 72 74 69 63 6c |ewsgroup|[/articl|
|000058f0| 65 5d 20 63 6f 6e 66 5c | 6e 22 29 3b 0a 09 09 65 |e] conf\|n");...e|
|00005900| 78 69 74 28 31 29 3b 0a | 09 7d 0a 09 69 66 20 28 |xit(1);.|.}..if (|
|00005910| 28 73 74 61 74 75 73 20 | 3d 20 63 6f 70 79 6e 65 |(status |= copyne|
|00005920| 77 73 28 6d 73 67 64 69 | 72 2c 20 63 6f 6e 66 2c |ws(msgdi|r, conf,|
|00005930| 20 6d 73 67 2c 20 61 72 | 67 76 5b 32 5d 29 29 20 | msg, ar|gv[2])) |
|00005940| 3d 3d 20 2d 31 29 0a 09 | 09 66 70 72 69 6e 74 66 |== -1)..|.fprintf|
|00005950| 28 73 74 64 65 72 72 2c | 20 22 43 6f 75 6c 64 6e |(stderr,| "Couldn|
|00005960| 27 74 20 72 65 61 64 20 | 61 72 74 69 63 6c 65 20 |'t read |article |
|00005970| 25 6c 64 20 6f 66 20 25 | 73 5c 6e 22 2c 20 6d 73 |%ld of %|s\n", ms|
|00005980| 67 2c 20 63 6f 6e 66 29 | 3b 0a 09 65 78 69 74 28 |g, conf)|;..exit(|
|00005990| 73 74 61 74 75 73 29 3b | 0a 7d 0a 0a 63 6f 70 79 |status);|.}..copy|
|000059a0| 6e 65 77 73 28 62 61 73 | 65 2c 20 6e 67 2c 20 61 |news(bas|e, ng, a|
|000059b0| 72 74 2c 20 64 65 73 74 | 29 0a 63 68 61 72 20 2a |rt, dest|).char *|
|000059c0| 62 61 73 65 2c 20 2a 6e | 67 2c 20 2a 64 65 73 74 |base, *n|g, *dest|
|000059d0| 3b 0a 6c 6f 6e 67 20 61 | 72 74 3b 20 7b 0a 09 63 |;.long a|rt; {..c|
|000059e0| 68 61 72 20 70 61 74 68 | 5b 35 31 32 5d 2c 20 74 |har path|[512], t|
|000059f0| 65 6d 70 5b 35 31 32 5d | 2c 20 6e 67 70 61 74 68 |emp[512]|, ngpath|
|00005a00| 5b 35 31 32 5d 3b 0a 09 | 6c 6f 6e 67 20 6e 65 77 |[512];..|long new|
|00005a10| 6d 73 67 3b 0a 09 46 49 | 4c 45 20 2a 69 66 70 2c |msg;..FI|LE *ifp,|
|00005a20| 20 2a 6f 66 70 3b 0a 09 | 73 74 72 75 63 74 20 73 | *ofp;..|struct s|
|00005a30| 74 61 74 20 73 62 75 66 | 3b 0a 09 63 68 61 72 20 |tat sbuf|;..char |
|00005a40| 2a 63 70 2c 20 2a 64 70 | 3b 0a 09 0a 09 66 6f 72 |*cp, *dp|;....for|
|00005a50| 20 28 63 70 20 3d 20 6e | 67 2c 20 64 70 20 3d 20 | (cp = n|g, dp = |
|00005a60| 6e 67 70 61 74 68 3b 20 | 2a 63 70 20 21 3d 20 27 |ngpath; |*cp != '|
|00005a70| 5c 30 27 3b 20 63 70 2b | 2b 2c 20 64 70 2b 2b 29 |\0'; cp+|+, dp++)|
|00005a80| 0a 09 09 69 66 20 28 2a | 63 70 20 3d 3d 20 27 2e |...if (*|cp == '.|
|00005a90| 27 29 0a 09 09 09 2a 64 | 70 20 3d 20 27 2f 27 3b |')....*d|p = '/';|
|00005aa0| 0a 09 09 65 6c 73 65 0a | 09 09 09 2a 64 70 20 3d |...else.|...*dp =|
|00005ab0| 20 2a 63 70 3b 0a 09 73 | 70 72 69 6e 74 66 28 70 | *cp;..s|printf(p|
|00005ac0| 61 74 68 2c 20 22 25 73 | 2f 25 73 2f 25 6c 64 22 |ath, "%s|/%s/%ld"|
|00005ad0| 2c 20 4e 45 57 53 44 49 | 52 2c 20 6e 67 70 61 74 |, NEWSDI|R, ngpat|
|00005ae0| 68 2c 20 61 72 74 29 3b | 0a 09 69 66 20 28 73 74 |h, art);|..if (st|
|00005af0| 61 74 28 70 61 74 68 2c | 20 26 73 62 75 66 29 20 |at(path,| &sbuf) |
|00005b00| 3c 20 30 29 0a 09 09 72 | 65 74 75 72 6e 20 2d 31 |< 0)...r|eturn -1|
|00005b10| 3b 09 2f 2a 20 6c 69 6b | 65 6c 79 20 74 6f 20 62 |;./* lik|ely to b|
|00005b20| 65 20 63 6f 6d 6d 6f 6e | 2e 2e 2e 20 2a 2f 0a 09 |e common|... */..|
|00005b30| 73 70 72 69 6e 74 66 28 | 70 61 74 68 2c 20 22 25 |sprintf(|path, "%|
|00005b40| 73 2f 25 73 2f 68 69 6d | 73 67 22 2c 20 62 61 73 |s/%s/him|sg", bas|
|00005b50| 65 2c 20 64 65 73 74 29 | 3b 0a 09 69 66 20 28 28 |e, dest)|;..if ((|
|00005b60| 69 66 70 20 3d 20 66 6f | 70 65 6e 28 70 61 74 68 |ifp = fo|pen(path|
|00005b70| 2c 20 22 72 22 29 29 20 | 3d 3d 20 28 46 49 4c 45 |, "r")) |== (FILE|
|00005b80| 20 2a 29 20 30 29 20 7b | 0a 09 09 66 70 72 69 6e | *) 0) {|...fprin|
|00005b90| 74 66 28 73 74 64 65 72 | 72 2c 20 22 43 6f 6e 66 |tf(stder|r, "Conf|
|00005ba0| 65 72 65 6e 63 65 20 25 | 73 3a 20 6d 69 73 73 69 |erence %|s: missi|
|00005bb0| 6e 67 20 68 69 6d 73 67 | 2e 2e 2e 5c 6e 22 2c 20 |ng himsg|...\n", |
|00005bc0| 64 65 73 74 29 3b 0a 09 | 09 72 65 74 75 72 6e 20 |dest);..|.return |
|00005bd0| 32 3b 0a 09 7d 0a 09 66 | 67 65 74 73 28 74 65 6d |2;..}..f|gets(tem|
|00005be0| 70 2c 20 73 69 7a 65 6f | 66 20 74 65 6d 70 2c 20 |p, sizeo|f temp, |
|00005bf0| 69 66 70 29 3b 0a 09 66 | 63 6c 6f 73 65 28 69 66 |ifp);..f|close(if|
|00005c00| 70 29 3b 0a 09 69 66 20 | 28 28 6e 65 77 6d 73 67 |p);..if |((newmsg|
|00005c10| 20 3d 20 61 74 6f 6c 28 | 74 65 6d 70 29 29 20 3c | = atol(|temp)) <|
|00005c20| 20 30 29 20 7b 0a 09 09 | 66 70 72 69 6e 74 66 28 | 0) {...|fprintf(|
|00005c30| 73 74 64 65 72 72 2c 20 | 22 43 6f 6e 66 65 72 65 |stderr, |"Confere|
|00005c40| 6e 63 65 20 25 73 3a 20 | 69 6e 76 61 6c 69 64 20 |nce %s: |invalid |
|00005c50| 68 69 6d 73 67 2e 2e 2e | 5c 6e 22 2c 20 64 65 73 |himsg...|\n", des|
|00005c60| 74 29 3b 0a 09 09 72 65 | 74 75 72 6e 20 32 3b 0a |t);...re|turn 2;.|
|00005c70| 09 7d 0a 09 6e 65 77 6d | 73 67 2b 2b 3b 0a 09 73 |.}..newm|sg++;..s|
|00005c80| 70 72 69 6e 74 66 28 70 | 61 74 68 2c 20 22 25 73 |printf(p|ath, "%s|
|00005c90| 2f 25 73 2f 25 6c 64 22 | 2c 20 4e 45 57 53 44 49 |/%s/%ld"|, NEWSDI|
|00005ca0| 52 2c 20 6e 67 70 61 74 | 68 2c 20 61 72 74 29 3b |R, ngpat|h, art);|
|00005cb0| 0a 09 69 66 20 28 28 69 | 66 70 20 3d 20 66 6f 70 |..if ((i|fp = fop|
|00005cc0| 65 6e 28 70 61 74 68 2c | 20 22 72 22 29 29 20 3d |en(path,| "r")) =|
|00005cd0| 3d 20 28 46 49 4c 45 20 | 2a 29 20 30 29 20 7b 0a |= (FILE |*) 0) {.|
|00005ce0| 09 09 66 70 72 69 6e 74 | 66 28 73 74 64 65 72 72 |..fprint|f(stderr|
|00005cf0| 2c 20 22 41 72 65 20 79 | 6f 75 20 63 65 72 74 61 |, "Are y|ou certa|
|00005d00| 69 6e 20 74 68 61 74 20 | 79 6f 75 20 68 61 76 65 |in that |you have|
|00005d10| 20 70 65 72 6d 69 73 73 | 69 6f 6e 20 74 6f 20 61 | permiss|ion to a|
|00005d20| 63 63 65 73 73 20 6e 65 | 77 73 3f 5c 6e 22 29 3b |ccess ne|ws?\n");|
|00005d30| 0a 09 09 72 65 74 75 72 | 6e 20 33 3b 0a 09 7d 0a |...retur|n 3;..}.|
|00005d40| 09 73 70 72 69 6e 74 66 | 28 70 61 74 68 2c 20 22 |.sprintf|(path, "|
|00005d50| 25 73 2f 25 73 2f 25 6c | 64 22 2c 20 62 61 73 65 |%s/%s/%l|d", base|
|00005d60| 2c 20 64 65 73 74 2c 20 | 6e 65 77 6d 73 67 29 3b |, dest, |newmsg);|
|00005d70| 0a 09 69 66 20 28 73 74 | 61 74 28 70 61 74 68 2c |..if (st|at(path,|
|00005d80| 20 26 73 62 75 66 29 20 | 3d 3d 20 30 29 20 7b 0a | &sbuf) |== 0) {.|
|00005d90| 09 09 66 70 72 69 6e 74 | 66 28 73 74 64 65 72 72 |..fprint|f(stderr|
|00005da0| 2c 20 22 43 6f 6e 66 65 | 72 65 6e 63 65 20 25 73 |, "Confe|rence %s|
|00005db0| 3a 20 63 6f 72 72 75 70 | 74 65 64 20 28 68 69 6d |: corrup|ted (him|
|00005dc0| 73 67 20 69 6e 63 6f 72 | 72 65 63 74 29 5c 6e 22 |sg incor|rect)\n"|
|00005dd0| 2c 20 64 65 73 74 29 3b | 0a 09 09 66 63 6c 6f 73 |, dest);|...fclos|
|00005de0| 65 28 69 66 70 29 3b 0a | 09 09 72 65 74 75 72 6e |e(ifp);.|..return|
|00005df0| 20 34 3b 0a 09 7d 0a 09 | 69 66 20 28 28 6f 66 70 | 4;..}..|if ((ofp|
|00005e00| 20 3d 20 66 6f 70 65 6e | 28 70 61 74 68 2c 20 22 | = fopen|(path, "|
|00005e10| 77 22 29 29 20 3d 3d 20 | 28 46 49 4c 45 20 2a 29 |w")) == |(FILE *)|
|00005e20| 20 30 29 20 7b 0a 09 09 | 66 70 72 69 6e 74 66 28 | 0) {...|fprintf(|
|00005e30| 73 74 64 65 72 72 2c 20 | 22 43 6f 6e 66 65 72 65 |stderr, |"Confere|
|00005e40| 6e 63 65 20 25 73 3a 20 | 63 68 65 63 6b 20 70 65 |nce %s: |check pe|
|00005e50| 72 6d 69 73 73 69 6f 6e | 73 20 28 63 61 6e 27 74 |rmission|s (can't|
|00005e60| 20 63 72 65 61 74 65 20 | 6d 65 73 73 61 67 65 29 | create |message)|
|00005e70| 5c 6e 22 2c 20 64 65 73 | 74 29 3b 0a 09 09 66 63 |\n", des|t);...fc|
|00005e80| 6c 6f 73 65 28 69 66 70 | 29 3b 0a 09 09 72 65 74 |lose(ifp|);...ret|
|00005e90| 75 72 6e 20 35 3b 0a 09 | 7d 0a 09 77 68 69 6c 65 |urn 5;..|}..while|
|00005ea0| 20 28 66 67 65 74 73 28 | 74 65 6d 70 2c 20 73 69 | (fgets(|temp, si|
|00005eb0| 7a 65 6f 66 20 74 65 6d | 70 2c 20 69 66 70 29 20 |zeof tem|p, ifp) |
|00005ec0| 21 3d 20 28 63 68 61 72 | 20 2a 29 20 30 29 20 7b |!= (char| *) 0) {|
|00005ed0| 0a 09 09 66 70 75 74 73 | 28 74 65 6d 70 2c 20 6f |...fputs|(temp, o|
|00005ee0| 66 70 29 3b 0a 09 09 69 | 66 20 28 66 65 72 72 6f |fp);...i|f (ferro|
|00005ef0| 72 28 6f 66 70 29 29 20 | 7b 0a 09 09 09 66 70 72 |r(ofp)) |{....fpr|
|00005f00| 69 6e 74 66 28 73 74 64 | 65 72 72 2c 20 22 57 72 |intf(std|err, "Wr|
|00005f10| 69 74 65 20 65 72 72 6f | 72 20 6f 6e 20 25 73 2f |ite erro|r on %s/|
|00005f20| 25 6c 64 5c 6e 22 2c 20 | 64 65 73 74 2c 20 6e 65 |%ld\n", |dest, ne|
|00005f30| 77 6d 73 67 29 3b 0a 09 | 09 09 65 78 69 74 28 35 |wmsg);..|..exit(5|
|00005f40| 29 3b 09 2f 2a 20 66 61 | 74 61 6c 21 20 2a 2f 0a |);./* fa|tal! */.|
|00005f50| 09 09 7d 0a 09 7d 0a 09 | 69 66 20 28 66 65 72 72 |..}..}..|if (ferr|
|00005f60| 6f 72 28 69 66 70 29 29 | 20 7b 0a 09 09 66 70 72 |or(ifp))| {...fpr|
|00005f70| 69 6e 74 66 28 73 74 64 | 65 72 72 2c 20 22 52 65 |intf(std|err, "Re|
|00005f80| 61 64 20 65 72 72 6f 72 | 20 6f 6e 20 25 73 2f 25 |ad error| on %s/%|
|00005f90| 6c 64 5c 6e 22 2c 20 6e | 67 2c 20 61 72 74 29 3b |ld\n", n|g, art);|
|00005fa0| 0a 09 09 66 63 6c 6f 73 | 65 28 69 66 70 29 3b 0a |...fclos|e(ifp);.|
|00005fb0| 09 09 66 63 6c 6f 73 65 | 28 6f 66 70 29 3b 0a 09 |..fclose|(ofp);..|
|00005fc0| 09 72 65 74 75 72 6e 20 | 36 3b 0a 09 7d 0a 09 66 |.return |6;..}..f|
|00005fd0| 63 6c 6f 73 65 28 69 66 | 70 29 3b 0a 09 66 63 6c |close(if|p);..fcl|
|00005fe0| 6f 73 65 28 6f 66 70 29 | 3b 0a 09 73 70 72 69 6e |ose(ofp)|;..sprin|
|00005ff0| 74 66 28 70 61 74 68 2c | 20 22 25 73 2f 25 73 2f |tf(path,| "%s/%s/|
|00006000| 68 69 6d 73 67 22 2c 20 | 62 61 73 65 2c 20 64 65 |himsg", |base, de|
|00006010| 73 74 29 3b 0a 09 69 66 | 20 28 28 69 66 70 20 3d |st);..if| ((ifp =|
|00006020| 20 66 6f 70 65 6e 28 70 | 61 74 68 2c 20 22 77 22 | fopen(p|ath, "w"|
|00006030| 29 29 20 3d 3d 20 28 46 | 49 4c 45 20 2a 29 20 30 |)) == (F|ILE *) 0|
|00006040| 29 20 7b 0a 09 09 66 70 | 72 69 6e 74 66 28 73 74 |) {...fp|rintf(st|
|00006050| 64 65 72 72 2c 20 22 43 | 6f 6e 66 65 72 65 6e 63 |derr, "C|onferenc|
|00006060| 65 20 25 73 3a 20 63 68 | 65 63 6b 20 70 65 72 6d |e %s: ch|eck perm|
|00006070| 69 73 73 69 6f 6e 73 20 | 6f 6e 20 68 69 6d 73 67 |issions |on himsg|
|00006080| 2e 2e 2e 5c 6e 22 2c 20 | 64 65 73 74 29 3b 0a 09 |...\n", |dest);..|
|00006090| 09 72 65 74 75 72 6e 20 | 32 3b 0a 09 7d 0a 09 66 |.return |2;..}..f|
|000060a0| 70 72 69 6e 74 66 28 69 | 66 70 2c 20 22 25 6c 64 |printf(i|fp, "%ld|
|000060b0| 5c 6e 22 2c 20 6e 65 77 | 6d 73 67 29 3b 0a 09 66 |\n", new|msg);..f|
|000060c0| 63 6c 6f 73 65 28 69 66 | 70 29 3b 0a 09 73 70 72 |close(if|p);..spr|
|000060d0| 69 6e 74 66 28 70 61 74 | 68 2c 20 22 2f 74 6d 70 |intf(pat|h, "/tmp|
|000060e0| 2f 75 61 6e 25 30 35 64 | 22 2c 20 67 65 74 70 69 |/uan%05d|", getpi|
|000060f0| 64 28 29 29 3b 0a 09 69 | 66 20 28 28 6f 66 70 20 |d());..i|f ((ofp |
|00006100| 3d 20 66 6f 70 65 6e 28 | 70 61 74 68 2c 20 22 77 |= fopen(|path, "w|
|00006110| 22 29 29 20 3d 3d 20 28 | 46 49 4c 45 20 2a 29 20 |")) == (|FILE *) |
|00006120| 30 29 20 7b 0a 09 09 66 | 70 72 69 6e 74 66 28 73 |0) {...f|printf(s|
|00006130| 74 64 65 72 72 2c 20 22 | 57 68 6f 20 6d 6f 76 65 |tderr, "|Who move|
|00006140| 64 20 2f 74 6d 70 3f 21 | 5c 6e 22 29 3b 0a 09 09 |d /tmp?!|\n");...|
|00006150| 72 65 74 75 72 6e 20 31 | 36 3b 0a 09 7d 0a 09 73 |return 1|6;..}..s|
|00006160| 70 72 69 6e 74 66 28 70 | 61 74 68 2c 20 22 25 73 |printf(p|ath, "%s|
|00006170| 2f 25 73 2f 25 73 22 2c | 20 62 61 73 65 2c 20 64 |/%s/%s",| base, d|
|00006180| 65 73 74 2c 20 4e 45 57 | 53 52 43 29 3b 0a 09 64 |est, NEW|SRC);..d|
|00006190| 70 20 3d 20 22 2d 22 3b | 0a 09 69 66 20 28 28 69 |p = "-";|..if ((i|
|000061a0| 66 70 20 3d 20 66 6f 70 | 65 6e 28 70 61 74 68 2c |fp = fop|en(path,|
|000061b0| 20 22 72 22 29 29 20 21 | 3d 20 28 46 49 4c 45 20 | "r")) !|= (FILE |
|000061c0| 2a 29 20 30 29 20 7b 0a | 09 09 77 68 69 6c 65 20 |*) 0) {.|..while |
|000061d0| 28 66 67 65 74 73 28 74 | 65 6d 70 2c 20 73 69 7a |(fgets(t|emp, siz|
|000061e0| 65 6f 66 20 74 65 6d 70 | 2c 20 69 66 70 29 20 21 |eof temp|, ifp) !|
|000061f0| 3d 20 28 63 68 61 72 20 | 2a 29 20 30 29 20 7b 0a |= (char |*) 0) {.|
|00006200| 09 09 09 66 6f 72 20 28 | 63 70 20 3d 20 74 65 6d |...for (|cp = tem|
|00006210| 70 3b 20 2a 63 70 20 21 | 3d 20 27 5c 6e 27 20 26 |p; *cp !|= '\n' &|
|00006220| 26 20 2a 63 70 20 21 3d | 20 27 3a 27 3b 20 63 70 |& *cp !=| ':'; cp|
|00006230| 2b 2b 29 0a 09 09 09 09 | 3b 0a 09 09 09 69 66 20 |++).....|;....if |
|00006240| 28 2a 63 70 20 3d 3d 20 | 27 5c 6e 27 29 0a 09 09 |(*cp == |'\n')...|
|00006250| 09 09 63 6f 6e 74 69 6e | 75 65 3b 09 2f 2a 20 73 |..contin|ue;./* s|
|00006260| 69 6c 65 6e 74 20 63 6c | 65 61 6e 75 70 20 2a 2f |ilent cl|eanup */|
|00006270| 0a 09 09 09 65 6c 73 65 | 0a 09 09 09 09 2a 63 70 |....else|.....*cp|
|00006280| 20 3d 20 27 5c 30 27 3b | 0a 09 09 09 69 66 20 28 | = '\0';|....if (|
|00006290| 73 74 72 63 6d 70 28 74 | 65 6d 70 2c 20 6e 67 29 |strcmp(t|emp, ng)|
|000062a0| 20 3d 3d 20 30 29 20 7b | 0a 09 09 09 09 73 70 72 | == 0) {|.....spr|
|000062b0| 69 6e 74 66 28 74 65 6d | 70 2c 20 22 25 73 3a 20 |intf(tem|p, "%s: |
|000062c0| 25 6c 64 5c 6e 22 2c 20 | 6e 67 2c 20 61 72 74 29 |%ld\n", |ng, art)|
|000062d0| 3b 0a 09 09 09 09 64 70 | 20 3d 20 22 23 22 3b 0a |;.....dp| = "#";.|
|000062e0| 09 09 09 7d 0a 09 09 09 | 65 6c 73 65 0a 09 09 09 |...}....|else....|
|000062f0| 09 2a 63 70 20 3d 20 27 | 3a 27 3b 0a 09 09 09 66 |.*cp = '|:';....f|
|00006300| 70 75 74 73 28 74 65 6d | 70 2c 20 6f 66 70 29 3b |puts(tem|p, ofp);|
|00006310| 0a 09 09 7d 0a 09 09 66 | 63 6c 6f 73 65 28 69 66 |...}...f|close(if|
|00006320| 70 29 3b 0a 09 7d 0a 09 | 69 66 20 28 2a 64 70 20 |p);..}..|if (*dp |
|00006330| 21 3d 20 27 23 27 29 0a | 09 09 66 70 72 69 6e 74 |!= '#').|..fprint|
|00006340| 66 28 6f 66 70 2c 20 22 | 25 73 3a 20 25 6c 64 5c |f(ofp, "|%s: %ld\|
|00006350| 6e 22 2c 20 6e 67 2c 20 | 61 72 74 29 3b 0a 09 66 |n", ng, |art);..f|
|00006360| 63 6c 6f 73 65 28 6f 66 | 70 29 3b 0a 09 73 70 72 |close(of|p);..spr|
|00006370| 69 6e 74 66 28 70 61 74 | 68 2c 20 22 2f 74 6d 70 |intf(pat|h, "/tmp|
|00006380| 2f 75 61 6e 25 30 35 64 | 22 2c 20 67 65 74 70 69 |/uan%05d|", getpi|
|00006390| 64 28 29 29 3b 0a 09 69 | 66 20 28 28 69 66 70 20 |d());..i|f ((ifp |
|000063a0| 3d 20 66 6f 70 65 6e 28 | 70 61 74 68 2c 20 22 72 |= fopen(|path, "r|
|000063b0| 22 29 29 20 3d 3d 20 28 | 46 49 4c 45 20 2a 29 20 |")) == (|FILE *) |
|000063c0| 30 29 20 7b 0a 09 09 66 | 70 72 69 6e 74 66 28 73 |0) {...f|printf(s|
|000063d0| 74 64 65 72 72 2c 20 22 | 43 61 6e 27 74 20 72 65 |tderr, "|Can't re|
|000063e0| 6f 70 65 6e 20 74 65 6d | 70 20 66 69 6c 65 2c 20 |open tem|p file, |
|000063f0| 61 62 6f 72 74 69 6e 67 | 2e 2e 2e 5c 6e 22 29 3b |aborting|...\n");|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.