home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
You can browse this item here: derez
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, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| 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/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 75 75 | 6e 65 74 21 72 73 0a 46 |Path: uu|net!rs.F|
|00000010| 72 6f 6d 3a 20 72 73 40 | 75 75 6e 65 74 2e 55 55 |rom: rs@|uunet.UU|
|00000020| 2e 4e 45 54 20 28 52 69 | 63 68 20 53 61 6c 7a 29 |.NET (Ri|ch Salz)|
|00000030| 0a 4e 65 77 73 67 72 6f | 75 70 73 3a 20 63 6f 6d |.Newsgro|ups: com|
|00000040| 70 2e 73 6f 75 72 63 65 | 73 2e 75 6e 69 78 0a 53 |p.source|s.unix.S|
|00000050| 75 62 6a 65 63 74 3a 20 | 76 31 30 69 30 33 30 3a |ubject: |v10i030:|
|00000060| 20 20 46 69 6e 64 20 61 | 6e 64 20 72 65 6d 6f 76 | Find a|nd remov|
|00000070| 65 20 73 74 61 6c 65 20 | 66 69 6c 65 73 20 66 72 |e stale |files fr|
|00000080| 6f 6d 20 61 20 64 69 73 | 6b 2e 0a 4d 65 73 73 61 |om a dis|k..Messa|
|00000090| 67 65 2d 49 44 3a 20 3c | 35 32 32 40 75 75 6e 65 |ge-ID: <|522@uune|
|000000a0| 74 2e 55 55 2e 4e 45 54 | 3e 0a 44 61 74 65 3a 20 |t.UU.NET|>.Date: |
|000000b0| 32 20 4a 75 6c 20 38 37 | 20 30 33 3a 30 34 3a 34 |2 Jul 87| 03:04:4|
|000000c0| 39 20 47 4d 54 0a 4f 72 | 67 61 6e 69 7a 61 74 69 |9 GMT.Or|ganizati|
|000000d0| 6f 6e 3a 20 55 55 4e 45 | 54 20 43 6f 6d 6d 75 6e |on: UUNE|T Commun|
|000000e0| 69 63 61 74 69 6f 6e 73 | 20 53 65 72 76 69 63 65 |ications| Service|
|000000f0| 73 2c 20 41 72 6c 69 6e | 67 74 6f 6e 2c 20 56 41 |s, Arlin|gton, VA|
|00000100| 0a 4c 69 6e 65 73 3a 20 | 34 31 39 0a 41 70 70 72 |.Lines: |419.Appr|
|00000110| 6f 76 65 64 3a 20 72 73 | 40 75 75 6e 65 74 2e 75 |oved: rs|@uunet.u|
|00000120| 75 2e 6e 65 74 0a 0a 53 | 75 62 6d 69 74 74 65 64 |u.net..S|ubmitted|
|00000130| 20 62 79 3a 20 6d 61 64 | 64 6f 67 21 72 6f 6f 74 | by: mad|dog!root|
|00000140| 0a 4d 6f 64 2e 53 6f 75 | 72 63 65 73 3a 20 56 6f |.Mod.Sou|rces: Vo|
|00000150| 6c 75 6d 65 20 31 30 2c | 20 4e 75 6d 62 65 72 20 |lume 10,| Number |
|00000160| 33 30 0a 41 72 63 68 69 | 76 65 2d 4e 61 6d 65 3a |30.Archi|ve-Name:|
|00000170| 20 64 65 72 65 7a 0a 0a | 44 65 72 65 7a 2c 20 61 | derez..|Derez, a|
|00000180| 20 70 72 6f 67 72 61 6d | 20 74 6f 20 66 69 6e 64 | program| to find|
|00000190| 20 61 6e 64 20 65 6e 6d | 6f 75 72 67 65 20 73 74 | and enm|ourge st|
|000001a0| 61 6c 65 20 66 69 6c 65 | 73 20 6f 6e 20 61 20 64 |ale file|s on a d|
|000001b0| 69 73 6b 2e 0a 0a 5b 20 | 20 54 68 69 73 20 69 73 |isk...[ | This is|
|000001c0| 20 67 72 65 61 74 20 2d | 2d 20 6d 79 20 66 69 72 | great -|- my fir|
|000001d0| 73 74 20 22 61 6e 6f 6e | 79 6d 6f 75 73 22 20 63 |st "anon|ymous" c|
|000001e0| 6f 6e 74 72 69 62 75 74 | 69 6f 6e 2e 20 20 49 20 |ontribut|ion. I |
|000001f0| 63 6f 75 6c 64 6e 27 74 | 20 66 69 6e 64 0a 20 20 |couldn't| find. |
|00000200| 20 22 65 6e 6d 6f 75 72 | 67 65 22 20 69 6e 20 6d | "enmour|ge" in m|
|00000210| 79 20 57 65 62 73 74 65 | 72 27 73 20 55 6e 69 76 |y Webste|r's Univ|
|00000220| 65 72 73 61 6c 3b 20 69 | 74 20 61 70 70 61 72 65 |ersal; i|t appare|
|00000230| 6e 74 6c 79 20 6d 65 61 | 6e 73 20 72 65 6d 6f 76 |ntly mea|ns remov|
|00000240| 65 2e 0a 20 20 20 2d 2d | 20 20 72 24 20 5d 0a 0a |e.. --| r$ ]..|
|00000250| 23 21 20 2f 62 69 6e 2f | 73 68 0a 23 20 54 68 69 |#! /bin/|sh.# Thi|
|00000260| 73 20 69 73 20 61 20 73 | 68 65 6c 6c 20 61 72 63 |s is a s|hell arc|
|00000270| 68 69 76 65 2e 20 20 52 | 65 6d 6f 76 65 20 61 6e |hive. R|emove an|
|00000280| 79 74 68 69 6e 67 20 62 | 65 66 6f 72 65 20 74 68 |ything b|efore th|
|00000290| 69 73 20 6c 69 6e 65 2c | 20 74 68 65 6e 20 75 6e |is line,| then un|
|000002a0| 70 61 63 6b 0a 23 20 69 | 74 20 62 79 20 73 61 76 |pack.# i|t by sav|
|000002b0| 69 6e 67 20 69 74 20 69 | 6e 74 6f 20 61 20 66 69 |ing it i|nto a fi|
|000002c0| 6c 65 20 61 6e 64 20 74 | 79 70 69 6e 67 20 22 73 |le and t|yping "s|
|000002d0| 68 20 66 69 6c 65 22 2e | 20 20 54 6f 20 6f 76 65 |h file".| To ove|
|000002e0| 72 77 72 69 74 65 20 65 | 78 69 73 74 69 6e 67 0a |rwrite e|xisting.|
|000002f0| 23 20 66 69 6c 65 73 2c | 20 74 79 70 65 20 22 73 |# files,| type "s|
|00000300| 68 20 66 69 6c 65 20 2d | 63 22 2e 20 20 59 6f 75 |h file -|c". You|
|00000310| 20 63 61 6e 20 61 6c 73 | 6f 20 66 65 65 64 20 74 | can als|o feed t|
|00000320| 68 69 73 20 61 73 20 73 | 74 61 6e 64 61 72 64 20 |his as s|tandard |
|00000330| 69 6e 70 75 74 20 76 69 | 61 0a 23 20 75 6e 73 68 |input vi|a.# unsh|
|00000340| 61 72 2c 20 6f 72 20 62 | 79 20 74 79 70 69 6e 67 |ar, or b|y typing|
|00000350| 20 22 73 68 20 3c 66 69 | 6c 65 22 2c 20 65 2e 67 | "sh <fi|le", e.g|
|00000360| 2e 2e 20 20 49 66 20 74 | 68 69 73 20 61 72 63 68 |.. If t|his arch|
|00000370| 69 76 65 20 69 73 20 63 | 6f 6d 70 6c 65 74 65 2c |ive is c|omplete,|
|00000380| 20 79 6f 75 0a 23 20 77 | 69 6c 6c 20 73 65 65 20 | you.# w|ill see |
|00000390| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 6d 65 |the foll|owing me|
|000003a0| 73 73 61 67 65 20 61 74 | 20 74 68 65 20 65 6e 64 |ssage at| the end|
|000003b0| 3a 0a 23 09 09 22 45 6e | 64 20 6f 66 20 73 68 65 |:.#.."En|d of she|
|000003c0| 6c 6c 20 61 72 63 68 69 | 76 65 2e 22 0a 23 20 43 |ll archi|ve.".# C|
|000003d0| 6f 6e 74 65 6e 74 73 3a | 20 20 52 45 41 44 4d 45 |ontents:| README|
|000003e0| 20 6d 61 6b 65 66 69 6c | 65 20 64 65 72 65 7a 2e | makefil|e derez.|
|000003f0| 31 20 72 65 61 64 62 79 | 74 65 2e 31 20 64 65 72 |1 readby|te.1 der|
|00000400| 65 7a 2e 63 20 72 65 61 | 64 62 79 74 65 2e 63 0a |ez.c rea|dbyte.c.|
|00000410| 23 20 57 72 61 70 70 65 | 64 20 62 79 20 72 73 40 |# Wrappe|d by rs@|
|00000420| 75 75 6e 65 74 20 6f 6e | 20 57 65 64 20 4a 75 6c |uunet on| Wed Jul|
|00000430| 20 20 31 20 32 32 3a 35 | 32 3a 32 31 20 31 39 38 | 1 22:5|2:21 198|
|00000440| 37 0a 50 41 54 48 3d 2f | 62 69 6e 3a 2f 75 73 72 |7.PATH=/|bin:/usr|
|00000450| 2f 62 69 6e 3a 2f 75 73 | 72 2f 75 63 62 20 3b 20 |/bin:/us|r/ucb ; |
|00000460| 65 78 70 6f 72 74 20 50 | 41 54 48 0a 69 66 20 74 |export P|ATH.if t|
|00000470| 65 73 74 20 2d 66 20 52 | 45 41 44 4d 45 20 2d 61 |est -f R|EADME -a|
|00000480| 20 22 24 7b 31 7d 22 20 | 21 3d 20 22 2d 63 22 20 | "${1}" |!= "-c" |
|00000490| 3b 20 74 68 65 6e 20 0a | 20 20 65 63 68 6f 20 73 |; then .| echo s|
|000004a0| 68 61 72 3a 20 57 69 6c | 6c 20 6e 6f 74 20 6f 76 |har: Wil|l not ov|
|000004b0| 65 72 2d 77 72 69 74 65 | 20 65 78 69 73 74 69 6e |er-write| existin|
|000004c0| 67 20 66 69 6c 65 20 5c | 22 52 45 41 44 4d 45 5c |g file \|"README\|
|000004d0| 22 0a 65 6c 73 65 0a 65 | 63 68 6f 20 73 68 61 72 |".else.e|cho shar|
|000004e0| 3a 20 45 78 74 72 61 63 | 74 69 6e 67 20 5c 22 52 |: Extrac|ting \"R|
|000004f0| 45 41 44 4d 45 5c 22 20 | 5c 28 31 31 34 30 20 63 |EADME\" |\(1140 c|
|00000500| 68 61 72 61 63 74 65 72 | 73 5c 29 0a 73 65 64 20 |haracter|s\).sed |
|00000510| 22 73 2f 5e 58 2f 2f 22 | 20 3e 52 45 41 44 4d 45 |"s/^X//"| >README|
|00000520| 20 3c 3c 27 45 4e 44 5f | 4f 46 5f 52 45 41 44 4d | <<'END_|OF_READM|
|00000530| 45 27 0a 58 44 65 72 65 | 7a 2c 20 61 20 70 72 6f |E'.XDere|z, a pro|
|00000540| 67 72 61 6d 20 74 6f 20 | 66 69 6e 64 20 61 6e 64 |gram to |find and|
|00000550| 20 65 6e 6d 6f 75 72 67 | 65 20 73 74 61 6c 65 20 | enmourg|e stale |
|00000560| 66 69 6c 65 73 20 6f 6e | 20 61 20 64 69 73 6b 2e |files on| a disk.|
|00000570| 0a 58 0a 58 54 68 69 73 | 20 63 6f 64 65 20 69 73 |.X.XThis| code is|
|00000580| 20 65 78 70 6c 69 63 69 | 74 6c 79 20 70 6c 61 63 | explici|tly plac|
|00000590| 65 64 20 69 6e 20 74 68 | 65 20 70 75 62 6c 69 63 |ed in th|e public|
|000005a0| 20 64 6f 6d 61 69 6e 20 | 62 79 20 74 68 65 20 61 | domain |by the a|
|000005b0| 75 74 68 6f 72 0a 58 61 | 6e 64 20 6d 61 79 20 62 |uthor.Xa|nd may b|
|000005c0| 65 20 75 73 65 64 20 66 | 6f 72 20 66 75 6e 20 6f |e used f|or fun o|
|000005d0| 72 20 70 72 6f 66 69 74 | 2e 20 20 49 74 20 69 73 |r profit|. It is|
|000005e0| 20 65 78 70 6c 69 63 69 | 74 6c 79 20 6e 6f 74 20 | explici|tly not |
|000005f0| 63 6f 70 79 72 69 67 68 | 74 65 64 0a 58 61 6e 64 |copyrigh|ted.Xand|
|00000600| 20 63 6f 6e 74 61 69 6e | 73 20 6e 6f 20 72 65 66 | contain|s no ref|
|00000610| 65 72 65 6e 63 65 73 20 | 74 6f 20 74 68 65 20 61 |erences |to the a|
|00000620| 75 74 68 6f 72 27 73 20 | 74 72 75 65 20 6e 61 6d |uthor's |true nam|
|00000630| 65 2e 20 20 54 68 69 73 | 20 69 73 20 62 79 0a 58 |e. This| is by.X|
|00000640| 64 65 73 69 67 6e 20 61 | 73 20 74 68 65 20 61 75 |design a|s the au|
|00000650| 74 68 6f 72 20 64 6f 65 | 73 20 6e 6f 74 20 77 68 |thor doe|s not wh|
|00000660| 61 74 20 74 6f 20 62 65 | 63 6f 6d 65 20 22 6b 6e |at to be|come "kn|
|00000670| 6f 77 6e 22 20 61 73 20 | 74 68 65 20 61 75 74 68 |own" as |the auth|
|00000680| 6f 72 20 6f 66 0a 58 44 | 65 72 65 7a 2e 0a 58 0a |or of.XD|erez..X.|
|00000690| 58 41 6e 79 6f 6e 65 20 | 68 61 76 69 6e 67 20 70 |XAnyone |having p|
|000006a0| 72 6f 62 6c 65 6d 73 20 | 77 69 74 68 20 64 65 72 |roblems |with der|
|000006b0| 65 7a 20 73 68 6f 75 6c | 64 20 73 65 6e 64 20 61 |ez shoul|d send a|
|000006c0| 20 6d 61 69 6c 20 72 65 | 71 75 65 73 74 20 74 6f | mail re|quest to|
|000006d0| 20 6d 61 64 64 6f 67 21 | 72 6f 6f 74 0a 58 66 6f | maddog!|root.Xfo|
|000006e0| 72 20 70 6f 73 73 69 62 | 6c 65 20 68 65 6c 70 20 |r possib|le help |
|000006f0| 6f 72 20 73 75 67 67 65 | 73 74 69 6f 6e 73 2e 20 |or sugge|stions. |
|00000700| 20 41 6e 79 6f 6e 65 20 | 77 68 6f 20 66 69 78 65 | Anyone |who fixe|
|00000710| 73 20 73 6f 6d 65 20 6f | 66 20 64 65 72 65 7a 27 |s some o|f derez'|
|00000720| 73 20 62 75 67 73 20 6f | 72 0a 58 69 6e 61 64 65 |s bugs o|r.Xinade|
|00000730| 71 75 61 63 69 65 73 20 | 69 73 20 69 6e 76 69 74 |quacies |is invit|
|00000740| 65 64 20 74 6f 20 73 65 | 6e 64 20 6d 61 64 64 6f |ed to se|nd maddo|
|00000750| 67 21 72 6f 6f 74 20 61 | 20 63 6f 70 79 20 6f 66 |g!root a| copy of|
|00000760| 20 74 68 65 20 70 61 74 | 63 68 65 73 2e 20 20 57 | the pat|ches. W|
|00000770| 65 20 63 61 6e 0a 58 61 | 6c 77 61 79 73 20 75 73 |e can.Xa|lways us|
|00000780| 65 20 61 20 62 65 74 74 | 65 72 2c 20 62 75 74 20 |e a bett|er, but |
|00000790| 6e 6f 74 20 6e 65 63 65 | 73 73 61 72 69 6c 79 20 |not nece|ssarily |
|000007a0| 6c 65 73 73 20 44 72 61 | 63 6f 6e 69 61 6e 2c 20 |less Dra|conian, |
|000007b0| 64 65 72 65 7a 20 6f 6e | 20 6f 75 72 20 73 79 73 |derez on| our sys|
|000007c0| 74 65 6d 2e 0a 58 0a 58 | 44 65 72 65 7a 20 64 6f |tem..X.X|Derez do|
|000007d0| 65 73 20 6e 6f 74 20 63 | 6f 6e 74 61 69 6e 20 61 |es not c|ontain a|
|000007e0| 20 6d 65 63 68 61 6e 69 | 73 6d 20 74 6f 20 77 61 | mechani|sm to wa|
|000007f0| 72 6e 20 75 73 65 72 73 | 20 61 62 6f 75 74 20 74 |rn users| about t|
|00000800| 68 65 20 69 6d 70 65 6e | 64 69 6e 67 0a 58 72 65 |he impen|ding.Xre|
|00000810| 6d 6f 76 61 6c 20 6f 66 | 20 73 74 61 6c 65 20 66 |moval of| stale f|
|00000820| 69 6c 65 73 2e 20 20 57 | 65 20 68 61 76 65 20 66 |iles. W|e have f|
|00000830| 6f 75 6e 64 20 74 68 61 | 74 20 64 6f 69 6e 67 20 |ound tha|t doing |
|00000840| 74 68 69 73 20 6f 6e 6c | 79 20 69 6e 76 69 74 65 |this onl|y invite|
|00000850| 73 20 74 68 65 0a 58 75 | 73 65 72 73 20 74 6f 20 |s the.Xu|sers to |
|00000860| 67 6f 20 61 6e 64 20 64 | 65 66 65 61 74 20 74 68 |go and d|efeat th|
|00000870| 65 20 65 66 66 65 63 74 | 73 20 6f 66 20 64 65 72 |e effect|s of der|
|00000880| 65 7a 20 74 6f 74 61 6c | 6c 79 20 77 69 74 68 6f |ez total|ly witho|
|00000890| 75 74 20 61 72 63 68 69 | 76 69 6e 67 0a 58 74 68 |ut archi|ving.Xth|
|000008a0| 65 69 72 20 73 74 61 6c | 65 20 66 69 6c 65 73 20 |eir stal|e files |
|000008b0| 74 6f 20 74 61 70 65 20 | 61 6e 64 20 72 65 6d 6f |to tape |and remo|
|000008c0| 76 69 6e 67 20 74 68 65 | 6d 20 66 72 6f 6d 20 64 |ving the|m from d|
|000008d0| 69 73 6b 2e 20 20 4f 6e | 20 73 79 73 74 65 6d 73 |isk. On| systems|
|000008e0| 20 77 69 74 68 0a 58 63 | 6f 6f 70 65 72 61 74 69 | with.Xc|ooperati|
|000008f0| 76 65 20 75 73 65 72 73 | 2c 20 70 65 72 68 61 70 |ve users|, perhap|
|00000900| 73 20 61 20 73 65 70 61 | 72 61 74 65 20 70 72 6f |s a sepa|rate pro|
|00000910| 67 72 61 6d 20 74 68 61 | 74 20 73 65 6e 64 73 20 |gram tha|t sends |
|00000920| 75 73 65 72 73 20 6d 61 | 69 6c 20 61 62 6f 75 74 |users ma|il about|
|00000930| 0a 58 74 68 65 69 72 20 | 73 74 61 6c 65 20 66 69 |.Xtheir |stale fi|
|00000940| 6c 65 73 2c 20 6c 69 73 | 74 69 6e 67 20 74 68 65 |les, lis|ting the|
|00000950| 69 72 20 70 61 74 68 20 | 6e 61 6d 65 73 20 6d 69 |ir path |names mi|
|00000960| 67 68 74 20 62 65 20 68 | 65 6c 70 66 75 6c 2e 0a |ght be h|elpful..|
|00000970| 58 0a 58 58 58 58 58 58 | 58 58 58 58 58 58 58 58 |X.XXXXXX|XXXXXXXX|
|00000980| 58 58 58 58 58 58 58 20 | 43 75 74 20 68 65 72 65 |XXXXXXX |Cut here|
|00000990| 20 61 6e 64 20 66 65 65 | 64 20 69 74 20 74 6f 20 | and fee|d it to |
|000009a0| 2f 62 69 6e 2f 73 68 20 | 58 58 58 58 58 58 58 58 |/bin/sh |XXXXXXXX|
|000009b0| 58 58 58 58 58 58 58 58 | 58 58 58 0a 45 4e 44 5f |XXXXXXXX|XXX.END_|
|000009c0| 4f 46 5f 52 45 41 44 4d | 45 0a 69 66 20 74 65 73 |OF_READM|E.if tes|
|000009d0| 74 20 31 31 34 30 20 2d | 6e 65 20 60 77 63 20 2d |t 1140 -|ne `wc -|
|000009e0| 63 20 3c 52 45 41 44 4d | 45 60 3b 20 74 68 65 6e |c <READM|E`; then|
|000009f0| 0a 20 20 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |. ech|o shar: |
|00000a00| 5c 22 52 45 41 44 4d 45 | 5c 22 20 75 6e 70 61 63 |\"README|\" unpac|
|00000a10| 6b 65 64 20 77 69 74 68 | 20 77 72 6f 6e 67 20 73 |ked with| wrong s|
|00000a20| 69 7a 65 21 0a 66 69 0a | 23 20 65 6e 64 20 6f 66 |ize!.fi.|# end of|
|00000a30| 20 6f 76 65 72 77 72 69 | 74 69 6e 67 20 63 68 65 | overwri|ting che|
|00000a40| 63 6b 0a 66 69 0a 69 66 | 20 74 65 73 74 20 2d 66 |ck.fi.if| test -f|
|00000a50| 20 6d 61 6b 65 66 69 6c | 65 20 2d 61 20 22 24 7b | makefil|e -a "${|
|00000a60| 31 7d 22 20 21 3d 20 22 | 2d 63 22 20 3b 20 74 68 |1}" != "|-c" ; th|
|00000a70| 65 6e 20 0a 20 20 65 63 | 68 6f 20 73 68 61 72 3a |en . ec|ho shar:|
|00000a80| 20 57 69 6c 6c 20 6e 6f | 74 20 6f 76 65 72 2d 77 | Will no|t over-w|
|00000a90| 72 69 74 65 20 65 78 69 | 73 74 69 6e 67 20 66 69 |rite exi|sting fi|
|00000aa0| 6c 65 20 5c 22 6d 61 6b | 65 66 69 6c 65 5c 22 0a |le \"mak|efile\".|
|00000ab0| 65 6c 73 65 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |else.ech|o shar: |
|00000ac0| 45 78 74 72 61 63 74 69 | 6e 67 20 5c 22 6d 61 6b |Extracti|ng \"mak|
|00000ad0| 65 66 69 6c 65 5c 22 20 | 5c 28 34 31 34 20 63 68 |efile\" |\(414 ch|
|00000ae0| 61 72 61 63 74 65 72 73 | 5c 29 0a 73 65 64 20 22 |aracters|\).sed "|
|00000af0| 73 2f 5e 58 2f 2f 22 20 | 3e 6d 61 6b 65 66 69 6c |s/^X//" |>makefil|
|00000b00| 65 20 3c 3c 27 45 4e 44 | 5f 4f 46 5f 6d 61 6b 65 |e <<'END|_OF_make|
|00000b10| 66 69 6c 65 27 0a 58 43 | 46 4c 41 47 53 20 3d 20 |file'.XC|FLAGS = |
|00000b20| 2d 4f 0a 58 50 52 4f 47 | 53 20 3d 20 64 65 72 65 |-O.XPROG|S = dere|
|00000b30| 7a 20 72 65 61 64 62 79 | 74 65 0a 58 4d 41 4e 53 |z readby|te.XMANS|
|00000b40| 20 3d 20 64 65 72 65 7a | 2e 31 20 72 65 61 64 62 | = derez|.1 readb|
|00000b50| 79 74 65 2e 31 0a 58 0a | 58 61 6c 6c 20 3a 20 24 |yte.1.X.|Xall : $|
|00000b60| 28 50 52 4f 47 53 29 0a | 58 0a 58 69 6e 73 74 61 |(PROGS).|X.Xinsta|
|00000b70| 6c 6c 20 3a 20 61 6c 6c | 20 24 28 4d 41 4e 53 29 |ll : all| $(MANS)|
|00000b80| 0a 58 09 69 6e 73 74 61 | 6c 6c 20 2d 63 20 64 65 |.X.insta|ll -c de|
|00000b90| 72 65 7a 20 2f 75 73 72 | 2f 6c 6f 63 61 6c 2f 62 |rez /usr|/local/b|
|00000ba0| 69 6e 0a 58 09 69 6e 73 | 74 61 6c 6c 20 2d 63 20 |in.X.ins|tall -c |
|00000bb0| 2d 6d 20 36 34 34 20 64 | 65 72 65 7a 2e 31 20 2f |-m 644 d|erez.1 /|
|00000bc0| 75 73 72 2f 6d 61 6e 2f | 6d 61 6e 6c 2f 64 65 72 |usr/man/|manl/der|
|00000bd0| 65 7a 2e 6c 0a 58 09 69 | 6e 73 74 61 6c 6c 20 2d |ez.l.X.i|nstall -|
|00000be0| 63 20 72 65 61 64 62 79 | 74 65 20 2f 75 73 72 2f |c readby|te /usr/|
|00000bf0| 6c 6f 63 61 6c 2f 62 69 | 6e 0a 58 09 69 6e 73 74 |local/bi|n.X.inst|
|00000c00| 61 6c 6c 20 2d 63 20 2d | 6d 20 36 34 34 20 72 65 |all -c -|m 644 re|
|00000c10| 61 64 62 79 74 65 2e 31 | 20 2f 75 73 72 2f 6d 61 |adbyte.1| /usr/ma|
|00000c20| 6e 2f 6d 61 6e 6c 2f 72 | 65 61 64 62 79 74 65 2e |n/manl/r|eadbyte.|
|00000c30| 6c 0a 58 0a 58 63 6c 65 | 61 6e 20 3a 0a 58 09 72 |l.X.Xcle|an :.X.r|
|00000c40| 6d 20 2d 66 20 2a 2e 6f | 0a 58 0a 58 63 6c 6f 62 |m -f *.o|.X.Xclob|
|00000c50| 62 65 72 20 3a 20 63 6c | 65 61 6e 0a 58 09 72 6d |ber : cl|ean.X.rm|
|00000c60| 20 2d 66 20 24 28 50 52 | 4f 47 53 29 0a 58 0a 58 | -f $(PR|OGS).X.X|
|00000c70| 64 65 72 65 7a 20 3a 20 | 64 65 72 65 7a 2e 63 0a |derez : |derez.c.|
|00000c80| 58 09 63 63 20 2d 6f 20 | 64 65 72 65 7a 20 64 65 |X.cc -o |derez de|
|00000c90| 72 65 7a 2e 63 0a 58 0a | 58 72 65 61 64 62 79 74 |rez.c.X.|Xreadbyt|
|00000ca0| 65 20 3a 20 72 65 61 64 | 62 79 74 65 2e 63 0a 58 |e : read|byte.c.X|
|00000cb0| 09 63 63 20 2d 6f 20 72 | 65 61 64 62 79 74 65 20 |.cc -o r|eadbyte |
|00000cc0| 72 65 61 64 62 79 74 65 | 2e 63 0a 45 4e 44 5f 4f |readbyte|.c.END_O|
|00000cd0| 46 5f 6d 61 6b 65 66 69 | 6c 65 0a 69 66 20 74 65 |F_makefi|le.if te|
|00000ce0| 73 74 20 34 31 34 20 2d | 6e 65 20 60 77 63 20 2d |st 414 -|ne `wc -|
|00000cf0| 63 20 3c 6d 61 6b 65 66 | 69 6c 65 60 3b 20 74 68 |c <makef|ile`; th|
|00000d00| 65 6e 0a 20 20 20 20 65 | 63 68 6f 20 73 68 61 72 |en. e|cho shar|
|00000d10| 3a 20 5c 22 6d 61 6b 65 | 66 69 6c 65 5c 22 20 75 |: \"make|file\" u|
|00000d20| 6e 70 61 63 6b 65 64 20 | 77 69 74 68 20 77 72 6f |npacked |with wro|
|00000d30| 6e 67 20 73 69 7a 65 21 | 0a 66 69 0a 23 20 65 6e |ng size!|.fi.# en|
|00000d40| 64 20 6f 66 20 6f 76 65 | 72 77 72 69 74 69 6e 67 |d of ove|rwriting|
|00000d50| 20 63 68 65 63 6b 0a 66 | 69 0a 69 66 20 74 65 73 | check.f|i.if tes|
|00000d60| 74 20 2d 66 20 64 65 72 | 65 7a 2e 31 20 2d 61 20 |t -f der|ez.1 -a |
|00000d70| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|00000d80| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|00000d90| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 6f 76 65 |ar: Will| not ove|
|00000da0| 72 2d 77 72 69 74 65 20 | 65 78 69 73 74 69 6e 67 |r-write |existing|
|00000db0| 20 66 69 6c 65 20 5c 22 | 64 65 72 65 7a 2e 31 5c | file \"|derez.1\|
|00000dc0| 22 0a 65 6c 73 65 0a 65 | 63 68 6f 20 73 68 61 72 |".else.e|cho shar|
|00000dd0| 3a 20 45 78 74 72 61 63 | 74 69 6e 67 20 5c 22 64 |: Extrac|ting \"d|
|00000de0| 65 72 65 7a 2e 31 5c 22 | 20 5c 28 33 35 37 38 20 |erez.1\"| \(3578 |
|00000df0| 63 68 61 72 61 63 74 65 | 72 73 5c 29 0a 73 65 64 |characte|rs\).sed|
|00000e00| 20 22 73 2f 5e 58 2f 2f | 22 20 3e 64 65 72 65 7a | "s/^X//|" >derez|
|00000e10| 2e 31 20 3c 3c 27 45 4e | 44 5f 4f 46 5f 64 65 72 |.1 <<'EN|D_OF_der|
|00000e20| 65 7a 2e 31 27 0a 58 2e | 54 48 20 44 45 52 45 5a |ez.1'.X.|TH DEREZ|
|00000e30| 20 4c 4f 43 41 4c 20 22 | 32 20 46 65 62 72 75 61 | LOCAL "|2 Februa|
|00000e40| 72 79 20 31 39 38 37 22 | 0a 58 2e 55 43 20 34 0a |ry 1987"|.X.UC 4.|
|00000e50| 58 2e 53 48 20 4e 41 4d | 45 0a 58 64 65 72 65 7a |X.SH NAM|E.Xderez|
|00000e60| 20 5c 2d 20 66 69 6e 64 | 20 73 74 61 6c 65 20 66 | \- find| stale f|
|00000e70| 69 6c 65 73 2c 20 61 6e | 64 20 6d 6f 76 65 20 74 |iles, an|d move t|
|00000e80| 68 65 6d 20 69 6e 74 6f | 20 61 20 4d 4f 52 47 55 |hem into| a MORGU|
|00000e90| 45 20 64 69 72 65 63 74 | 6f 72 79 0a 58 2e 53 48 |E direct|ory.X.SH|
|00000ea0| 20 53 59 4e 4f 50 53 49 | 53 0a 58 2e 62 72 0a 58 | SYNOPSI|S.X.br.X|
|00000eb0| 5c 66 42 64 65 72 65 7a | 20 5b 2d 74 20 64 61 79 |\fBderez| [-t day|
|00000ec0| 73 5d 20 5b 64 69 72 31 | 20 64 69 72 32 20 64 69 |s] [dir1| dir2 di|
|00000ed0| 72 33 20 2e 2e 2e 5d 5c | 66 50 0a 58 2e 53 48 20 |r3 ...]\|fP.X.SH |
|00000ee0| 44 45 53 43 52 49 50 54 | 49 4f 4e 0a 58 2e 49 20 |DESCRIPT|ION.X.I |
|00000ef0| 44 65 72 65 7a 0a 58 69 | 73 20 61 20 70 72 6f 67 |Derez.Xi|s a prog|
|00000f00| 72 61 6d 20 77 68 69 63 | 68 20 69 73 20 75 73 65 |ram whic|h is use|
|00000f10| 64 20 74 6f 20 61 72 63 | 68 69 76 65 20 73 74 61 |d to arc|hive sta|
|00000f20| 6c 65 20 66 69 6c 65 73 | 2e 0a 58 4d 6f 73 74 20 |le files|..XMost |
|00000f30| 69 66 20 6e 6f 74 20 5c | 66 49 61 6c 6c 5c 66 50 |if not \|fIall\fP|
|00000f40| 20 55 4e 49 58 20 73 79 | 73 74 65 6d 73 20 73 75 | UNIX sy|stems su|
|00000f50| 66 66 65 72 20 66 72 6f | 6d 20 74 68 65 20 66 69 |ffer fro|m the fi|
|00000f60| 6e 69 74 65 20 64 69 73 | 6b 20 73 69 7a 65 20 70 |nite dis|k size p|
|00000f70| 72 6f 62 6c 65 6d 2e 0a | 58 49 66 20 74 68 69 73 |roblem..|XIf this|
|00000f80| 20 70 72 6f 62 6c 65 6d | 20 69 73 20 61 67 67 72 | problem| is aggr|
|00000f90| 61 76 61 74 65 64 20 62 | 79 20 75 73 65 72 73 20 |avated b|y users |
|00000fa0| 77 68 69 63 68 20 68 61 | 76 65 20 73 74 61 6c 65 |which ha|ve stale|
|00000fb0| 20 66 69 6c 65 73 20 74 | 68 61 74 20 68 61 76 65 | files t|hat have|
|00000fc0| 20 6e 6f 74 0a 58 62 65 | 65 6e 20 72 65 61 64 20 | not.Xbe|en read |
|00000fd0| 66 6f 72 20 73 6f 6d 65 | 20 74 69 6d 65 2c 0a 58 |for some| time,.X|
|00000fe0| 64 65 72 65 7a 20 6f 66 | 66 65 72 73 20 61 20 73 |derez of|fers a s|
|00000ff0| 6f 6c 75 74 69 6f 6e 2e | 0a 58 49 74 20 6d 6f 76 |olution.|.XIt mov|
|00001000| 65 73 20 74 68 65 20 73 | 74 61 6c 65 20 66 69 6c |es the s|tale fil|
|00001010| 65 73 20 74 6f 20 61 20 | 5c 66 49 4d 4f 52 47 55 |es to a |\fIMORGU|
|00001020| 45 5c 66 50 20 64 69 72 | 65 63 74 6f 72 79 20 73 |E\fP dir|ectory s|
|00001030| 6f 20 74 68 61 74 20 74 | 68 65 79 20 63 61 6e 0a |o that t|hey can.|
|00001040| 58 6c 61 74 65 72 20 62 | 65 20 61 72 63 68 69 76 |Xlater b|e archiv|
|00001050| 65 64 20 75 73 69 6e 67 | 20 5c 66 49 74 61 72 5c |ed using| \fItar\|
|00001060| 66 50 2e 0a 58 2e 73 70 | 0a 58 5c 66 49 44 65 72 |fP..X.sp|.X\fIDer|
|00001070| 65 7a 5c 66 50 20 75 73 | 65 73 20 74 68 65 20 61 |ez\fP us|es the a|
|00001080| 63 63 65 73 73 20 74 69 | 6d 65 73 2c 0a 58 74 69 |ccess ti|mes,.Xti|
|00001090| 6d 65 20 6c 61 73 74 20 | 5c 66 49 72 65 61 64 5c |me last |\fIread\|
|000010a0| 66 50 20 6e 6f 74 20 74 | 69 6d 65 20 6c 61 73 74 |fP not t|ime last|
|000010b0| 20 5c 66 42 77 72 69 74 | 74 65 6e 5c 66 50 2c 0a | \fBwrit|ten\fP,.|
|000010c0| 58 6f 66 20 74 68 65 20 | 66 69 6c 65 73 20 74 6f |Xof the |files to|
|000010d0| 20 64 65 74 65 72 6d 69 | 6e 65 20 74 68 65 69 72 | determi|ne their|
|000010e0| 20 73 74 61 6c 65 6e 65 | 73 73 2e 0a 58 54 68 65 | stalene|ss..XThe|
|000010f0| 20 64 65 66 61 75 6c 74 | 20 6e 75 6d 62 65 72 20 | default| number |
|00001100| 6f 66 20 64 61 79 73 20 | 73 69 6e 63 65 20 6c 61 |of days |since la|
|00001110| 73 74 20 61 63 63 65 73 | 73 20 69 73 20 31 38 30 |st acces|s is 180|
|00001120| 20 64 61 79 73 2c 0a 58 | 62 75 74 20 74 68 69 73 | days,.X|but this|
|00001130| 20 63 61 6e 20 62 65 20 | 63 68 61 6e 67 65 64 20 | can be |changed |
|00001140| 75 73 69 6e 67 20 74 68 | 65 20 5c 66 42 2d 74 5c |using th|e \fB-t\|
|00001150| 66 50 20 6f 70 74 69 6f | 6e 2e 0a 58 49 66 20 6e |fP optio|n..XIf n|
|00001160| 6f 20 64 69 72 65 63 74 | 6f 72 79 20 6c 69 73 74 |o direct|ory list|
|00001170| 20 69 73 20 67 69 76 65 | 6e 20 74 6f 20 64 65 72 | is give|n to der|
|00001180| 65 7a 20 69 74 20 73 65 | 61 72 63 68 65 73 20 63 |ez it se|arches c|
|00001190| 75 72 72 65 6e 74 20 64 | 69 72 65 63 74 6f 72 79 |urrent d|irectory|
|000011a0| 2c 0a 58 65 78 63 65 70 | 74 20 74 68 65 20 73 75 |,.Xexcep|t the su|
|000011b0| 62 64 69 72 65 63 74 6f | 72 79 20 5c 66 49 4d 4f |bdirecto|ry \fIMO|
|000011c0| 52 47 55 45 5c 66 50 2e | 0a 58 54 68 65 20 5c 66 |RGUE\fP.|.XThe \f|
|000011d0| 42 2d 74 5c 66 50 20 6f | 70 74 69 6f 6e 20 61 6e |B-t\fP o|ption an|
|000011e0| 64 20 61 20 64 69 72 65 | 63 74 6f 72 79 20 6c 69 |d a dire|ctory li|
|000011f0| 73 74 20 63 61 6e 20 62 | 65 20 75 73 65 64 20 74 |st can b|e used t|
|00001200| 6f 20 67 69 76 65 20 73 | 70 65 63 69 61 6c 20 68 |o give s|pecial h|
|00001210| 61 6e 64 6c 69 6e 67 20 | 74 6f 0a 58 61 6e 74 69 |andling |to.Xanti|
|00001220| 73 6f 63 69 61 6c 20 75 | 73 65 72 73 2e 0a 58 2e |social u|sers..X.|
|00001230| 73 70 0a 58 44 65 72 65 | 7a 20 63 61 6e 20 62 65 |sp.XDere|z can be|
|00001240| 20 64 65 66 65 61 74 65 | 64 20 62 79 20 75 73 69 | defeate|d by usi|
|00001250| 6e 67 20 5c 66 49 66 69 | 6e 64 5c 66 50 20 61 6e |ng \fIfi|nd\fP an|
|00001260| 64 20 5c 66 49 72 65 61 | 64 62 79 74 65 5c 66 50 |d \fIrea|dbyte\fP|
|00001270| 20 74 6f 20 66 69 6e 64 | 20 61 6e 64 20 72 65 61 | to find| and rea|
|00001280| 64 20 61 6c 6c 0a 58 6f | 66 20 74 68 65 20 66 69 |d all.Xo|f the fi|
|00001290| 6c 65 73 20 69 6e 20 61 | 20 64 69 72 65 63 74 6f |les in a| directo|
|000012a0| 72 79 20 74 72 65 65 2e | 0a 58 41 6c 74 68 6f 75 |ry tree.|.XAlthou|
|000012b0| 67 68 20 64 6f 69 6e 67 | 20 74 68 69 73 20 6d 69 |gh doing| this mi|
|000012c0| 67 68 74 20 62 65 20 72 | 65 61 73 6f 6e 61 62 6c |ght be r|easonabl|
|000012d0| 65 20 66 6f 72 20 73 6f | 6d 65 20 64 69 72 65 63 |e for so|me direc|
|000012e0| 74 6f 72 79 20 74 68 61 | 74 20 79 6f 75 20 68 61 |tory tha|t you ha|
|000012f0| 76 65 6e 27 74 0a 58 6c | 6f 6f 6b 65 64 20 61 74 |ven't.Xl|ooked at|
|00001300| 20 69 6e 20 73 6f 6d 65 | 20 74 69 6d 65 2c 20 62 | in some| time, b|
|00001310| 75 74 20 77 69 6c 6c 20 | 62 65 20 75 73 69 6e 67 |ut will |be using|
|00001320| 20 69 6e 20 61 20 66 65 | 77 20 64 61 79 73 2c 0a | in a fe|w days,.|
|00001330| 58 64 6f 69 6e 67 20 74 | 68 69 73 20 74 6f 20 5c |Xdoing t|his to \|
|00001340| 66 42 61 6c 6c 5c 66 50 | 20 6f 66 20 79 6f 75 72 |fBall\fP| of your|
|00001350| 20 66 69 6c 65 73 20 74 | 6f 20 64 65 66 65 61 74 | files t|o defeat|
|00001360| 20 64 65 72 65 7a 20 69 | 73 20 63 6f 6e 73 69 64 | derez i|s consid|
|00001370| 65 72 65 64 20 61 6e 74 | 69 73 6f 63 69 61 6c 0a |ered ant|isocial.|
|00001380| 58 61 6e 64 20 69 73 20 | 64 65 61 6c 74 20 77 69 |Xand is |dealt wi|
|00001390| 74 68 20 75 73 69 6e 67 | 20 62 61 63 6b 20 75 70 |th using| back up|
|000013a0| 20 6f 70 74 69 6f 6e 73 | 2e 0a 58 54 68 65 73 65 | options|..XThese|
|000013b0| 20 6f 70 74 69 6f 6e 73 | 20 69 6e 63 6c 75 64 65 | options| include|
|000013c0| 3a 0a 58 63 68 61 6e 67 | 69 6e 67 20 64 65 72 65 |:.Xchang|ing dere|
|000013d0| 7a 27 73 20 64 65 66 69 | 6e 69 74 69 6f 6e 20 6f |z's defi|nition o|
|000013e0| 66 20 73 74 61 6c 65 6e | 65 73 73 20 66 72 6f 6d |f stalen|ess from|
|000013f0| 20 73 65 76 65 72 61 6c | 20 6d 6f 6e 74 68 73 20 | several| months |
|00001400| 74 6f 20 6f 6e 65 20 64 | 61 79 20 6f 72 20 6c 65 |to one d|ay or le|
|00001410| 73 73 20 66 6f 72 20 74 | 68 65 0a 58 61 6e 74 69 |ss for t|he.Xanti|
|00001420| 73 6f 63 69 61 6c 20 75 | 73 65 72 2c 0a 58 61 72 |social u|ser,.Xar|
|00001430| 63 68 69 76 69 6e 67 20 | 64 69 72 65 63 74 6f 72 |chiving |director|
|00001440| 69 65 73 20 6f 66 20 74 | 68 65 20 61 6e 74 69 73 |ies of t|he antis|
|00001450| 6f 63 69 61 6c 20 75 73 | 65 72 20 62 79 20 68 61 |ocial us|er by ha|
|00001460| 6e 64 20 61 6e 64 0a 58 | 72 65 6d 6f 76 61 6c 20 |nd and.X|removal |
|00001470| 6f 66 20 74 68 65 20 61 | 6e 74 69 73 6f 63 69 61 |of the a|ntisocia|
|00001480| 6c 20 75 73 65 72 27 73 | 20 61 63 63 6f 75 6e 74 |l user's| account|
|00001490| 20 66 72 6f 6d 20 74 68 | 65 20 6d 61 63 68 69 6e | from th|e machin|
|000014a0| 65 2e 0a 58 49 66 20 79 | 6f 75 20 61 72 65 20 67 |e..XIf y|ou are g|
|000014b0| 6f 69 6e 67 20 74 6f 20 | 75 73 65 20 5c 66 49 72 |oing to |use \fIr|
|000014c0| 65 61 64 62 79 74 65 5c | 66 50 20 74 6f 20 73 61 |eadbyte\|fP to sa|
|000014d0| 76 65 20 73 6f 6d 65 20 | 66 69 6c 65 73 20 66 72 |ve some |files fr|
|000014e0| 6f 6d 20 64 65 72 65 7a | 2c 0a 58 79 6f 75 20 73 |om derez|,.Xyou s|
|000014f0| 68 6f 75 6c 64 20 63 68 | 65 63 6b 20 77 69 74 68 |hould ch|eck with|
|00001500| 20 5c 66 42 72 6f 6f 74 | 5c 66 50 20 66 69 72 73 | \fBroot|\fP firs|
|00001510| 74 20 74 6f 20 6d 61 6b | 65 20 73 75 72 65 20 74 |t to mak|e sure t|
|00001520| 68 61 74 20 74 68 65 20 | 61 63 74 69 6f 6e 20 77 |hat the |action w|
|00001530| 6f 6e 27 74 20 62 65 0a | 58 69 6e 74 65 72 70 72 |on't be.|Xinterpr|
|00001540| 65 74 65 64 20 61 73 20 | 61 6e 74 69 73 6f 63 69 |eted as |antisoci|
|00001550| 61 6c 2e 0a 58 2e 73 70 | 0a 58 54 68 65 20 62 65 |al..X.sp|.XThe be|
|00001560| 73 74 20 77 61 79 20 74 | 6f 20 61 76 6f 69 64 20 |st way t|o avoid |
|00001570| 67 65 74 74 69 6e 67 20 | 64 65 72 65 7a 27 65 64 |getting |derez'ed|
|00001580| 20 69 73 20 74 6f 20 61 | 63 74 69 76 65 6c 79 20 | is to a|ctively |
|00001590| 61 72 63 68 69 76 65 20 | 79 6f 75 72 20 73 74 61 |archive |your sta|
|000015a0| 6c 65 20 66 69 6c 65 73 | 0a 58 6f 6e 74 6f 20 74 |le files|.Xonto t|
|000015b0| 61 70 65 20 75 73 69 6e | 67 20 74 61 72 20 61 6e |ape usin|g tar an|
|000015c0| 64 20 6b 65 65 70 20 74 | 68 65 6d 20 6f 66 66 20 |d keep t|hem off |
|000015d0| 6c 69 6e 65 2e 0a 58 49 | 66 20 61 20 75 73 65 72 |line..XI|f a user|
|000015e0| 20 61 63 74 69 76 65 6c | 79 20 61 72 63 68 69 76 | activel|y archiv|
|000015f0| 65 73 20 68 69 73 20 73 | 74 61 6c 65 20 66 69 6c |es his s|tale fil|
|00001600| 65 73 20 6f 6e 74 6f 20 | 74 61 70 65 2c 0a 58 61 |es onto |tape,.Xa|
|00001610| 20 72 61 74 68 65 72 20 | 6c 61 72 67 65 20 64 69 | rather |large di|
|00001620| 73 6b 20 75 73 61 67 65 | 20 66 6f 72 20 74 72 75 |sk usage| for tru|
|00001630| 6c 79 20 61 63 74 69 76 | 65 20 66 69 6c 65 73 20 |ly activ|e files |
|00001640| 77 69 6c 6c 20 62 65 20 | 74 6f 6c 65 72 61 74 65 |will be |tolerate|
|00001650| 64 2e 0a 58 2e 73 70 0a | 58 41 6c 74 68 6f 75 67 |d..X.sp.|XAlthoug|
|00001660| 68 20 64 65 72 65 7a 20 | 77 61 73 20 77 72 69 74 |h derez |was writ|
|00001670| 74 65 6e 20 66 6f 72 20 | 5c 66 42 72 6f 6f 74 27 |ten for |\fBroot'|
|00001680| 73 5c 66 50 20 75 73 65 | 2c 0a 58 61 6e 20 69 6e |s\fP use|,.Xan in|
|00001690| 64 69 76 69 64 75 61 6c | 20 75 73 65 72 20 63 61 |dividual| user ca|
|000016a0| 6e 20 75 73 65 20 69 74 | 20 74 6f 20 66 69 6e 64 |n use it| to find|
|000016b0| 20 61 6e 64 20 61 72 63 | 68 69 76 65 20 68 69 73 | and arc|hive his|
|000016c0| 20 73 74 61 6c 65 20 66 | 69 6c 65 73 2e 0a 58 54 | stale f|iles..XT|
|000016d0| 68 69 73 20 69 73 20 64 | 6f 6e 65 20 62 79 20 6d |his is d|one by m|
|000016e0| 61 6b 69 6e 67 20 61 20 | 73 75 62 64 69 72 65 63 |aking a |subdirec|
|000016f0| 74 6f 72 79 20 77 69 74 | 68 20 74 68 65 20 6e 61 |tory wit|h the na|
|00001700| 6d 65 20 5c 66 49 4d 4f | 52 47 55 45 5c 66 50 20 |me \fIMO|RGUE\fP |
|00001710| 69 6e 20 61 6e 79 20 64 | 69 72 65 63 74 6f 72 79 |in any d|irectory|
|00001720| 0a 58 79 6f 75 20 77 6f | 75 6c 64 20 6c 69 6b 65 |.Xyou wo|uld like|
|00001730| 20 74 6f 20 61 72 63 68 | 69 76 65 20 74 68 65 20 | to arch|ive the |
|00001740| 64 65 73 63 65 6e 64 61 | 6e 74 20 73 74 61 6c 65 |descenda|nt stale|
|00001750| 20 66 69 6c 65 73 2e 0a | 58 59 6f 75 20 74 68 65 | files..|XYou the|
|00001760| 6e 20 72 75 6e 20 5c 66 | 49 64 65 72 65 7a 5c 66 |n run \f|Iderez\f|
|00001770| 50 2e 0a 58 44 65 72 65 | 7a 20 77 69 6c 6c 20 63 |P..XDere|z will c|
|00001780| 72 65 61 74 65 20 61 20 | 6c 69 73 74 20 6f 66 20 |reate a |list of |
|00001790| 73 74 61 6c 65 20 66 69 | 6c 65 73 2c 0a 58 77 69 |stale fi|les,.Xwi|
|000017a0| 74 68 20 74 68 65 20 6e | 61 6d 65 20 5c 66 49 4d |th the n|ame \fIM|
|000017b0| 4f 52 47 55 45 2f 44 45 | 52 45 5a 5c 66 50 20 61 |ORGUE/DE|REZ\fP a|
|000017c0| 6e 64 20 74 68 65 6e 20 | 6d 6f 76 65 20 74 68 65 |nd then |move the|
|000017d0| 20 73 74 61 6c 65 20 66 | 69 6c 65 73 20 69 6e 74 | stale f|iles int|
|000017e0| 6f 20 74 68 65 20 64 69 | 72 65 63 74 6f 72 79 0a |o the di|rectory.|
|000017f0| 58 4d 4f 52 47 55 45 2e | 0a 58 49 66 20 61 20 66 |XMORGUE.|.XIf a f|
|00001800| 69 6c 65 20 74 68 61 74 | 20 69 73 20 72 65 6d 6f |ile that| is remo|
|00001810| 76 65 64 20 69 73 20 74 | 68 65 20 6c 61 73 74 20 |ved is t|he last |
|00001820| 66 69 6c 65 20 69 6e 20 | 69 74 27 73 20 70 61 72 |file in |it's par|
|00001830| 65 6e 74 20 64 69 72 65 | 63 74 6f 72 79 2c 0a 58 |ent dire|ctory,.X|
|00001840| 74 68 65 20 70 61 72 65 | 6e 74 20 64 69 72 65 63 |the pare|nt direc|
|00001850| 74 6f 72 79 20 69 73 20 | 72 65 6d 6f 76 65 64 2e |tory is |removed.|
|00001860| 0a 58 54 68 65 20 63 6f | 6e 74 65 6e 74 73 20 6f |.XThe co|ntents o|
|00001870| 66 20 74 68 65 20 6d 6f | 72 67 75 65 20 64 69 72 |f the mo|rgue dir|
|00001880| 65 63 74 6f 72 79 20 63 | 61 6e 20 62 65 20 61 72 |ectory c|an be ar|
|00001890| 63 68 69 76 65 64 20 75 | 73 69 6e 67 20 74 61 72 |chived u|sing tar|
|000018a0| 20 61 6e 64 20 74 68 65 | 6e 20 72 65 6d 6f 76 65 | and the|n remove|
|000018b0| 64 20 66 72 6f 6d 20 74 | 68 65 20 64 69 73 6b 2e |d from t|he disk.|
|000018c0| 0a 58 54 68 65 20 75 73 | 65 20 6f 66 20 5c 66 49 |.XThe us|e of \fI|
|000018d0| 64 65 72 65 7a 5c 66 50 | 20 66 6f 72 20 73 74 61 |derez\fP| for sta|
|000018e0| 6c 65 20 66 69 6c 65 20 | 63 6f 6e 74 72 6f 6c 20 |le file |control |
|000018f0| 69 73 20 68 69 67 68 6c | 79 20 72 65 63 6f 6d 6d |is highl|y recomm|
|00001900| 65 6e 64 65 64 2e 0a 58 | 53 63 72 61 74 63 68 20 |ended..X|Scratch |
|00001910| 74 61 70 65 73 20 63 61 | 6e 20 62 65 20 66 6f 75 |tapes ca|n be fou|
|00001920| 6e 64 20 6e 65 78 74 20 | 74 6f 20 74 68 65 20 73 |nd next |to the s|
|00001930| 79 73 74 65 6d 20 63 6f | 6e 73 6f 6c 65 2e 0a 58 |ystem co|nsole..X|
|00001940| 2e 73 70 0a 58 46 69 6c | 65 73 20 74 68 61 74 20 |.sp.XFil|es that |
|00001950| 68 61 76 65 20 62 65 65 | 6e 20 64 65 72 65 7a 27 |have bee|n derez'|
|00001960| 65 64 20 62 79 20 72 6f | 6f 74 20 63 61 6e 20 62 |ed by ro|ot can b|
|00001970| 65 20 72 65 63 6f 76 65 | 72 65 64 20 66 72 6f 6d |e recove|red from|
|00001980| 20 74 68 65 20 61 72 63 | 68 69 76 65 20 74 61 70 | the arc|hive tap|
|00001990| 65 20 75 73 69 6e 67 0a | 58 5c 66 49 74 61 72 5c |e using.|X\fItar\|
|000019a0| 66 50 2e 0a 58 54 6f 20 | 72 65 63 6f 76 65 72 20 |fP..XTo |recover |
|000019b0| 61 6c 6c 20 6f 6e 65 27 | 73 20 73 74 61 6c 65 20 |all one'|s stale |
|000019c0| 66 69 6c 65 73 20 77 69 | 74 68 6f 75 74 20 6d 6f |files wi|thout mo|
|000019d0| 76 69 6e 67 20 73 6f 6d | 65 20 6f 72 20 61 6c 6c |ving som|e or all|
|000019e0| 20 6f 66 66 20 6c 69 6e | 65 0a 58 77 69 74 68 20 | off lin|e.Xwith |
|000019f0| 70 65 72 73 6f 6e 61 6c | 20 61 72 63 68 69 76 65 |personal| archive|
|00001a00| 20 74 61 70 65 73 20 69 | 73 20 63 6f 6e 73 69 64 | tapes i|s consid|
|00001a10| 65 72 65 64 20 61 6e 74 | 69 73 6f 63 69 61 6c 2e |ered ant|isocial.|
|00001a20| 0a 58 2e 53 48 20 53 45 | 45 20 41 4c 53 4f 0a 58 |.X.SH SE|E ALSO.X|
|00001a30| 66 69 6e 64 2c 20 72 65 | 61 64 62 79 74 65 0a 58 |find, re|adbyte.X|
|00001a40| 2e 74 61 20 33 2e 30 69 | 0a 58 2e 53 48 20 46 49 |.ta 3.0i|.X.SH FI|
|00001a50| 4c 45 53 0a 58 2f 75 73 | 72 2f 6c 6f 63 61 6c 2f |LES.X/us|r/local/|
|00001a60| 6d 6f 72 67 75 65 2f 64 | 65 72 65 7a 2e 6d 6d 2e |morgue/d|erez.mm.|
|00001a70| 64 64 2e 79 79 09 4c 69 | 73 74 73 20 6f 66 20 66 |dd.yy.Li|sts of f|
|00001a80| 69 6c 65 73 20 64 65 72 | 65 7a 27 65 64 20 62 79 |iles der|ez'ed by|
|00001a90| 20 72 6f 6f 74 2e 0a 58 | 2e 62 72 0a 58 4d 4f 52 | root..X|.br.XMOR|
|00001aa0| 47 55 45 2f 44 45 52 45 | 5a 09 54 68 65 20 66 69 |GUE/DERE|Z.The fi|
|00001ab0| 6c 65 73 20 64 65 72 65 | 7a 20 77 69 6c 6c 20 65 |les dere|z will e|
|00001ac0| 6e 6d 6f 72 67 75 65 2e | 0a 58 2e 62 72 0a 58 4d |nmorgue.|.X.br.XM|
|00001ad0| 4f 52 47 55 45 2f 2a 09 | 54 68 65 20 65 6e 6d 6f |ORGUE/*.|The enmo|
|00001ae0| 72 67 75 65 64 20 66 69 | 6c 65 73 2e 0a 58 2e 53 |rgued fi|les..X.S|
|00001af0| 48 20 22 42 55 47 53 28 | 4e 6f 74 20 74 6f 20 62 |H "BUGS(|Not to b|
|00001b00| 65 20 74 61 6b 65 6e 20 | 61 64 76 61 6e 74 61 67 |e taken |advantag|
|00001b10| 65 20 6f 66 29 22 0a 58 | 44 45 52 45 5a 20 73 68 |e of)".X|DEREZ sh|
|00001b20| 61 72 65 73 20 74 61 72 | 27 73 20 6c 69 6d 69 74 |ares tar|'s limit|
|00001b30| 73 20 6f 6e 20 70 61 74 | 68 20 6e 61 6d 65 20 6c |s on pat|h name l|
|00001b40| 65 6e 67 74 68 73 2e 0a | 58 2e 62 72 0a 58 44 65 |engths..|X.br.XDe|
|00001b50| 72 65 7a 20 64 6f 65 73 | 20 6e 6f 74 20 61 72 63 |rez does| not arc|
|00001b60| 68 69 76 65 20 66 69 6c | 65 73 20 77 69 74 68 20 |hive fil|es with |
|00001b70| 6d 6f 72 65 20 74 68 61 | 6e 20 6f 6e 65 20 68 61 |more tha|n one ha|
|00001b80| 72 64 20 6c 69 6e 6b 20 | 61 73 20 74 68 65 79 0a |rd link |as they.|
|00001b90| 58 77 6f 75 6c 64 20 67 | 65 74 20 73 65 70 65 72 |Xwould g|et seper|
|00001ba0| 61 74 65 64 20 69 6e 74 | 6f 20 73 65 76 65 72 61 |ated int|o severa|
|00001bb0| 6c 20 63 6f 70 69 65 73 | 20 6f 66 20 74 68 65 20 |l copies| of the |
|00001bc0| 66 69 6c 65 73 20 69 6e | 20 74 68 65 20 63 75 72 |files in| the cur|
|00001bd0| 72 65 6e 74 0a 58 69 6d | 70 6c 65 6d 65 6e 74 61 |rent.Xim|plementa|
|00001be0| 74 69 6f 6e 2e 0a 58 2e | 62 72 0a 58 4d 4f 52 47 |tion..X.|br.XMORG|
|00001bf0| 55 45 20 61 6e 64 20 44 | 45 52 45 5a 20 61 72 65 |UE and D|EREZ are|
|00001c00| 20 72 65 73 65 72 76 65 | 64 20 6e 61 6d 65 73 2e | reserve|d names.|
|00001c10| 0a 58 2e 62 72 0a 58 44 | 65 72 65 7a 20 77 69 6c |.X.br.XD|erez wil|
|00001c20| 6c 20 6e 6f 74 20 6d 6f | 76 65 20 66 69 6c 65 73 |l not mo|ve files|
|00001c30| 20 77 69 74 68 20 70 61 | 74 68 20 6e 61 6d 65 73 | with pa|th names|
|00001c40| 20 6f 66 20 74 68 65 20 | 66 6f 72 6d 20 4d 4f 52 | of the |form MOR|
|00001c50| 47 55 45 2f 2a 20 6f 72 | 20 44 45 52 45 5a 0a 58 |GUE/* or| DEREZ.X|
|00001c60| 66 6f 72 20 6f 62 76 69 | 6f 75 73 20 72 65 61 73 |for obvi|ous reas|
|00001c70| 6f 6e 73 2e 0a 45 4e 44 | 5f 4f 46 5f 64 65 72 65 |ons..END|_OF_dere|
|00001c80| 7a 2e 31 0a 69 66 20 74 | 65 73 74 20 33 35 37 38 |z.1.if t|est 3578|
|00001c90| 20 2d 6e 65 20 60 77 63 | 20 2d 63 20 3c 64 65 72 | -ne `wc| -c <der|
|00001ca0| 65 7a 2e 31 60 3b 20 74 | 68 65 6e 0a 20 20 20 20 |ez.1`; t|hen. |
|00001cb0| 65 63 68 6f 20 73 68 61 | 72 3a 20 5c 22 64 65 72 |echo sha|r: \"der|
|00001cc0| 65 7a 2e 31 5c 22 20 75 | 6e 70 61 63 6b 65 64 20 |ez.1\" u|npacked |
|00001cd0| 77 69 74 68 20 77 72 6f | 6e 67 20 73 69 7a 65 21 |with wro|ng size!|
|00001ce0| 0a 66 69 0a 23 20 65 6e | 64 20 6f 66 20 6f 76 65 |.fi.# en|d of ove|
|00001cf0| 72 77 72 69 74 69 6e 67 | 20 63 68 65 63 6b 0a 66 |rwriting| check.f|
|00001d00| 69 0a 69 66 20 74 65 73 | 74 20 2d 66 20 72 65 61 |i.if tes|t -f rea|
|00001d10| 64 62 79 74 65 2e 31 20 | 2d 61 20 22 24 7b 31 7d |dbyte.1 |-a "${1}|
|00001d20| 22 20 21 3d 20 22 2d 63 | 22 20 3b 20 74 68 65 6e |" != "-c|" ; then|
|00001d30| 20 0a 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 57 | . echo| shar: W|
|00001d40| 69 6c 6c 20 6e 6f 74 20 | 6f 76 65 72 2d 77 72 69 |ill not |over-wri|
|00001d50| 74 65 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |te exist|ing file|
|00001d60| 20 5c 22 72 65 61 64 62 | 79 74 65 2e 31 5c 22 0a | \"readb|yte.1\".|
|00001d70| 65 6c 73 65 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |else.ech|o shar: |
|00001d80| 45 78 74 72 61 63 74 69 | 6e 67 20 5c 22 72 65 61 |Extracti|ng \"rea|
|00001d90| 64 62 79 74 65 2e 31 5c | 22 20 5c 28 36 33 31 20 |dbyte.1\|" \(631 |
|00001da0| 63 68 61 72 61 63 74 65 | 72 73 5c 29 0a 73 65 64 |characte|rs\).sed|
|00001db0| 20 22 73 2f 5e 58 2f 2f | 22 20 3e 72 65 61 64 62 | "s/^X//|" >readb|
|00001dc0| 79 74 65 2e 31 20 3c 3c | 27 45 4e 44 5f 4f 46 5f |yte.1 <<|'END_OF_|
|00001dd0| 72 65 61 64 62 79 74 65 | 2e 31 27 0a 58 2e 54 48 |readbyte|.1'.X.TH|
|00001de0| 20 52 45 41 44 42 59 54 | 45 20 4c 4f 43 41 4c 20 | READBYT|E LOCAL |
|00001df0| 22 32 20 46 65 62 72 75 | 61 72 79 20 31 39 38 37 |"2 Febru|ary 1987|
|00001e00| 22 0a 58 2e 55 43 20 34 | 0a 58 2e 53 48 20 4e 41 |".X.UC 4|.X.SH NA|
|00001e10| 4d 45 0a 58 72 65 61 64 | 62 79 74 65 20 5c 2d 20 |ME.Xread|byte \- |
|00001e20| 52 65 61 64 20 74 68 65 | 20 66 69 72 73 74 20 62 |Read the| first b|
|00001e30| 79 74 65 20 6f 66 20 61 | 20 66 69 6c 65 2c 20 72 |yte of a| file, r|
|00001e40| 65 6d 6f 76 69 6e 67 20 | 69 74 73 20 73 74 61 6c |emoving |its stal|
|00001e50| 65 6e 65 73 73 0a 58 2e | 53 48 20 53 59 4e 4f 50 |eness.X.|SH SYNOP|
|00001e60| 53 49 53 0a 58 2e 62 72 | 0a 58 5c 66 42 72 65 61 |SIS.X.br|.X\fBrea|
|00001e70| 64 62 79 74 65 20 66 69 | 6c 65 6e 61 6d 65 5c 66 |dbyte fi|lename\f|
|00001e80| 50 0a 58 2e 53 48 20 44 | 45 53 43 52 49 50 54 49 |P.X.SH D|ESCRIPTI|
|00001e90| 4f 4e 0a 58 2e 49 20 52 | 65 61 64 62 79 74 65 0a |ON.X.I R|eadbyte.|
|00001ea0| 58 72 65 61 64 73 20 74 | 68 65 20 66 69 72 73 74 |Xreads t|he first|
|00001eb0| 20 62 79 74 65 20 6f 66 | 20 74 68 65 20 73 70 65 | byte of| the spe|
|00001ec0| 63 69 66 69 65 64 20 66 | 69 6c 65 2c 0a 58 63 68 |cified f|ile,.Xch|
|00001ed0| 61 6e 67 69 6e 67 20 69 | 74 73 20 61 63 63 65 73 |anging i|ts acces|
|00001ee0| 73 20 64 61 74 65 2e 0a | 58 49 74 20 69 73 20 75 |s date..|XIt is u|
|00001ef0| 73 65 64 20 74 6f 20 72 | 65 6d 6f 76 65 20 73 74 |sed to r|emove st|
|00001f00| 61 6c 65 6e 65 73 73 20 | 6f 66 20 61 20 66 69 6c |aleness |of a fil|
|00001f10| 65 20 74 6f 20 70 72 65 | 76 65 6e 74 20 64 65 72 |e to pre|vent der|
|00001f20| 65 7a 20 66 72 6f 6d 0a | 58 70 75 74 74 69 6e 67 |ez from.|Xputting|
|00001f30| 20 74 68 65 20 66 69 6c | 65 20 69 6e 20 74 68 65 | the fil|e in the|
|00001f40| 20 6d 6f 72 67 75 65 20 | 66 6f 72 20 61 72 63 68 | morgue |for arch|
|00001f50| 69 76 61 6c 20 6f 6e 74 | 6f 20 74 61 70 65 2e 0a |ival ont|o tape..|
|00001f60| 58 45 78 63 65 73 73 69 | 76 65 20 75 73 65 20 6f |XExcessi|ve use o|
|00001f70| 66 20 5c 66 49 72 65 61 | 64 62 79 74 65 5c 66 50 |f \fIrea|dbyte\fP|
|00001f80| 2c 20 6f 72 20 61 6e 79 | 20 6f 74 68 65 72 20 6d |, or any| other m|
|00001f90| 65 61 6e 73 20 6f 66 20 | 75 70 64 61 74 69 6e 67 |eans of |updating|
|00001fa0| 0a 58 74 68 65 20 61 63 | 63 65 73 73 20 64 61 74 |.Xthe ac|cess dat|
|00001fb0| 65 20 6f 66 20 61 20 66 | 69 6c 65 20 74 6f 20 64 |e of a f|ile to d|
|00001fc0| 65 66 65 61 74 20 5c 66 | 49 64 65 72 65 7a 5c 66 |efeat \f|Iderez\f|
|00001fd0| 50 2c 0a 58 69 73 20 69 | 6e 74 65 72 70 72 65 74 |P,.Xis i|nterpret|
|00001fe0| 65 64 20 61 73 20 61 6e | 74 69 73 6f 63 69 61 6c |ed as an|tisocial|
|00001ff0| 20 62 79 20 72 6f 6f 74 | 2e 0a 58 41 6e 74 69 73 | by root|..XAntis|
|00002000| 6f 63 69 61 6c 20 62 65 | 68 61 76 69 6f 72 20 69 |ocial be|havior i|
|00002010| 73 20 64 65 61 6c 74 20 | 77 69 74 68 20 61 73 20 |s dealt |with as |
|00002020| 64 65 73 63 72 69 62 65 | 64 20 69 6e 20 74 68 65 |describe|d in the|
|00002030| 20 6d 61 6e 20 70 61 67 | 65 20 66 6f 72 20 5c 66 | man pag|e for \f|
|00002040| 49 64 65 72 65 7a 5c 66 | 50 2e 0a 58 2e 53 48 20 |Iderez\f|P..X.SH |
|00002050| 53 45 45 20 41 4c 53 4f | 0a 58 66 69 6e 64 2c 20 |SEE ALSO|.Xfind, |
|00002060| 64 65 72 65 7a 0a 45 4e | 44 5f 4f 46 5f 72 65 61 |derez.EN|D_OF_rea|
|00002070| 64 62 79 74 65 2e 31 0a | 69 66 20 74 65 73 74 20 |dbyte.1.|if test |
|00002080| 36 33 31 20 2d 6e 65 20 | 60 77 63 20 2d 63 20 3c |631 -ne |`wc -c <|
|00002090| 72 65 61 64 62 79 74 65 | 2e 31 60 3b 20 74 68 65 |readbyte|.1`; the|
|000020a0| 6e 0a 20 20 20 20 65 63 | 68 6f 20 73 68 61 72 3a |n. ec|ho shar:|
|000020b0| 20 5c 22 72 65 61 64 62 | 79 74 65 2e 31 5c 22 20 | \"readb|yte.1\" |
|000020c0| 75 6e 70 61 63 6b 65 64 | 20 77 69 74 68 20 77 72 |unpacked| with wr|
|000020d0| 6f 6e 67 20 73 69 7a 65 | 21 0a 66 69 0a 23 20 65 |ong size|!.fi.# e|
|000020e0| 6e 64 20 6f 66 20 6f 76 | 65 72 77 72 69 74 69 6e |nd of ov|erwritin|
|000020f0| 67 20 63 68 65 63 6b 0a | 66 69 0a 69 66 20 74 65 |g check.|fi.if te|
|00002100| 73 74 20 2d 66 20 64 65 | 72 65 7a 2e 63 20 2d 61 |st -f de|rez.c -a|
|00002110| 20 22 24 7b 31 7d 22 20 | 21 3d 20 22 2d 63 22 20 | "${1}" |!= "-c" |
|00002120| 3b 20 74 68 65 6e 20 0a | 20 20 65 63 68 6f 20 73 |; then .| echo s|
|00002130| 68 61 72 3a 20 57 69 6c | 6c 20 6e 6f 74 20 6f 76 |har: Wil|l not ov|
|00002140| 65 72 2d 77 72 69 74 65 | 20 65 78 69 73 74 69 6e |er-write| existin|
|00002150| 67 20 66 69 6c 65 20 5c | 22 64 65 72 65 7a 2e 63 |g file \|"derez.c|
|00002160| 5c 22 0a 65 6c 73 65 0a | 65 63 68 6f 20 73 68 61 |\".else.|echo sha|
|00002170| 72 3a 20 45 78 74 72 61 | 63 74 69 6e 67 20 5c 22 |r: Extra|cting \"|
|00002180| 64 65 72 65 7a 2e 63 5c | 22 20 5c 28 34 33 38 38 |derez.c\|" \(4388|
|00002190| 20 63 68 61 72 61 63 74 | 65 72 73 5c 29 0a 73 65 | charact|ers\).se|
|000021a0| 64 20 22 73 2f 5e 58 2f | 2f 22 20 3e 64 65 72 65 |d "s/^X/|/" >dere|
|000021b0| 7a 2e 63 20 3c 3c 27 45 | 4e 44 5f 4f 46 5f 64 65 |z.c <<'E|ND_OF_de|
|000021c0| 72 65 7a 2e 63 27 0a 58 | 2f 2a 20 54 68 69 73 20 |rez.c'.X|/* This |
|000021d0| 70 72 6f 67 72 61 6d 20 | 61 72 63 68 69 76 65 73 |program |archives|
|000021e0| 20 61 6e 64 20 72 65 6d | 6f 76 65 73 20 61 6c 6c | and rem|oves all|
|000021f0| 20 66 69 6c 65 73 20 6f | 6e 20 2f 75 30 0a 58 74 | files o|n /u0.Xt|
|00002200| 68 61 74 20 68 61 76 65 | 20 6e 6f 74 20 62 65 65 |hat have| not bee|
|00002210| 6e 20 61 63 63 65 73 73 | 65 64 20 69 6e 20 31 38 |n access|ed in 18|
|00002220| 30 20 64 61 79 73 2e 0a | 58 09 2a 2f 0a 58 0a 58 |0 days..|X.*/.X.X|
|00002230| 23 69 6e 63 6c 75 64 65 | 20 3c 73 79 73 2f 74 79 |#include| <sys/ty|
|00002240| 70 65 73 2e 68 3e 0a 58 | 23 69 6e 63 6c 75 64 65 |pes.h>.X|#include|
|00002250| 20 3c 73 79 73 2f 73 74 | 61 74 2e 68 3e 0a 58 23 | <sys/st|at.h>.X#|
|00002260| 69 6e 63 6c 75 64 65 20 | 3c 73 79 73 2f 66 69 6c |include |<sys/fil|
|00002270| 65 2e 68 3e 0a 58 23 69 | 6e 63 6c 75 64 65 20 3c |e.h>.X#i|nclude <|
|00002280| 73 74 72 69 6e 67 73 2e | 68 3e 0a 58 0a 58 23 64 |strings.|h>.X.X#d|
|00002290| 65 66 69 6e 65 20 4d 41 | 58 4c 45 4e 20 31 30 32 |efine MA|XLEN 102|
|000022a0| 34 30 0a 58 23 64 65 66 | 69 6e 65 20 55 53 41 47 |40.X#def|ine USAG|
|000022b0| 45 20 22 64 65 72 65 7a | 20 5b 2d 74 20 64 61 79 |E "derez| [-t day|
|000022c0| 73 5d 20 5b 64 69 72 31 | 20 64 69 72 32 20 64 69 |s] [dir1| dir2 di|
|000022d0| 72 33 20 2e 2e 2e 5d 5c | 6e 22 0a 58 0a 58 23 69 |r3 ...]\|n".X.X#i|
|000022e0| 6e 63 6c 75 64 65 20 3c | 73 74 64 69 6f 2e 68 3e |nclude <|stdio.h>|
|000022f0| 0a 58 0a 58 6d 61 69 6e | 28 61 72 67 63 2c 20 61 |.X.Xmain|(argc, a|
|00002300| 72 67 76 29 0a 58 69 6e | 74 20 61 72 67 63 3b 0a |rgv).Xin|t argc;.|
|00002310| 58 63 68 61 72 20 2a 2a | 61 72 67 76 3b 0a 58 7b |Xchar **|argv;.X{|
|00002320| 0a 58 09 46 49 4c 45 20 | 2a 66 70 74 72 3b 0a 58 |.X.FILE |*fptr;.X|
|00002330| 09 73 74 72 75 63 74 20 | 73 74 61 74 20 73 74 61 |.struct |stat sta|
|00002340| 74 62 75 66 3b 0a 58 09 | 63 68 61 72 20 66 69 6c |tbuf;.X.|char fil|
|00002350| 65 6e 61 6d 65 5b 4d 41 | 58 4c 45 4e 5d 3b 0a 58 |ename[MA|XLEN];.X|
|00002360| 09 63 68 61 72 20 63 6d | 64 5b 4d 41 58 4c 45 4e |.char cm|d[MAXLEN|
|00002370| 5d 3b 0a 58 09 63 68 61 | 72 20 64 69 72 6c 69 73 |];.X.cha|r dirlis|
|00002380| 74 5b 4d 41 58 4c 45 4e | 5d 3b 0a 58 09 69 6e 74 |t[MAXLEN|];.X.int|
|00002390| 20 73 69 6e 63 65 3b 0a | 58 0a 58 09 64 69 72 6c | since;.|X.X.dirl|
|000023a0| 69 73 74 5b 30 5d 20 3d | 20 4e 55 4c 4c 3b 0a 58 |ist[0] =| NULL;.X|
|000023b0| 09 73 69 6e 63 65 20 3d | 20 31 38 30 3b 0a 58 0a |.since =| 180;.X.|
|000023c0| 58 0a 58 09 2f 2a 20 43 | 68 65 63 6b 20 66 6f 72 |X.X./* C|heck for|
|000023d0| 20 74 68 65 20 65 78 69 | 73 74 65 6e 63 65 20 61 | the exi|stence a|
|000023e0| 6e 64 20 61 63 63 65 73 | 73 20 70 65 72 6d 69 73 |nd acces|s permis|
|000023f0| 73 69 6f 6e 73 20 6f 6e | 20 74 68 65 20 4d 4f 52 |sions on| the MOR|
|00002400| 47 55 45 2e 0a 58 09 09 | 2a 2f 0a 58 09 69 66 28 |GUE..X..|*/.X.if(|
|00002410| 73 74 61 74 28 22 4d 4f | 52 47 55 45 22 2c 20 26 |stat("MO|RGUE", &|
|00002420| 73 74 61 74 62 75 66 29 | 29 20 7b 0a 58 09 09 70 |statbuf)|) {.X..p|
|00002430| 65 72 72 6f 72 28 22 64 | 65 72 65 7a 3a 20 4d 4f |error("d|erez: MO|
|00002440| 52 47 55 45 22 29 3b 0a | 58 09 09 65 78 69 74 28 |RGUE");.|X..exit(|
|00002450| 31 29 3b 0a 58 09 7d 0a | 58 09 69 66 28 21 28 73 |1);.X.}.|X.if(!(s|
|00002460| 74 61 74 62 75 66 2e 73 | 74 5f 6d 6f 64 65 20 26 |tatbuf.s|t_mode &|
|00002470| 20 53 5f 49 46 44 49 52 | 29 29 20 7b 0a 58 09 09 | S_IFDIR|)) {.X..|
|00002480| 66 70 72 69 6e 74 66 28 | 73 74 64 65 72 72 2c 20 |fprintf(|stderr, |
|00002490| 22 64 65 72 65 7a 3a 20 | 4d 4f 52 47 55 45 20 69 |"derez: |MORGUE i|
|000024a0| 73 20 6e 6f 74 20 61 20 | 64 69 72 65 63 74 6f 72 |s not a |director|
|000024b0| 79 5c 6e 22 29 3b 0a 58 | 09 09 65 78 69 74 28 31 |y\n");.X|..exit(1|
|000024c0| 29 3b 0a 58 09 7d 0a 58 | 09 69 66 28 61 63 63 65 |);.X.}.X|.if(acce|
|000024d0| 73 73 28 22 4d 4f 52 47 | 55 45 22 2c 20 52 5f 4f |ss("MORG|UE", R_O|
|000024e0| 4b 20 7c 20 57 5f 4f 4b | 20 7c 20 58 5f 4f 4b 29 |K | W_OK| | X_OK)|
|000024f0| 29 20 7b 0a 58 09 09 66 | 70 72 69 6e 74 66 28 73 |) {.X..f|printf(s|
|00002500| 74 64 65 72 72 2c 20 22 | 64 65 72 65 7a 3a 20 54 |tderr, "|derez: T|
|00002510| 68 65 20 4d 4f 52 47 55 | 45 20 6d 75 73 74 20 68 |he MORGU|E must h|
|00002520| 61 76 65 20 72 65 61 64 | 2c 20 77 72 69 74 65 20 |ave read|, write |
|00002530| 61 6e 64 20 65 78 65 63 | 75 74 65 20 70 65 72 6d |and exec|ute perm|
|00002540| 73 5c 6e 22 29 3b 0a 58 | 09 09 65 78 69 74 28 31 |s\n");.X|..exit(1|
|00002550| 29 3b 0a 58 09 7d 0a 58 | 0a 58 09 69 66 28 61 72 |);.X.}.X|.X.if(ar|
|00002560| 67 63 20 3e 20 31 29 20 | 7b 0a 58 09 09 69 66 28 |gc > 1) |{.X..if(|
|00002570| 73 74 72 63 6d 70 28 61 | 72 67 76 5b 31 5d 2c 20 |strcmp(a|rgv[1], |
|00002580| 22 2d 74 22 29 20 3d 3d | 20 30 29 20 7b 0a 58 09 |"-t") ==| 0) {.X.|
|00002590| 09 09 69 66 28 61 72 67 | 63 20 3c 20 33 29 20 7b |..if(arg|c < 3) {|
|000025a0| 0a 58 09 09 09 09 66 70 | 72 69 6e 74 66 28 73 74 |.X....fp|rintf(st|
|000025b0| 64 65 72 72 2c 20 55 53 | 41 47 45 29 3b 0a 58 09 |derr, US|AGE);.X.|
|000025c0| 09 09 09 65 78 69 74 28 | 31 29 3b 0a 58 09 09 09 |...exit(|1);.X...|
|000025d0| 7d 0a 58 09 09 09 69 66 | 28 73 73 63 61 6e 66 28 |}.X...if|(sscanf(|
|000025e0| 61 72 67 76 5b 32 5d 2c | 20 22 25 64 22 2c 20 26 |argv[2],| "%d", &|
|000025f0| 73 69 6e 63 65 29 20 21 | 3d 20 31 29 20 7b 0a 58 |since) !|= 1) {.X|
|00002600| 09 09 09 09 66 70 72 69 | 6e 74 66 28 73 74 64 65 |....fpri|ntf(stde|
|00002610| 72 72 2c 20 22 64 65 72 | 65 7a 3a 20 62 61 64 20 |rr, "der|ez: bad |
|00002620| 61 72 67 20 66 6f 72 20 | 2d 74 20 6f 70 74 69 6f |arg for |-t optio|
|00002630| 6e 20 25 73 5c 6e 22 2c | 20 61 72 67 76 5b 32 5d |n %s\n",| argv[2]|
|00002640| 29 3b 0a 58 09 09 09 09 | 65 78 69 74 28 31 29 3b |);.X....|exit(1);|
|00002650| 0a 58 09 09 09 7d 0a 58 | 09 09 09 69 66 28 73 69 |.X...}.X|...if(si|
|00002660| 6e 63 65 20 3c 20 31 20 | 7c 7c 20 73 69 6e 63 65 |nce < 1 ||| since|
|00002670| 20 3e 20 31 30 30 30 29 | 20 7b 0a 58 09 09 09 09 | > 1000)| {.X....|
|00002680| 66 70 72 69 6e 74 66 28 | 73 74 64 65 72 72 2c 20 |fprintf(|stderr, |
|00002690| 22 64 65 72 65 7a 3a 20 | 62 61 64 20 76 61 6c 75 |"derez: |bad valu|
|000026a0| 65 20 66 6f 72 20 2d 74 | 20 61 72 67 75 6d 65 6e |e for -t| argumen|
|000026b0| 74 5c 6e 22 29 3b 0a 58 | 09 09 09 09 65 78 69 74 |t\n");.X|....exit|
|000026c0| 28 31 29 3b 0a 58 09 09 | 09 7d 0a 58 09 09 09 61 |(1);.X..|.}.X...a|
|000026d0| 72 67 76 20 2b 3d 20 32 | 3b 0a 58 09 09 09 61 72 |rgv += 2|;.X...ar|
|000026e0| 67 63 20 2d 3d 20 32 3b | 0a 58 09 09 7d 0a 58 09 |gc -= 2;|.X..}.X.|
|000026f0| 09 77 68 69 6c 65 28 61 | 72 67 63 20 3e 20 31 29 |.while(a|rgc > 1)|
|00002700| 20 7b 0a 58 09 09 09 69 | 66 28 28 73 74 72 6e 63 | {.X...i|f((strnc|
|00002710| 6d 70 28 61 72 67 76 5b | 31 5d 2c 20 22 2f 22 2c |mp(argv[|1], "/",|
|00002720| 20 73 74 72 6c 65 6e 28 | 22 2f 22 29 29 20 3d 3d | strlen(|"/")) ==|
|00002730| 20 30 29 20 7c 7c 20 28 | 73 74 72 6e 63 6d 70 28 | 0) || (|strncmp(|
|00002740| 61 72 67 76 5b 31 5d 2c | 20 22 2e 2e 2f 22 2c 20 |argv[1],| "../", |
|00002750| 73 74 72 6c 65 6e 28 22 | 2e 2e 2f 22 29 29 20 3d |strlen("|../")) =|
|00002760| 3d 20 30 29 29 20 7b 0a | 58 09 09 09 09 66 70 72 |= 0)) {.|X....fpr|
|00002770| 69 6e 74 66 28 73 74 64 | 65 72 72 2c 20 22 64 65 |intf(std|err, "de|
|00002780| 72 65 7a 3a 20 44 69 72 | 65 63 74 6f 72 69 65 73 |rez: Dir|ectories|
|00002790| 20 6d 75 73 74 20 62 65 | 20 72 65 6c 61 74 69 76 | must be| relativ|
|000027a0| 65 20 74 6f 20 2e 5c 6e | 22 29 3b 0a 58 09 09 09 |e to .\n|");.X...|
|000027b0| 09 65 78 69 74 28 31 29 | 3b 0a 58 09 09 09 7d 0a |.exit(1)|;.X...}.|
|000027c0| 58 09 09 09 69 66 28 6c | 73 74 61 74 28 61 72 67 |X...if(l|stat(arg|
|000027d0| 76 5b 31 5d 2c 20 26 73 | 74 61 74 62 75 66 29 29 |v[1], &s|tatbuf))|
|000027e0| 20 7b 0a 58 09 09 09 09 | 66 70 72 69 6e 74 66 28 | {.X....|fprintf(|
|000027f0| 73 74 64 65 72 72 2c 20 | 22 54 68 65 20 64 69 72 |stderr, |"The dir|
|00002800| 65 63 74 6f 72 79 20 25 | 73 20 6d 75 73 74 20 65 |ectory %|s must e|
|00002810| 78 69 73 74 5c 6e 22 2c | 20 61 72 67 76 5b 31 5d |xist\n",| argv[1]|
|00002820| 29 3b 0a 58 09 09 09 09 | 65 78 69 74 28 31 29 3b |);.X....|exit(1);|
|00002830| 0a 58 09 09 09 7d 0a 58 | 09 09 09 69 66 28 73 74 |.X...}.X|...if(st|
|00002840| 61 74 62 75 66 2e 73 74 | 5f 6d 6f 64 65 20 26 20 |atbuf.st|_mode & |
|00002850| 53 5f 49 46 44 49 52 29 | 20 7b 0a 58 09 09 09 09 |S_IFDIR)| {.X....|
|00002860| 69 66 28 64 69 72 6c 69 | 73 74 5b 30 5d 20 21 3d |if(dirli|st[0] !=|
|00002870| 20 4e 55 4c 4c 29 0a 58 | 09 09 09 09 09 73 74 72 | NULL).X|.....str|
|00002880| 63 61 74 28 64 69 72 6c | 69 73 74 2c 20 22 20 22 |cat(dirl|ist, " "|
|00002890| 29 3b 0a 58 09 09 09 09 | 73 74 72 63 61 74 28 64 |);.X....|strcat(d|
|000028a0| 69 72 6c 69 73 74 2c 20 | 61 72 67 76 5b 31 5d 29 |irlist, |argv[1])|
|000028b0| 3b 0a 58 09 09 09 09 61 | 72 67 76 20 2b 3d 20 31 |;.X....a|rgv += 1|
|000028c0| 3b 0a 58 09 09 09 09 61 | 72 67 63 20 2d 3d 20 31 |;.X....a|rgc -= 1|
|000028d0| 3b 0a 58 09 09 09 7d 0a | 58 09 09 09 65 6c 73 65 |;.X...}.|X...else|
|000028e0| 20 7b 0a 58 09 09 09 09 | 66 70 72 69 6e 74 66 28 | {.X....|fprintf(|
|000028f0| 73 74 64 65 72 72 2c 20 | 22 64 65 72 65 7a 3a 20 |stderr, |"derez: |
|00002900| 25 73 20 69 73 20 6e 6f | 74 20 61 20 64 69 72 65 |%s is no|t a dire|
|00002910| 63 74 6f 72 79 5c 6e 22 | 2c 20 61 72 67 76 5b 31 |ctory\n"|, argv[1|
|00002920| 5d 29 3b 0a 58 09 09 09 | 09 65 78 69 74 28 31 29 |]);.X...|.exit(1)|
|00002930| 3b 0a 58 09 09 09 7d 0a | 58 09 09 7d 0a 58 09 7d |;.X...}.|X..}.X.}|
|00002940| 0a 58 09 2f 2a 20 57 65 | 20 63 75 72 72 65 6e 74 |.X./* We| current|
|00002950| 6c 79 20 6f 6e 6c 79 20 | 64 65 72 65 7a 20 66 69 |ly only |derez fi|
|00002960| 6c 65 73 20 77 69 74 68 | 20 31 20 6c 69 6e 6b 20 |les with| 1 link |
|00002970| 61 73 20 64 65 72 65 7a | 20 77 6f 75 6c 64 0a 58 |as derez| would.X|
|00002980| 09 62 72 65 61 6b 20 75 | 70 20 74 77 6f 20 6c 69 |.break u|p two li|
|00002990| 6e 6b 73 20 74 6f 20 74 | 68 65 20 73 61 6d 65 20 |nks to t|he same |
|000029a0| 66 69 6c 65 20 69 6e 74 | 6f 20 73 65 70 65 72 61 |file int|o sepera|
|000029b0| 74 65 20 66 69 6c 65 73 | 2e 0a 58 09 57 65 20 77 |te files|..X.We w|
|000029c0| 69 6c 6c 20 68 61 76 65 | 20 74 6f 20 73 74 65 61 |ill have| to stea|
|000029d0| 6c 20 63 6f 64 65 20 66 | 72 6f 6d 20 74 61 72 20 |l code f|rom tar |
|000029e0| 74 6f 20 64 6f 20 61 6e | 20 69 6e 74 65 72 6e 61 |to do an| interna|
|000029f0| 6c 20 6c 69 6e 6b 20 74 | 61 62 6c 65 0a 58 09 61 |l link t|able.X.a|
|00002a00| 6e 64 20 64 72 6f 70 20 | 74 68 65 20 75 73 65 20 |nd drop |the use |
|00002a10| 6f 66 20 74 61 72 20 63 | 6f 6d 70 6c 65 74 65 6c |of tar c|ompletel|
|00002a20| 79 2e 0a 58 09 09 2a 2f | 0a 58 09 73 70 72 69 6e |y..X..*/|.X.sprin|
|00002a30| 74 66 28 63 6d 64 2c 20 | 22 66 69 6e 64 20 25 73 |tf(cmd, |"find %s|
|00002a40| 20 2d 74 79 70 65 20 66 | 20 2d 6c 69 6e 6b 73 20 | -type f| -links |
|00002a50| 31 20 2d 61 74 69 6d 65 | 20 2b 25 64 20 2d 70 72 |1 -atime| +%d -pr|
|00002a60| 69 6e 74 20 3e 20 4d 4f | 52 47 55 45 2f 44 45 52 |int > MO|RGUE/DER|
|00002a70| 45 5a 22 2c 0a 58 09 09 | 28 64 69 72 6c 69 73 74 |EZ",.X..|(dirlist|
|00002a80| 5b 30 5d 20 3d 3d 20 4e | 55 4c 4c 20 3f 20 22 2e |[0] == N|ULL ? ".|
|00002a90| 22 20 3a 20 64 69 72 6c | 69 73 74 29 2c 20 73 69 |" : dirl|ist), si|
|00002aa0| 6e 63 65 29 3b 0a 58 0a | 58 09 70 72 69 6e 74 66 |nce);.X.|X.printf|
|00002ab0| 28 22 25 73 5c 6e 22 2c | 20 63 6d 64 29 3b 0a 58 |("%s\n",| cmd);.X|
|00002ac0| 09 69 66 28 73 79 73 74 | 65 6d 28 63 6d 64 29 20 |.if(syst|em(cmd) |
|00002ad0| 21 3d 20 30 29 20 7b 0a | 58 09 09 66 70 72 69 6e |!= 0) {.|X..fprin|
|00002ae0| 74 66 28 73 74 64 65 72 | 72 2c 20 22 64 65 72 65 |tf(stder|r, "dere|
|00002af0| 7a 3a 20 54 68 65 20 61 | 74 74 65 6d 70 74 20 74 |z: The a|ttempt t|
|00002b00| 6f 20 63 72 65 61 74 65 | 20 4d 4f 52 47 55 45 2f |o create| MORGUE/|
|00002b10| 44 45 52 45 5a 20 66 61 | 69 6c 65 64 5c 6e 22 29 |DEREZ fa|iled\n")|
|00002b20| 3b 0a 58 09 09 65 78 69 | 74 28 31 29 3b 0a 58 09 |;.X..exi|t(1);.X.|
|00002b30| 7d 0a 58 09 69 66 28 28 | 66 70 74 72 20 3d 20 66 |}.X.if((|fptr = f|
|00002b40| 6f 70 65 6e 28 22 4d 4f | 52 47 55 45 2f 44 45 52 |open("MO|RGUE/DER|
|00002b50| 45 5a 22 2c 20 22 72 22 | 29 29 20 3d 3d 20 4e 55 |EZ", "r"|)) == NU|
|00002b60| 4c 4c 29 20 7b 0a 58 09 | 09 66 70 72 69 6e 74 66 |LL) {.X.|.fprintf|
|00002b70| 28 73 74 64 65 72 72 2c | 20 22 4f 70 65 6e 20 6f |(stderr,| "Open o|
|00002b80| 66 20 4d 4f 52 47 55 45 | 2f 44 45 52 45 5a 20 66 |f MORGUE|/DEREZ f|
|00002b90| 6f 72 20 72 65 61 64 69 | 6e 67 20 66 61 69 6c 65 |or readi|ng faile|
|00002ba0| 64 5c 6e 22 29 3b 0a 58 | 09 09 65 78 69 74 28 31 |d\n");.X|..exit(1|
|00002bb0| 29 3b 0a 58 09 7d 0a 58 | 09 77 68 69 6c 65 28 66 |);.X.}.X|.while(f|
|00002bc0| 67 65 74 73 28 66 69 6c | 65 6e 61 6d 65 2c 20 4d |gets(fil|ename, M|
|00002bd0| 41 58 4c 45 4e 2c 20 66 | 70 74 72 29 20 21 3d 20 |AXLEN, f|ptr) != |
|00002be0| 4e 55 4c 4c 29 20 7b 0a | 58 09 09 63 68 61 72 20 |NULL) {.|X..char |
|00002bf0| 2a 72 69 67 68 74 73 6c | 61 73 68 3b 0a 58 09 09 |*rightsl|ash;.X..|
|00002c00| 2f 2a 20 4b 69 6c 6c 20 | 6f 66 66 20 74 68 65 20 |/* Kill |off the |
|00002c10| 6e 65 77 6c 69 6e 65 2e | 20 2a 2f 0a 58 09 09 69 |newline.| */.X..i|
|00002c20| 66 28 66 69 6c 65 6e 61 | 6d 65 5b 73 74 72 6c 65 |f(filena|me[strle|
|00002c30| 6e 28 66 69 6c 65 6e 61 | 6d 65 29 20 2d 20 31 5d |n(filena|me) - 1]|
|00002c40| 20 21 3d 20 27 5c 6e 27 | 29 20 7b 0a 58 09 09 09 | != '\n'|) {.X...|
|00002c50| 66 70 72 69 6e 74 66 28 | 73 74 64 65 72 72 2c 20 |fprintf(|stderr, |
|00002c60| 22 6d 69 73 73 69 6e 67 | 20 5c 5c 6e 20 6f 6e 20 |"missing| \\n on |
|00002c70| 25 73 5c 6e 22 2c 20 66 | 69 6c 65 6e 61 6d 65 29 |%s\n", f|ilename)|
|00002c80| 3b 0a 58 09 09 09 63 6f | 6e 74 69 6e 75 65 3b 0a |;.X...co|ntinue;.|
|00002c90| 58 09 09 7d 0a 58 09 09 | 66 69 6c 65 6e 61 6d 65 |X..}.X..|filename|
|00002ca0| 5b 73 74 72 6c 65 6e 28 | 66 69 6c 65 6e 61 6d 65 |[strlen(|filename|
|00002cb0| 29 20 2d 20 31 5d 20 3d | 20 4e 55 4c 4c 3b 0a 58 |) - 1] =| NULL;.X|
|00002cc0| 0a 58 09 09 2f 2a 20 49 | 66 20 74 68 65 20 66 69 |.X../* I|f the fi|
|00002cd0| 6c 65 20 70 61 74 68 20 | 6e 61 6d 65 20 69 73 20 |le path |name is |
|00002ce0| 74 6f 6f 20 6c 6f 6e 67 | 20 77 65 20 64 6f 6e 27 |too long| we don'|
|00002cf0| 74 20 77 61 6e 74 0a 58 | 09 09 74 6f 20 73 65 65 |t want.X|..to see|
|00002d00| 20 74 68 65 20 65 72 72 | 6f 72 20 6d 65 73 73 61 | the err|or messa|
|00002d10| 67 65 20 66 72 6f 6d 20 | 74 61 72 2e 0a 58 09 09 |ge from |tar..X..|
|00002d20| 09 2a 2f 0a 58 09 09 69 | 66 28 73 74 72 6c 65 6e |.*/.X..i|f(strlen|
|00002d30| 28 66 69 6c 65 6e 61 6d | 65 29 20 3e 20 39 39 29 |(filenam|e) > 99)|
|00002d40| 0a 58 09 09 09 63 6f 6e | 74 69 6e 75 65 3b 0a 58 |.X...con|tinue;.X|
|00002d50| 0a 58 09 09 2f 2a 20 49 | 66 20 74 68 65 20 66 69 |.X../* I|f the fi|
|00002d60| 6c 65 20 62 61 73 65 6e | 61 6d 65 20 69 73 20 6f |le basen|ame is o|
|00002d70| 66 20 74 68 65 20 66 6f | 72 6d 20 2e 2a 20 77 65 |f the fo|rm .* we|
|00002d80| 20 77 61 6e 74 20 74 6f | 0a 58 09 09 6c 65 61 76 | want to|.X..leav|
|00002d90| 65 20 69 74 20 61 6c 6f | 6e 65 20 74 6f 20 70 72 |e it alo|ne to pr|
|00002da0| 65 76 65 6e 74 20 72 65 | 6d 6f 76 61 6c 20 6f 66 |event re|moval of|
|00002db0| 20 73 6f 6d 65 6f 6e 65 | 73 20 6c 6f 67 69 6e 0a | someone|s login.|
|00002dc0| 58 09 09 64 69 72 65 63 | 74 6f 72 79 20 6f 72 20 |X..direc|tory or |
|00002dd0| 73 65 74 75 70 20 66 69 | 6c 65 73 2e 20 20 4f 66 |setup fi|les. Of|
|00002de0| 20 63 6f 75 72 73 65 20 | 69 66 20 79 6f 75 20 74 | course |if you t|
|00002df0| 61 6b 65 20 74 68 69 73 | 0a 58 09 09 63 6f 64 65 |ake this|.X..code|
|00002e00| 20 6f 75 74 20 79 6f 75 | 20 67 65 74 20 61 75 74 | out you| get aut|
|00002e10| 6f 6d 61 74 69 63 20 72 | 65 6d 6f 76 61 6c 20 6f |omatic r|emoval o|
|00002e20| 66 20 64 69 72 65 63 74 | 6f 72 69 65 73 0a 58 09 |f direct|ories.X.|
|00002e30| 09 61 73 73 6f 63 69 61 | 74 65 64 20 77 69 74 68 |.associa|ted with|
|00002e40| 20 69 6e 61 63 74 69 76 | 65 20 61 63 63 6f 75 6e | inactiv|e accoun|
|00002e50| 74 73 2e 0a 58 09 09 09 | 2a 2f 0a 58 09 09 69 66 |ts..X...|*/.X..if|
|00002e60| 28 28 72 69 67 68 74 73 | 6c 61 73 68 20 3d 20 72 |((rights|lash = r|
|00002e70| 69 6e 64 65 78 28 66 69 | 6c 65 6e 61 6d 65 2c 20 |index(fi|lename, |
|00002e80| 27 2f 27 29 29 20 21 3d | 20 4e 55 4c 4c 29 20 7b |'/')) !=| NULL) {|
|00002e90| 0a 58 09 09 09 69 66 28 | 72 69 67 68 74 73 6c 61 |.X...if(|rightsla|
|00002ea0| 73 68 5b 31 5d 20 3d 3d | 20 27 2e 27 29 0a 58 09 |sh[1] ==| '.').X.|
|00002eb0| 09 09 09 63 6f 6e 74 69 | 6e 75 65 3b 0a 58 09 09 |...conti|nue;.X..|
|00002ec0| 7d 0a 58 09 09 0a 58 09 | 09 69 66 28 0a 58 09 09 |}.X...X.|.if(.X..|
|00002ed0| 09 2f 2a 20 57 65 20 64 | 6f 6e 27 74 20 77 61 6e |./* We d|on't wan|
|00002ee0| 74 20 74 6f 20 6d 65 73 | 73 20 77 69 74 68 20 66 |t to mes|s with f|
|00002ef0| 69 6c 65 73 20 61 6c 72 | 65 61 64 79 20 69 6e 20 |iles alr|eady in |
|00002f00| 74 68 65 20 4d 4f 52 47 | 55 45 2e 0a 58 09 09 09 |the MORG|UE..X...|
|00002f10| 09 2a 2f 0a 58 09 09 09 | 28 73 74 72 6e 63 6d 70 |.*/.X...|(strncmp|
|00002f20| 28 66 69 6c 65 6e 61 6d | 65 2c 20 22 2e 2f 4d 4f |(filenam|e, "./MO|
|00002f30| 52 47 55 45 2f 22 2c 20 | 73 74 72 6c 65 6e 28 22 |RGUE/", |strlen("|
|00002f40| 2e 2f 4d 4f 52 47 55 45 | 2f 22 29 29 20 21 3d 20 |./MORGUE|/")) != |
|00002f50| 30 29 0a 58 09 09 09 26 | 26 20 28 73 74 72 6e 63 |0).X...&|& (strnc|
|00002f60| 6d 70 28 66 69 6c 65 6e | 61 6d 65 2c 20 22 4d 4f |mp(filen|ame, "MO|
|00002f70| 52 47 55 45 2f 22 2c 20 | 73 74 72 6c 65 6e 28 22 |RGUE/", |strlen("|
|00002f80| 4d 4f 52 47 55 45 2f 22 | 29 29 20 21 3d 20 30 29 |MORGUE/"|)) != 0)|
|00002f90| 0a 58 09 09 09 2f 2a 20 | 54 68 65 20 6c 6f 73 74 |.X.../* |The lost|
|00002fa0| 2b 66 6f 75 6e 64 20 64 | 69 72 65 63 74 6f 72 79 |+found d|irectory|
|00002fb0| 20 69 73 20 61 20 73 61 | 63 72 65 64 20 73 79 73 | is a sa|cred sys|
|00002fc0| 74 65 6d 20 69 74 65 6d | 2e 0a 58 09 09 09 09 2a |tem item|..X....*|
|00002fd0| 2f 0a 58 09 09 09 26 26 | 20 28 73 74 72 6e 63 6d |/.X...&&| (strncm|
|00002fe0| 70 28 66 69 6c 65 6e 61 | 6d 65 2c 20 22 2e 2f 6c |p(filena|me, "./l|
|00002ff0| 6f 73 74 2b 66 6f 75 6e | 64 2f 22 2c 20 73 74 72 |ost+foun|d/", str|
|00003000| 6c 65 6e 28 22 2e 2f 6c | 6f 73 74 2b 66 6f 75 6e |len("./l|ost+foun|
|00003010| 64 2f 22 29 29 20 21 3d | 20 30 29 0a 58 09 09 09 |d/")) !=| 0).X...|
|00003020| 26 26 20 28 73 74 72 6e | 63 6d 70 28 66 69 6c 65 |&& (strn|cmp(file|
|00003030| 6e 61 6d 65 2c 20 22 6c | 6f 73 74 2b 66 6f 75 6e |name, "l|ost+foun|
|00003040| 64 2f 22 2c 20 73 74 72 | 6c 65 6e 28 22 6c 6f 73 |d/", str|len("los|
|00003050| 74 2b 66 6f 75 6e 64 2f | 22 29 29 20 21 3d 20 30 |t+found/|")) != 0|
|00003060| 29 0a 58 09 09 09 2f 2a | 20 49 66 20 77 65 20 77 |).X.../*| If we w|
|00003070| 65 72 65 20 74 6f 20 65 | 6e 6d 6f 72 67 75 65 20 |ere to e|nmorgue |
|00003080| 61 20 66 69 6c 65 20 6e | 61 6d 65 64 20 44 45 52 |a file n|amed DER|
|00003090| 45 5a 2c 20 77 65 0a 58 | 09 09 09 77 6f 75 6c 64 |EZ, we.X|...would|
|000030a0| 20 6f 76 65 72 77 72 69 | 74 65 20 74 68 65 20 6c | overwri|te the l|
|000030b0| 69 73 74 20 6f 66 20 66 | 69 6c 65 73 20 74 6f 20 |ist of f|iles to |
|000030c0| 6d 6f 76 65 2e 0a 58 09 | 09 09 09 2a 2f 0a 58 09 |move..X.|...*/.X.|
|000030d0| 09 09 26 26 20 28 73 74 | 72 6e 63 6d 70 28 66 69 |..&& (st|rncmp(fi|
|000030e0| 6c 65 6e 61 6d 65 2c 20 | 22 2e 2f 44 45 52 45 5a |lename, |"./DEREZ|
|000030f0| 22 29 20 21 3d 20 30 29 | 0a 58 09 09 09 26 26 20 |") != 0)|.X...&& |
|00003100| 28 73 74 72 63 6d 70 28 | 66 69 6c 65 6e 61 6d 65 |(strcmp(|filename|
|00003110| 2c 20 22 44 45 52 45 5a | 22 29 20 21 3d 20 30 29 |, "DEREZ|") != 0)|
|00003120| 0a 58 09 09 29 7b 0a 58 | 09 09 09 73 70 72 69 6e |.X..){.X|...sprin|
|00003130| 74 66 28 63 6d 64 2c 20 | 22 74 61 72 20 63 66 20 |tf(cmd, |"tar cf |
|00003140| 2d 20 25 73 20 7c 20 28 | 63 64 20 4d 4f 52 47 55 |- %s | (|cd MORGU|
|00003150| 45 3b 20 74 61 72 20 78 | 70 66 20 2d 29 22 2c 20 |E; tar x|pf -)", |
|00003160| 66 69 6c 65 6e 61 6d 65 | 29 3b 0a 58 09 09 09 69 |filename|);.X...i|
|00003170| 66 28 73 79 73 74 65 6d | 28 63 6d 64 29 20 3d 3d |f(system|(cmd) ==|
|00003180| 20 30 29 20 7b 0a 58 09 | 09 09 09 66 70 72 69 6e | 0) {.X.|...fprin|
|00003190| 74 66 28 73 74 64 65 72 | 72 2c 20 22 65 6e 6d 6f |tf(stder|r, "enmo|
|000031a0| 72 67 75 65 20 6f 66 20 | 25 73 20 73 75 63 63 65 |rgue of |%s succe|
|000031b0| 65 64 65 64 5c 6e 22 2c | 20 66 69 6c 65 6e 61 6d |eded\n",| filenam|
|000031c0| 65 29 3b 0a 58 09 09 09 | 09 75 6e 6c 69 6e 6b 28 |e);.X...|.unlink(|
|000031d0| 66 69 6c 65 6e 61 6d 65 | 29 3b 0a 58 09 09 09 09 |filename|);.X....|
|000031e0| 2f 2a 20 49 66 20 69 74 | 20 77 61 73 20 74 68 65 |/* If it| was the|
|000031f0| 20 6c 61 73 74 20 66 69 | 6c 65 20 69 6e 20 74 68 | last fi|le in th|
|00003200| 65 20 64 69 72 65 63 74 | 6f 72 79 0a 58 09 09 09 |e direct|ory.X...|
|00003210| 09 77 65 20 61 6c 73 6f | 20 77 61 6e 74 20 74 6f |.we also| want to|
|00003220| 20 72 65 6d 6f 76 65 20 | 74 68 65 20 64 69 72 65 | remove |the dire|
|00003230| 63 74 6f 72 79 2e 0a 58 | 09 09 09 09 09 2a 2f 0a |ctory..X|.....*/.|
|00003240| 58 09 09 09 09 77 68 69 | 6c 65 28 73 74 72 6c 65 |X....whi|le(strle|
|00003250| 6e 28 66 69 6c 65 6e 61 | 6d 65 29 20 3e 20 30 20 |n(filena|me) > 0 |
|00003260| 26 26 20 66 69 6c 65 6e | 61 6d 65 5b 73 74 72 6c |&& filen|ame[strl|
|00003270| 65 6e 28 66 69 6c 65 6e | 61 6d 65 29 20 2d 20 31 |en(filen|ame) - 1|
|00003280| 5d 20 21 3d 20 27 2f 27 | 29 20 7b 0a 58 09 09 09 |] != '/'|) {.X...|
|00003290| 09 09 66 69 6c 65 6e 61 | 6d 65 5b 73 74 72 6c 65 |..filena|me[strle|
|000032a0| 6e 28 66 69 6c 65 6e 61 | 6d 65 29 20 2d 20 31 5d |n(filena|me) - 1]|
|000032b0| 20 3d 20 4e 55 4c 4c 3b | 0a 58 09 09 09 09 7d 0a | = NULL;|.X....}.|
|000032c0| 58 09 09 09 09 66 69 6c | 65 6e 61 6d 65 5b 73 74 |X....fil|ename[st|
|000032d0| 72 6c 65 6e 28 66 69 6c | 65 6e 61 6d 65 29 20 2d |rlen(fil|ename) -|
|000032e0| 20 31 5d 20 3d 20 4e 55 | 4c 4c 3b 0a 58 09 09 09 | 1] = NU|LL;.X...|
|000032f0| 09 72 6d 64 69 72 28 66 | 69 6c 65 6e 61 6d 65 29 |.rmdir(f|ilename)|
|00003300| 3b 0a 58 09 09 09 7d 0a | 58 09 09 09 65 6c 73 65 |;.X...}.|X...else|
|00003310| 20 7b 0a 58 09 09 09 09 | 66 70 72 69 6e 74 66 28 | {.X....|fprintf(|
|00003320| 73 74 64 65 72 72 2c 20 | 22 65 6e 6d 6f 72 67 75 |stderr, |"enmorgu|
|00003330| 65 20 6f 66 20 25 73 20 | 46 41 49 4c 45 44 2c 20 |e of %s |FAILED, |
|00003340| 66 69 6c 65 20 72 65 6d | 6f 76 61 6c 20 77 61 73 |file rem|oval was|
|00003350| 20 69 6e 68 69 62 69 74 | 65 64 5c 6e 22 2c 20 66 | inhibit|ed\n", f|
|00003360| 69 6c 65 6e 61 6d 65 29 | 3b 0a 58 09 09 09 7d 0a |ilename)|;.X...}.|
|00003370| 58 09 09 7d 0a 58 09 7d | 0a 58 09 66 63 6c 6f 73 |X..}.X.}|.X.fclos|
|00003380| 65 28 66 70 74 72 29 3b | 0a 58 7d 0a 45 4e 44 5f |e(fptr);|.X}.END_|
|00003390| 4f 46 5f 64 65 72 65 7a | 2e 63 0a 69 66 20 74 65 |OF_derez|.c.if te|
|000033a0| 73 74 20 34 33 38 38 20 | 2d 6e 65 20 60 77 63 20 |st 4388 |-ne `wc |
|000033b0| 2d 63 20 3c 64 65 72 65 | 7a 2e 63 60 3b 20 74 68 |-c <dere|z.c`; th|
|000033c0| 65 6e 0a 20 20 20 20 65 | 63 68 6f 20 73 68 61 72 |en. e|cho shar|
|000033d0| 3a 20 5c 22 64 65 72 65 | 7a 2e 63 5c 22 20 75 6e |: \"dere|z.c\" un|
|000033e0| 70 61 63 6b 65 64 20 77 | 69 74 68 20 77 72 6f 6e |packed w|ith wron|
|000033f0| 67 20 73 69 7a 65 21 0a | 66 69 0a 23 20 65 6e 64 |g size!.|fi.# end|
|00003400| 20 6f 66 20 6f 76 65 72 | 77 72 69 74 69 6e 67 20 | of over|writing |
|00003410| 63 68 65 63 6b 0a 66 69 | 0a 69 66 20 74 65 73 74 |check.fi|.if test|
|00003420| 20 2d 66 20 72 65 61 64 | 62 79 74 65 2e 63 20 2d | -f read|byte.c -|
|00003430| 61 20 22 24 7b 31 7d 22 | 20 21 3d 20 22 2d 63 22 |a "${1}"| != "-c"|
|00003440| 20 3b 20 74 68 65 6e 20 | 0a 20 20 65 63 68 6f 20 | ; then |. echo |
|00003450| 73 68 61 72 3a 20 57 69 | 6c 6c 20 6e 6f 74 20 6f |shar: Wi|ll not o|
|00003460| 76 65 72 2d 77 72 69 74 | 65 20 65 78 69 73 74 69 |ver-writ|e existi|
|00003470| 6e 67 20 66 69 6c 65 20 | 5c 22 72 65 61 64 62 79 |ng file |\"readby|
|00003480| 74 65 2e 63 5c 22 0a 65 | 6c 73 65 0a 65 63 68 6f |te.c\".e|lse.echo|
|00003490| 20 73 68 61 72 3a 20 45 | 78 74 72 61 63 74 69 6e | shar: E|xtractin|
|000034a0| 67 20 5c 22 72 65 61 64 | 62 79 74 65 2e 63 5c 22 |g \"read|byte.c\"|
|000034b0| 20 5c 28 33 36 33 20 63 | 68 61 72 61 63 74 65 72 | \(363 c|haracter|
|000034c0| 73 5c 29 0a 73 65 64 20 | 22 73 2f 5e 58 2f 2f 22 |s\).sed |"s/^X//"|
|000034d0| 20 3e 72 65 61 64 62 79 | 74 65 2e 63 20 3c 3c 27 | >readby|te.c <<'|
|000034e0| 45 4e 44 5f 4f 46 5f 72 | 65 61 64 62 79 74 65 2e |END_OF_r|eadbyte.|
|000034f0| 63 27 0a 58 23 69 6e 63 | 6c 75 64 65 20 3c 73 74 |c'.X#inc|lude <st|
|00003500| 64 69 6f 2e 68 3e 0a 58 | 0a 58 6d 61 69 6e 28 61 |dio.h>.X|.Xmain(a|
|00003510| 72 67 63 2c 61 72 67 76 | 29 0a 58 69 6e 74 20 61 |rgc,argv|).Xint a|
|00003520| 72 67 63 3b 0a 58 63 68 | 61 72 20 2a 61 72 67 76 |rgc;.Xch|ar *argv|
|00003530| 5b 5d 3b 0a 58 7b 0a 58 | 09 69 6e 74 20 66 64 3b |[];.X{.X|.int fd;|
|00003540| 0a 58 09 63 68 61 72 20 | 63 62 75 66 66 65 72 5b |.X.char |cbuffer[|
|00003550| 35 31 32 5d 3b 0a 58 0a | 58 09 69 66 28 61 72 67 |512];.X.|X.if(arg|
|00003560| 63 20 21 3d 20 32 29 20 | 7b 0a 58 09 09 66 70 72 |c != 2) |{.X..fpr|
|00003570| 69 6e 74 66 28 73 74 64 | 65 72 72 2c 22 75 73 61 |intf(std|err,"usa|
|00003580| 67 65 3a 20 72 65 61 64 | 62 79 74 65 20 66 69 6c |ge: read|byte fil|
|00003590| 65 5c 6e 22 29 3b 0a 58 | 09 09 65 78 69 74 28 31 |e\n");.X|..exit(1|
|000035a0| 29 3b 0a 58 09 7d 0a 58 | 09 69 66 28 28 66 64 3d |);.X.}.X|.if((fd=|
|000035b0| 6f 70 65 6e 28 61 72 67 | 76 5b 31 5d 2c 30 29 29 |open(arg|v[1],0))|
|000035c0| 20 3c 20 30 29 20 7b 0a | 58 09 09 66 70 72 69 6e | < 0) {.|X..fprin|
|000035d0| 74 66 28 73 74 64 65 72 | 72 2c 22 63 61 6e 74 20 |tf(stder|r,"cant |
|000035e0| 6f 70 65 6e 20 25 73 5c | 6e 22 2c 61 72 67 76 5b |open %s\|n",argv[|
|000035f0| 31 5d 29 3b 0a 58 09 09 | 65 78 69 74 28 31 29 3b |1]);.X..|exit(1);|
|00003600| 0a 58 09 7d 0a 58 09 69 | 66 28 72 65 61 64 28 66 |.X.}.X.i|f(read(f|
|00003610| 64 2c 63 62 75 66 66 65 | 72 2c 31 29 20 21 3d 20 |d,cbuffe|r,1) != |
|00003620| 31 29 20 7b 0a 58 09 09 | 66 70 72 69 6e 74 66 28 |1) {.X..|fprintf(|
|00003630| 73 74 64 65 72 72 2c 22 | 63 61 6e 74 20 72 65 61 |stderr,"|cant rea|
|00003640| 64 20 62 79 74 65 20 66 | 72 6f 6d 20 66 69 6c 65 |d byte f|rom file|
|00003650| 20 25 73 5c 6e 22 2c 61 | 72 67 76 5b 31 5d 29 3b | %s\n",a|rgv[1]);|
|00003660| 0a 58 09 09 65 78 69 74 | 28 31 29 3b 0a 58 09 7d |.X..exit|(1);.X.}|
|00003670| 0a 58 7d 0a 45 4e 44 5f | 4f 46 5f 72 65 61 64 62 |.X}.END_|OF_readb|
|00003680| 79 74 65 2e 63 0a 69 66 | 20 74 65 73 74 20 33 36 |yte.c.if| test 36|
|00003690| 33 20 2d 6e 65 20 60 77 | 63 20 2d 63 20 3c 72 65 |3 -ne `w|c -c <re|
|000036a0| 61 64 62 79 74 65 2e 63 | 60 3b 20 74 68 65 6e 0a |adbyte.c|`; then.|
|000036b0| 20 20 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 5c | echo| shar: \|
|000036c0| 22 72 65 61 64 62 79 74 | 65 2e 63 5c 22 20 75 6e |"readbyt|e.c\" un|
|000036d0| 70 61 63 6b 65 64 20 77 | 69 74 68 20 77 72 6f 6e |packed w|ith wron|
|000036e0| 67 20 73 69 7a 65 21 0a | 66 69 0a 23 20 65 6e 64 |g size!.|fi.# end|
|000036f0| 20 6f 66 20 6f 76 65 72 | 77 72 69 74 69 6e 67 20 | of over|writing |
|00003700| 63 68 65 63 6b 0a 66 69 | 0a 65 63 68 6f 20 73 68 |check.fi|.echo sh|
|00003710| 61 72 3a 20 45 6e 64 20 | 6f 66 20 73 68 65 6c 6c |ar: End |of shell|
|00003720| 20 61 72 63 68 69 76 65 | 2e 0a 65 78 69 74 20 30 | archive|..exit 0|
|00003730| 0a | |. | |
+--------+-------------------------+-------------------------+--------+--------+