home *** CD-ROM | disk | FTP | other *** search
view JSON data
|
view as text
|
open on a Mac
|
open on a PC
This file was processed as: SHell self-extracting ARchive
(archive/shar).
You can browse this item here: cpmod
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 31 69 30 32 37 3a |ubject: |v11i027:|
|00000060| 20 20 43 6f 70 79 20 6d | 6f 64 65 73 2f 6f 77 6e | Copy m|odes/own|
|00000070| 65 72 73 68 69 70 73 2f | 74 69 6d 65 73 0a 4d 65 |erships/|times.Me|
|00000080| 73 73 61 67 65 2d 49 44 | 3a 20 3c 31 33 33 33 40 |ssage-ID|: <1333@|
|00000090| 75 75 6e 65 74 2e 55 55 | 2e 4e 45 54 3e 0a 44 61 |uunet.UU|.NET>.Da|
|000000a0| 74 65 3a 20 32 20 53 65 | 70 20 38 37 20 30 30 3a |te: 2 Se|p 87 00:|
|000000b0| 31 33 3a 33 30 20 47 4d | 54 0a 4f 72 67 61 6e 69 |13:30 GM|T.Organi|
|000000c0| 7a 61 74 69 6f 6e 3a 20 | 55 55 4e 45 54 20 43 6f |zation: |UUNET Co|
|000000d0| 6d 6d 75 6e 69 63 61 74 | 69 6f 6e 73 20 53 65 72 |mmunicat|ions Ser|
|000000e0| 76 69 63 65 73 2c 20 41 | 72 6c 69 6e 67 74 6f 6e |vices, A|rlington|
|000000f0| 2c 20 56 41 0a 4c 69 6e | 65 73 3a 20 33 30 35 0a |, VA.Lin|es: 305.|
|00000100| 41 70 70 72 6f 76 65 64 | 3a 20 72 73 40 75 75 6e |Approved|: rs@uun|
|00000110| 65 74 2e 55 55 2e 4e 45 | 54 0a 0a 53 75 62 6d 69 |et.UU.NE|T..Submi|
|00000120| 74 74 65 64 2d 62 79 3a | 20 70 73 69 76 61 78 21 |tted-by:| psivax!|
|00000130| 73 61 40 74 74 69 64 63 | 61 2e 74 74 69 2e 63 6f |sa@ttidc|a.tti.co|
|00000140| 6d 20 28 53 74 65 76 65 | 20 41 6c 74 65 72 29 0a |m (Steve| Alter).|
|00000150| 50 6f 73 74 69 6e 67 2d | 6e 75 6d 62 65 72 3a 20 |Posting-|number: |
|00000160| 56 6f 6c 75 6d 65 20 31 | 31 2c 20 49 73 73 75 65 |Volume 1|1, Issue|
|00000170| 20 32 37 0a 41 72 63 68 | 69 76 65 2d 6e 61 6d 65 | 27.Arch|ive-name|
|00000180| 3a 20 63 70 6d 6f 64 0a | 0a 43 70 6d 6f 64 28 31 |: cpmod.|.Cpmod(1|
|00000190| 29 20 69 73 20 61 20 73 | 69 6d 70 6c 65 20 69 6e |) is a s|imple in|
|000001a0| 6f 64 65 2d 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ode-info|rmation |
|000001b0| 63 6f 70 69 65 72 2e 20 | 20 49 74 20 77 69 6c 6c |copier. | It will|
|000001c0| 20 63 6f 70 79 20 6d 6f | 64 65 73 0a 61 6e 64 2f | copy mo|des.and/|
|000001d0| 6f 72 20 6f 77 6e 65 72 | 73 68 69 70 73 20 61 6e |or owner|ships an|
|000001e0| 64 2f 6f 72 20 74 69 6d | 65 73 74 61 6d 70 73 20 |d/or tim|estamps |
|000001f0| 66 72 6f 6d 20 61 6e 20 | 65 78 69 73 74 69 6e 67 |from an |existing|
|00000200| 20 66 69 6c 65 20 74 6f | 20 61 6e 6f 74 68 65 72 | file to| another|
|00000210| 0a 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 77 |.existin|g file w|
|00000220| 69 74 68 6f 75 74 20 6d | 6f 64 69 66 79 69 6e 67 |ithout m|odifying|
|00000230| 20 74 68 65 20 64 61 74 | 61 2e 20 20 41 20 64 65 | the dat|a. A de|
|00000240| 74 61 69 6c 65 64 20 69 | 6e 74 72 6f 64 75 63 74 |tailed i|ntroduct|
|00000250| 69 6f 6e 0a 69 73 20 69 | 6e 20 74 68 65 20 73 68 |ion.is i|n the sh|
|00000260| 61 72 66 69 6c 65 20 62 | 65 6c 6f 77 20 69 6e 20 |arfile b|elow in |
|00000270| 66 69 6c 65 20 22 63 70 | 6d 6f 64 2e 69 6e 74 72 |file "cp|mod.intr|
|00000280| 6f 22 2e 0a 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |o"..----|--------|
|00000290| 2d 43 55 54 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |-CUT----|--------|
|000002a0| 2d 2d 2d 43 55 54 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |---CUT--|--------|
|000002b0| 2d 2d 2d 2d 2d 2d 43 55 | 54 2d 2d 2d 2d 2d 2d 2d |------CU|T-------|
|000002c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0a 23 21 20 2f 62 |--------|--.#! /b|
|000002d0| 69 6e 2f 73 68 0a 23 20 | 54 68 69 73 20 69 73 20 |in/sh.# |This is |
|000002e0| 61 20 73 68 65 6c 6c 20 | 61 72 63 68 69 76 65 2c |a shell |archive,|
|000002f0| 20 6d 65 61 6e 69 6e 67 | 3a 0a 23 20 31 2e 20 52 | meaning|:.# 1. R|
|00000300| 65 6d 6f 76 65 20 65 76 | 65 72 79 74 68 69 6e 67 |emove ev|erything|
|00000310| 20 61 62 6f 76 65 20 74 | 68 65 20 23 21 20 2f 62 | above t|he #! /b|
|00000320| 69 6e 2f 73 68 20 6c 69 | 6e 65 2e 0a 23 20 32 2e |in/sh li|ne..# 2.|
|00000330| 20 53 61 76 65 20 74 68 | 65 20 72 65 73 75 6c 74 | Save th|e result|
|00000340| 69 6e 67 20 74 65 78 74 | 20 69 6e 20 61 20 66 69 |ing text| in a fi|
|00000350| 6c 65 2e 0a 23 20 33 2e | 20 45 78 65 63 75 74 65 |le..# 3.| Execute|
|00000360| 20 74 68 65 20 66 69 6c | 65 20 77 69 74 68 20 2f | the fil|e with /|
|00000370| 62 69 6e 2f 73 68 20 28 | 6e 6f 74 20 63 73 68 29 |bin/sh (|not csh)|
|00000380| 20 74 6f 20 63 72 65 61 | 74 65 3a 0a 23 09 63 70 | to crea|te:.#.cp|
|00000390| 6d 6f 64 2e 69 6e 74 72 | 6f 0a 23 09 4d 61 6b 65 |mod.intr|o.#.Make|
|000003a0| 66 69 6c 65 0a 23 09 63 | 70 6d 6f 64 2e 31 0a 23 |file.#.c|pmod.1.#|
|000003b0| 09 63 70 6d 6f 64 2e 63 | 0a 65 78 70 6f 72 74 20 |.cpmod.c|.export |
|000003c0| 50 41 54 48 3b 20 50 41 | 54 48 3d 2f 62 69 6e 3a |PATH; PA|TH=/bin:|
|000003d0| 2f 75 73 72 2f 62 69 6e | 3a 24 50 41 54 48 0a 65 |/usr/bin|:$PATH.e|
|000003e0| 63 68 6f 20 73 68 61 72 | 3a 20 22 65 78 74 72 61 |cho shar|: "extra|
|000003f0| 63 74 69 6e 67 20 27 63 | 70 6d 6f 64 2e 69 6e 74 |cting 'c|pmod.int|
|00000400| 72 6f 27 22 20 27 28 32 | 30 38 37 20 63 68 61 72 |ro'" '(2|087 char|
|00000410| 61 63 74 65 72 73 29 27 | 0a 69 66 20 74 65 73 74 |acters)'|.if test|
|00000420| 20 2d 66 20 27 63 70 6d | 6f 64 2e 69 6e 74 72 6f | -f 'cpm|od.intro|
|00000430| 27 0a 74 68 65 6e 0a 09 | 65 63 68 6f 20 73 68 61 |'.then..|echo sha|
|00000440| 72 3a 20 22 77 69 6c 6c | 20 6e 6f 74 20 6f 76 65 |r: "will| not ove|
|00000450| 72 2d 77 72 69 74 65 20 | 65 78 69 73 74 69 6e 67 |r-write |existing|
|00000460| 20 66 69 6c 65 20 27 63 | 70 6d 6f 64 2e 69 6e 74 | file 'c|pmod.int|
|00000470| 72 6f 27 22 0a 65 6c 73 | 65 0a 73 65 64 20 27 73 |ro'".els|e.sed 's|
|00000480| 2f 5e 58 2f 2f 27 20 3c | 3c 20 5c 53 48 41 52 5f |/^X//' <|< \SHAR_|
|00000490| 45 4f 46 20 3e 20 27 63 | 70 6d 6f 64 2e 69 6e 74 |EOF > 'c|pmod.int|
|000004a0| 72 6f 27 0a 58 48 65 72 | 65 20 69 73 20 61 20 73 |ro'.XHer|e is a s|
|000004b0| 69 6d 70 6c 65 20 63 6f | 6d 6d 61 6e 64 20 63 61 |imple co|mmand ca|
|000004c0| 6c 6c 65 64 20 22 63 70 | 6d 6f 64 22 20 74 68 61 |lled "cp|mod" tha|
|000004d0| 74 20 66 69 74 73 20 69 | 6e 20 74 68 65 20 73 61 |t fits i|n the sa|
|000004e0| 6d 65 20 67 72 6f 75 70 | 20 61 73 0a 58 63 68 6d |me group| as.Xchm|
|000004f0| 6f 64 2c 20 63 68 6f 77 | 6e 20 61 6e 64 20 74 6f |od, chow|n and to|
|00000500| 75 63 68 2e 0a 58 0a 58 | 57 68 61 74 20 69 73 20 |uch..X.X|What is |
|00000510| 22 63 70 6d 6f 64 22 3f | 20 20 57 65 6c 6c 2c 20 |"cpmod"?| Well, |
|00000520| 69 6d 61 67 69 6e 65 20 | 74 68 65 73 65 3a 0a 58 |imagine |these:.X|
|00000530| 0a 58 53 69 74 75 61 74 | 69 6f 6e 20 23 31 3a 0a |.XSituat|ion #1:.|
|00000540| 58 20 20 20 20 20 59 6f | 75 27 76 65 20 67 6f 74 |X Yo|u've got|
|00000550| 20 74 77 6f 20 66 69 6c | 65 73 20 77 69 74 68 20 | two fil|es with |
|00000560| 64 69 66 66 65 72 65 6e | 74 20 64 61 74 61 2c 20 |differen|t data, |
|00000570| 64 69 66 66 65 72 65 6e | 74 20 6d 6f 64 65 73 2c |differen|t modes,|
|00000580| 0a 58 64 69 66 66 65 72 | 65 6e 74 20 6f 77 6e 65 |.Xdiffer|ent owne|
|00000590| 72 73 68 69 70 73 20 61 | 6e 64 20 64 69 66 66 65 |rships a|nd diffe|
|000005a0| 72 65 6e 74 20 74 69 6d | 65 73 2c 20 62 75 74 20 |rent tim|es, but |
|000005b0| 79 6f 75 20 72 65 61 6c | 69 7a 65 20 74 68 61 74 |you real|ize that|
|000005c0| 20 74 68 65 0a 58 6d 6f | 64 65 73 2c 20 6f 77 6e | the.Xmo|des, own|
|000005d0| 65 72 73 68 69 70 73 20 | 61 6e 64 20 74 69 6d 65 |erships |and time|
|000005e0| 73 20 28 6f 72 20 6d 61 | 79 62 65 20 6a 75 73 74 |s (or ma|ybe just|
|000005f0| 20 74 68 65 20 6d 6f 64 | 65 73 20 61 6e 64 20 74 | the mod|es and t|
|00000600| 69 6d 65 73 2c 20 6f 72 | 0a 58 6d 61 79 62 65 20 |imes, or|.Xmaybe |
|00000610| 6a 75 73 74 20 74 68 65 | 20 6f 77 6e 65 72 73 68 |just the| ownersh|
|00000620| 69 70 73 20 66 6f 72 20 | 65 78 61 6d 70 6c 65 29 |ips for |example)|
|00000630| 20 72 65 61 6c 6c 79 20 | 73 68 6f 75 6c 64 20 62 | really |should b|
|00000640| 65 20 74 68 65 20 73 61 | 6d 65 0a 58 62 65 74 77 |e the sa|me.Xbetw|
|00000650| 65 65 6e 20 74 68 65 20 | 74 77 6f 20 66 69 6c 65 |een the |two file|
|00000660| 73 2e 20 20 57 68 61 74 | 20 64 6f 20 79 6f 75 20 |s. What| do you |
|00000670| 64 6f 3f 20 20 59 6f 75 | 20 63 6f 75 6c 64 20 64 |do? You| could d|
|00000680| 6f 20 22 6c 73 20 2d 6c | 67 20 66 69 6c 65 31 22 |o "ls -l|g file1"|
|00000690| 0a 58 74 68 65 6e 20 64 | 6f 20 61 70 70 72 6f 70 |.Xthen d|o approp|
|000006a0| 72 69 61 74 65 20 63 68 | 6d 6f 64 2c 20 63 68 6f |riate ch|mod, cho|
|000006b0| 77 6e 2c 20 63 68 67 72 | 70 20 61 6e 64 20 2f 75 |wn, chgr|p and /u|
|000006c0| 73 72 2f 35 62 69 6e 2f | 74 6f 75 63 68 20 63 6f |sr/5bin/|touch co|
|000006d0| 6d 6d 61 6e 64 73 0a 58 | 6f 6e 20 66 69 6c 65 32 |mmands.X|on file2|
|000006e0| 2c 20 62 75 74 20 79 6f | 75 27 64 20 6c 69 6b 65 |, but yo|u'd like|
|000006f0| 20 73 6f 6d 65 74 68 69 | 6e 67 20 65 61 73 69 65 | somethi|ng easie|
|00000700| 72 2e 20 20 28 2f 75 73 | 72 2f 35 62 69 6e 2f 74 |r. (/us|r/5bin/t|
|00000710| 6f 75 63 68 20 68 61 73 | 20 74 68 65 0a 58 6f 70 |ouch has| the.Xop|
|00000720| 74 69 6f 6e 20 74 6f 20 | 73 70 65 63 69 66 79 20 |tion to |specify |
|00000730| 61 6e 20 65 78 70 6c 69 | 63 69 74 20 74 69 6d 65 |an expli|cit time|
|00000740| 73 74 61 6d 70 20 74 6f | 20 70 6c 61 63 65 20 6f |stamp to| place o|
|00000750| 6e 20 74 68 65 20 66 69 | 6c 65 2e 29 0a 58 0a 58 |n the fi|le.).X.X|
|00000760| 53 69 74 75 61 74 69 6f | 6e 20 23 32 3a 0a 58 20 |Situatio|n #2:.X |
|00000770| 20 20 20 20 59 6f 75 27 | 76 65 20 67 6f 74 20 61 | You'|ve got a|
|00000780| 20 64 69 72 65 63 74 6f | 72 79 20 66 75 6c 6c 20 | directo|ry full |
|00000790| 6f 66 20 64 6f 7a 65 6e | 73 20 6f 72 20 68 75 6e |of dozen|s or hun|
|000007a0| 64 72 65 64 73 20 6f 66 | 20 70 72 6f 67 72 61 6d |dreds of| program|
|000007b0| 73 0a 58 74 68 61 74 20 | 73 68 6f 75 6c 64 20 61 |s.Xthat |should a|
|000007c0| 6c 6c 20 68 61 76 65 20 | 74 68 65 20 73 61 6d 65 |ll have |the same|
|000007d0| 20 6f 77 6e 65 72 73 68 | 69 70 73 20 61 6e 64 20 | ownersh|ips and |
|000007e0| 6d 6f 64 65 73 2c 20 62 | 75 74 20 79 6f 75 20 6e |modes, b|ut you n|
|000007f0| 6f 74 69 63 65 0a 58 73 | 6f 6d 65 20 69 6e 63 6f |otice.Xs|ome inco|
|00000800| 6e 73 69 73 74 65 6e 63 | 69 65 73 2e 20 20 57 68 |nsistenc|ies. Wh|
|00000810| 61 74 20 64 6f 20 79 6f | 75 20 64 6f 3f 20 20 59 |at do yo|u do? Y|
|00000820| 6f 75 20 63 6f 75 6c 64 | 20 64 6f 20 22 6c 73 20 |ou could| do "ls |
|00000830| 2d 6c 67 20 70 72 6f 67 | 72 61 6d 22 0a 58 6f 6e |-lg prog|ram".Xon|
|00000840| 20 6f 6e 65 20 6f 66 20 | 74 68 65 20 63 6f 72 72 | one of |the corr|
|00000850| 65 63 74 20 6f 6e 65 73 | 2c 20 74 68 65 6e 20 64 |ect ones|, then d|
|00000860| 6f 20 61 70 70 72 6f 70 | 72 69 61 74 65 20 63 68 |o approp|riate ch|
|00000870| 6d 6f 64 2c 20 63 68 6f | 77 6e 20 61 6e 64 20 63 |mod, cho|wn and c|
|00000880| 68 67 72 70 0a 58 63 6f | 6d 6d 61 6e 64 73 20 6f |hgrp.Xco|mmands o|
|00000890| 6e 20 61 6c 6c 20 6f 66 | 20 74 68 65 20 77 72 6f |n all of| the wro|
|000008a0| 6e 67 20 6f 6e 65 73 2c | 20 62 75 74 20 74 68 61 |ng ones,| but tha|
|000008b0| 74 27 73 20 61 20 42 49 | 47 20 68 61 73 73 6c 65 |t's a BI|G hassle|
|000008c0| 2e 0a 58 0a 58 53 6f 6c | 75 74 69 6f 6e 3a 0a 58 |..X.XSol|ution:.X|
|000008d0| 20 20 20 20 20 43 70 6d | 6f 64 20 69 73 20 61 20 | Cpm|od is a |
|000008e0| 70 72 6f 67 72 61 6d 20 | 77 68 69 63 68 20 63 6f |program |which co|
|000008f0| 70 69 65 73 20 6d 6f 64 | 65 73 2c 20 6f 77 6e 65 |pies mod|es, owne|
|00000900| 72 73 68 69 70 73 20 61 | 6e 64 20 74 69 6d 65 73 |rships a|nd times|
|00000910| 20 66 72 6f 6d 0a 58 6f | 6e 65 20 65 78 69 73 74 | from.Xo|ne exist|
|00000920| 69 6e 67 20 66 69 6c 65 | 20 6f 72 20 64 69 72 65 |ing file| or dire|
|00000930| 63 74 6f 72 79 20 74 6f | 20 6f 74 68 65 72 20 65 |ctory to| other e|
|00000940| 78 69 73 74 69 6e 67 20 | 66 69 6c 65 73 20 28 6f |xisting |files (o|
|00000950| 72 0a 58 64 69 72 65 63 | 74 6f 72 69 65 73 29 20 |r.Xdirec|tories) |
|00000960| 77 69 74 68 6f 75 74 20 | 6d 6f 64 69 66 79 69 6e |without |modifyin|
|00000970| 67 20 74 68 65 20 64 61 | 74 61 20 69 6e 20 61 6e |g the da|ta in an|
|00000980| 79 20 6f 66 20 74 68 65 | 20 64 65 73 74 69 6e 61 |y of the| destina|
|00000990| 74 69 6f 6e 0a 58 66 69 | 6c 65 73 2e 20 20 41 66 |tion.Xfi|les. Af|
|000009a0| 74 65 72 20 74 68 69 73 | 20 70 72 6f 67 72 61 6d |ter this| program|
|000009b0| 20 69 73 20 72 75 6e 2c | 20 61 6e 20 22 6c 73 20 | is run,| an "ls |
|000009c0| 2d 6c 67 64 22 20 63 6f | 6d 6d 61 6e 64 20 77 69 |-lgd" co|mmand wi|
|000009d0| 6c 6c 20 73 68 6f 77 0a | 58 69 64 65 6e 74 69 63 |ll show.|Xidentic|
|000009e0| 61 6c 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 66 |al infor|mation f|
|000009f0| 6f 72 20 61 6c 6c 20 6f | 66 20 74 68 65 20 66 69 |or all o|f the fi|
|00000a00| 6c 65 73 20 73 70 65 63 | 69 66 69 65 64 20 6f 6e |les spec|ified on|
|00000a10| 20 74 68 65 20 63 6f 6d | 6d 61 6e 64 0a 58 6c 69 | the com|mand.Xli|
|00000a20| 6e 65 2c 20 65 78 63 65 | 70 74 20 66 6f 72 20 73 |ne, exce|pt for s|
|00000a30| 69 7a 65 20 61 6e 64 20 | 6e 61 6d 65 2e 20 20 41 |ize and |name. A|
|00000a40| 6c 6c 20 6f 66 20 74 68 | 69 73 20 69 73 2c 20 6f |ll of th|is is, o|
|00000a50| 66 20 63 6f 75 72 73 65 | 2c 20 73 75 62 6a 65 63 |f course|, subjec|
|00000a60| 74 20 74 6f 0a 58 61 63 | 63 65 73 73 20 70 65 72 |t to.Xac|cess per|
|00000a70| 6d 69 73 73 69 6f 6e 73 | 20 6f 6e 20 74 68 65 20 |missions| on the |
|00000a80| 66 69 6c 65 73 20 61 6e | 64 20 70 61 74 68 6e 61 |files an|d pathna|
|00000a90| 6d 65 73 2e 20 20 54 68 | 65 72 65 20 61 72 65 20 |mes. Th|ere are |
|00000aa0| 6f 70 74 69 6f 6e 73 20 | 74 6f 0a 58 6f 6d 69 74 |options |to.Xomit|
|00000ab0| 20 74 68 65 20 6d 6f 64 | 65 73 20 61 6e 64 2f 6f | the mod|es and/o|
|00000ac0| 72 20 74 68 65 20 6f 77 | 6e 65 72 73 68 69 70 73 |r the ow|nerships|
|00000ad0| 20 61 6e 64 2f 6f 72 20 | 74 68 65 20 74 69 6d 65 | and/or |the time|
|00000ae0| 73 20 66 72 6f 6d 20 74 | 68 65 0a 58 74 72 61 6e |s from t|he.Xtran|
|00000af0| 73 66 65 72 2c 20 62 75 | 74 20 69 66 20 61 6c 6c |sfer, bu|t if all|
|00000b00| 20 74 68 72 65 65 20 61 | 72 65 20 6f 6d 69 74 74 | three a|re omitt|
|00000b10| 65 64 20 74 68 65 6e 20 | 74 68 65 72 65 27 73 20 |ed then |there's |
|00000b20| 6e 6f 74 68 69 6e 67 20 | 6c 65 66 74 20 74 6f 20 |nothing |left to |
|00000b30| 64 6f 0a 58 61 6e 64 20 | 74 68 65 20 70 72 6f 67 |do.Xand |the prog|
|00000b40| 72 61 6d 20 63 6f 6d 70 | 6c 61 69 6e 73 2e 0a 58 |ram comp|lains..X|
|00000b50| 0a 58 41 6e 73 77 65 72 | 20 74 6f 20 53 69 74 75 |.XAnswer| to Situ|
|00000b60| 61 74 69 6f 6e 20 23 31 | 3a 0a 58 20 20 20 20 20 |ation #1|:.X |
|00000b70| 63 70 6d 6f 64 20 66 69 | 6c 65 31 20 66 69 6c 65 |cpmod fi|le1 file|
|00000b80| 32 0a 58 0a 58 41 6e 73 | 77 65 72 20 74 6f 20 53 |2.X.XAns|wer to S|
|00000b90| 69 74 75 61 74 69 6f 6e | 20 23 32 3a 0a 58 20 20 |ituation| #2:.X |
|00000ba0| 20 20 20 63 64 20 64 69 | 72 65 63 74 6f 72 79 20 | cd di|rectory |
|00000bb0| 3b 20 63 70 6d 6f 64 20 | 2d 74 20 63 6f 72 72 65 |; cpmod |-t corre|
|00000bc0| 63 74 5f 66 69 6c 65 20 | 2a 0a 58 4e 6f 74 65 20 |ct_file |*.XNote |
|00000bd0| 74 68 61 74 20 74 68 69 | 73 20 77 69 6c 6c 20 63 |that thi|s will c|
|00000be0| 6f 70 79 20 6d 6f 64 65 | 73 20 61 6e 64 20 6f 77 |opy mode|s and ow|
|00000bf0| 6e 65 72 73 68 69 70 73 | 20 66 72 6f 6d 20 63 6f |nerships| from co|
|00000c00| 72 72 65 63 74 5f 66 69 | 6c 65 20 74 6f 20 61 6c |rrect_fi|le to al|
|00000c10| 6c 0a 58 6f 66 20 74 68 | 65 20 66 69 6c 65 73 20 |l.Xof th|e files |
|00000c20| 69 6e 20 74 68 65 20 77 | 68 6f 6c 65 20 64 69 72 |in the w|hole dir|
|00000c30| 65 63 74 6f 72 79 2c 20 | 69 6e 63 6c 75 64 69 6e |ectory, |includin|
|00000c40| 67 20 63 6f 72 72 65 63 | 74 5f 66 69 6c 65 2c 20 |g correc|t_file, |
|00000c50| 62 75 74 20 74 68 61 74 | 0a 58 6c 69 74 74 6c 65 |but that|.Xlittle|
|00000c60| 20 72 65 64 75 6e 64 61 | 6e 63 79 20 69 73 20 68 | redunda|ncy is h|
|00000c70| 61 72 6d 6c 65 73 73 2e | 0a 58 0a 58 2d 2d 20 53 |armless.|.X.X-- S|
|00000c80| 74 65 76 65 20 41 6c 74 | 65 72 0a 58 2e 2e 2e 21 |teve Alt|er.X...!|
|00000c90| 7b 63 73 75 6e 2c 74 72 | 77 72 62 2c 70 73 69 76 |{csun,tr|wrb,psiv|
|00000ca0| 61 78 7d 21 74 74 69 64 | 63 61 21 61 6c 74 65 72 |ax}!ttid|ca!alter|
|00000cb0| 20 20 6f 72 20 20 61 6c | 74 65 72 40 74 74 69 2e | or al|ter@tti.|
|00000cc0| 63 6f 6d 0a 58 43 69 74 | 69 63 6f 72 70 2f 54 54 |com.XCit|icorp/TT|
|00000cd0| 49 2c 20 53 61 6e 74 61 | 20 4d 6f 6e 69 63 61 20 |I, Santa| Monica |
|00000ce0| 43 41 20 20 28 32 31 33 | 29 20 34 35 32 2d 39 31 |CA (213|) 452-91|
|00000cf0| 39 31 20 78 32 35 34 31 | 0a 53 48 41 52 5f 45 4f |91 x2541|.SHAR_EO|
|00000d00| 46 0a 69 66 20 74 65 73 | 74 20 32 30 38 37 20 2d |F.if tes|t 2087 -|
|00000d10| 6e 65 20 22 60 77 63 20 | 2d 63 20 3c 20 27 63 70 |ne "`wc |-c < 'cp|
|00000d20| 6d 6f 64 2e 69 6e 74 72 | 6f 27 60 22 0a 74 68 65 |mod.intr|o'`".the|
|00000d30| 6e 0a 09 65 63 68 6f 20 | 73 68 61 72 3a 20 22 65 |n..echo |shar: "e|
|00000d40| 72 72 6f 72 20 74 72 61 | 6e 73 6d 69 74 74 69 6e |rror tra|nsmittin|
|00000d50| 67 20 27 63 70 6d 6f 64 | 2e 69 6e 74 72 6f 27 22 |g 'cpmod|.intro'"|
|00000d60| 20 27 28 73 68 6f 75 6c | 64 20 68 61 76 65 20 62 | '(shoul|d have b|
|00000d70| 65 65 6e 20 32 30 38 37 | 20 63 68 61 72 61 63 74 |een 2087| charact|
|00000d80| 65 72 73 29 27 0a 66 69 | 0a 66 69 0a 65 63 68 6f |ers)'.fi|.fi.echo|
|00000d90| 20 73 68 61 72 3a 20 22 | 65 78 74 72 61 63 74 69 | shar: "|extracti|
|00000da0| 6e 67 20 27 4d 61 6b 65 | 66 69 6c 65 27 22 20 27 |ng 'Make|file'" '|
|00000db0| 28 35 34 38 20 63 68 61 | 72 61 63 74 65 72 73 29 |(548 cha|racters)|
|00000dc0| 27 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 4d 61 |'.if tes|t -f 'Ma|
|00000dd0| 6b 65 66 69 6c 65 27 0a | 74 68 65 6e 0a 09 65 63 |kefile'.|then..ec|
|00000de0| 68 6f 20 73 68 61 72 3a | 20 22 77 69 6c 6c 20 6e |ho shar:| "will n|
|00000df0| 6f 74 20 6f 76 65 72 2d | 77 72 69 74 65 20 65 78 |ot over-|write ex|
|00000e00| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 27 4d 61 6b |isting f|ile 'Mak|
|00000e10| 65 66 69 6c 65 27 22 0a | 65 6c 73 65 0a 73 65 64 |efile'".|else.sed|
|00000e20| 20 27 73 2f 5e 58 2f 2f | 27 20 3c 3c 20 5c 53 48 | 's/^X//|' << \SH|
|00000e30| 41 52 5f 45 4f 46 20 3e | 20 27 4d 61 6b 65 66 69 |AR_EOF >| 'Makefi|
|00000e40| 6c 65 27 0a 58 50 52 4f | 47 52 41 4d 20 3d 20 63 |le'.XPRO|GRAM = c|
|00000e50| 70 6d 6f 64 0a 58 0a 58 | 4f 42 4a 45 43 54 53 20 |pmod.X.X|OBJECTS |
|00000e60| 3d 20 63 70 6d 6f 64 2e | 6f 0a 58 0a 58 53 4f 55 |= cpmod.|o.X.XSOU|
|00000e70| 52 43 45 53 20 3d 20 63 | 70 6d 6f 64 2e 63 0a 58 |RCES = c|pmod.c.X|
|00000e80| 0a 58 43 46 4c 41 47 53 | 09 3d 20 2d 4f 0a 58 0a |.XCFLAGS|.= -O.X.|
|00000e90| 58 4c 46 4c 41 47 53 09 | 3d 20 2d 61 62 63 68 78 |XLFLAGS.|= -abchx|
|00000ea0| 0a 58 0a 58 4d 41 4e 50 | 41 47 45 09 3d 20 63 70 |.X.XMANP|AGE.= cp|
|00000eb0| 6d 6f 64 2e 31 0a 58 0a | 58 46 49 4c 45 53 09 3d |mod.1.X.|XFILES.=|
|00000ec0| 20 63 70 6d 6f 64 2e 69 | 6e 74 72 6f 20 4d 61 6b | cpmod.i|ntro Mak|
|00000ed0| 65 66 69 6c 65 20 24 28 | 4d 41 4e 50 41 47 45 29 |efile $(|MANPAGE)|
|00000ee0| 20 24 28 53 4f 55 52 43 | 45 53 29 0a 58 0a 58 50 | $(SOURC|ES).X.XP|
|00000ef0| 52 4f 47 44 49 52 09 3d | 20 2f 75 73 72 2f 6c 6f |ROGDIR.=| /usr/lo|
|00000f00| 63 61 6c 0a 58 0a 58 4d | 41 4e 44 49 52 09 3d 20 |cal.X.XM|ANDIR.= |
|00000f10| 2f 75 73 72 2f 6d 61 6e | 2f 6d 61 6e 31 0a 58 0a |/usr/man|/man1.X.|
|00000f20| 58 24 28 50 52 4f 47 52 | 41 4d 29 3a 20 24 28 4f |X$(PROGR|AM): $(O|
|00000f30| 42 4a 45 43 54 53 29 0a | 58 09 63 63 20 24 28 43 |BJECTS).|X.cc $(C|
|00000f40| 46 4c 41 47 53 29 20 2d | 6f 20 24 28 50 52 4f 47 |FLAGS) -|o $(PROG|
|00000f50| 52 41 4d 29 20 24 28 4f | 42 4a 45 43 54 53 29 0a |RAM) $(O|BJECTS).|
|00000f60| 58 0a 58 6c 69 6e 74 3a | 20 6c 69 6e 74 2e 65 72 |X.Xlint:| lint.er|
|00000f70| 72 0a 58 0a 58 6c 69 6e | 74 2e 65 72 72 3a 20 24 |r.X.Xlin|t.err: $|
|00000f80| 28 53 4f 55 52 43 45 53 | 29 0a 58 09 6c 69 6e 74 |(SOURCES|).X.lint|
|00000f90| 20 24 28 4c 46 4c 41 47 | 53 29 20 24 28 53 4f 55 | $(LFLAG|S) $(SOU|
|00000fa0| 52 43 45 53 29 20 3e 20 | 6c 69 6e 74 2e 65 72 72 |RCES) > |lint.err|
|00000fb0| 0a 58 0a 58 69 6e 73 74 | 61 6c 6c 3a 0a 58 09 69 |.X.Xinst|all:.X.i|
|00000fc0| 6e 73 74 61 6c 6c 20 2d | 73 20 24 28 50 52 4f 47 |nstall -|s $(PROG|
|00000fd0| 52 41 4d 29 20 24 28 50 | 52 4f 47 44 49 52 29 0a |RAM) $(P|ROGDIR).|
|00000fe0| 58 09 69 6e 73 74 61 6c | 6c 20 2d 63 20 24 28 4d |X.instal|l -c $(M|
|00000ff0| 41 4e 50 41 47 45 29 20 | 24 28 4d 41 4e 44 49 52 |ANPAGE) |$(MANDIR|
|00001000| 29 0a 58 0a 58 64 69 73 | 74 20 73 68 61 72 3a 20 |).X.Xdis|t shar: |
|00001010| 73 68 61 72 66 69 6c 65 | 0a 58 0a 58 73 68 61 72 |sharfile|.X.Xshar|
|00001020| 66 69 6c 65 3a 20 24 28 | 46 49 4c 45 53 29 0a 58 |file: $(|FILES).X|
|00001030| 09 73 68 61 72 20 2d 61 | 20 2d 70 20 58 20 24 28 |.shar -a| -p X $(|
|00001040| 46 49 4c 45 53 29 20 3e | 20 73 68 61 72 66 69 6c |FILES) >| sharfil|
|00001050| 65 0a 58 0a 58 63 6c 65 | 61 6e 3a 0a 58 09 72 6d |e.X.Xcle|an:.X.rm|
|00001060| 20 2d 66 20 24 28 50 52 | 4f 47 52 41 4d 29 20 24 | -f $(PR|OGRAM) $|
|00001070| 28 4f 42 4a 45 43 54 53 | 29 20 6c 69 6e 74 2e 65 |(OBJECTS|) lint.e|
|00001080| 72 72 20 73 68 61 72 66 | 69 6c 65 0a 58 0a 53 48 |rr sharf|ile.X.SH|
|00001090| 41 52 5f 45 4f 46 0a 69 | 66 20 74 65 73 74 20 35 |AR_EOF.i|f test 5|
|000010a0| 34 38 20 2d 6e 65 20 22 | 60 77 63 20 2d 63 20 3c |48 -ne "|`wc -c <|
|000010b0| 20 27 4d 61 6b 65 66 69 | 6c 65 27 60 22 0a 74 68 | 'Makefi|le'`".th|
|000010c0| 65 6e 0a 09 65 63 68 6f | 20 73 68 61 72 3a 20 22 |en..echo| shar: "|
|000010d0| 65 72 72 6f 72 20 74 72 | 61 6e 73 6d 69 74 74 69 |error tr|ansmitti|
|000010e0| 6e 67 20 27 4d 61 6b 65 | 66 69 6c 65 27 22 20 27 |ng 'Make|file'" '|
|000010f0| 28 73 68 6f 75 6c 64 20 | 68 61 76 65 20 62 65 65 |(should |have bee|
|00001100| 6e 20 35 34 38 20 63 68 | 61 72 61 63 74 65 72 73 |n 548 ch|aracters|
|00001110| 29 27 0a 66 69 0a 66 69 | 0a 65 63 68 6f 20 73 68 |)'.fi.fi|.echo sh|
|00001120| 61 72 3a 20 22 65 78 74 | 72 61 63 74 69 6e 67 20 |ar: "ext|racting |
|00001130| 27 63 70 6d 6f 64 2e 31 | 27 22 20 27 28 31 31 32 |'cpmod.1|'" '(112|
|00001140| 36 20 63 68 61 72 61 63 | 74 65 72 73 29 27 0a 69 |6 charac|ters)'.i|
|00001150| 66 20 74 65 73 74 20 2d | 66 20 27 63 70 6d 6f 64 |f test -|f 'cpmod|
|00001160| 2e 31 27 0a 74 68 65 6e | 0a 09 65 63 68 6f 20 73 |.1'.then|..echo s|
|00001170| 68 61 72 3a 20 22 77 69 | 6c 6c 20 6e 6f 74 20 6f |har: "wi|ll not o|
|00001180| 76 65 72 2d 77 72 69 74 | 65 20 65 78 69 73 74 69 |ver-writ|e existi|
|00001190| 6e 67 20 66 69 6c 65 20 | 27 63 70 6d 6f 64 2e 31 |ng file |'cpmod.1|
|000011a0| 27 22 0a 65 6c 73 65 0a | 73 65 64 20 27 73 2f 5e |'".else.|sed 's/^|
|000011b0| 58 2f 2f 27 20 3c 3c 20 | 5c 53 48 41 52 5f 45 4f |X//' << |\SHAR_EO|
|000011c0| 46 20 3e 20 27 63 70 6d | 6f 64 2e 31 27 0a 58 2e |F > 'cpm|od.1'.X.|
|000011d0| 54 48 20 43 50 4d 4f 44 | 20 31 20 22 41 75 67 75 |TH CPMOD| 1 "Augu|
|000011e0| 73 74 20 31 33 2c 20 31 | 39 38 37 22 0a 58 2e 55 |st 13, 1|987".X.U|
|000011f0| 43 20 34 0a 58 2e 53 48 | 20 4e 41 4d 45 0a 58 63 |C 4.X.SH| NAME.Xc|
|00001200| 70 6d 6f 64 20 5c 2d 20 | 63 6f 70 79 20 6d 6f 64 |pmod \- |copy mod|
|00001210| 65 73 2c 20 6f 77 6e 65 | 72 73 68 69 70 73 20 61 |es, owne|rships a|
|00001220| 6e 64 20 74 69 6d 65 73 | 0a 58 2e 53 48 20 53 59 |nd times|.X.SH SY|
|00001230| 4e 4f 50 53 49 53 0a 58 | 2e 42 20 63 70 6d 6f 64 |NOPSIS.X|.B cpmod|
|00001240| 0a 58 5b 0a 58 2e 42 20 | 5c 2d 6d 0a 58 5d 20 5b |.X[.X.B |\-m.X] [|
|00001250| 0a 58 2e 42 20 5c 2d 6f | 0a 58 5d 20 5b 0a 58 2e |.X.B \-o|.X] [.X.|
|00001260| 42 20 5c 2d 74 0a 58 5d | 20 66 69 6c 65 20 6f 74 |B \-t.X]| file ot|
|00001270| 68 65 72 2d 66 69 6c 65 | 73 20 2e 2e 2e 0a 58 2e |her-file|s ....X.|
|00001280| 53 48 20 4f 52 49 47 49 | 4e 0a 58 34 2e 33 42 53 |SH ORIGI|N.X4.3BS|
|00001290| 44 0a 58 2e 53 48 20 44 | 45 53 43 52 49 50 54 49 |D.X.SH D|ESCRIPTI|
|000012a0| 4f 4e 0a 58 54 68 65 20 | 6d 6f 64 65 73 2c 20 6f |ON.XThe |modes, o|
|000012b0| 77 6e 65 72 73 68 69 70 | 73 20 61 6e 64 20 74 69 |wnership|s and ti|
|000012c0| 6d 65 73 20 6f 66 0a 58 | 2e 49 20 66 69 6c 65 0a |mes of.X|.I file.|
|000012d0| 58 61 72 65 20 73 65 74 | 20 69 6e 74 6f 20 74 68 |Xare set| into th|
|000012e0| 65 20 69 6e 6f 64 65 73 | 20 6f 66 20 61 6c 6c 20 |e inodes| of all |
|000012f0| 6f 66 20 74 68 65 0a 58 | 2e 49 52 20 6f 74 68 65 |of the.X|.IR othe|
|00001300| 72 2d 66 69 6c 65 73 20 | 2e 0a 58 49 66 20 74 68 |r-files |..XIf th|
|00001310| 65 0a 58 2e 42 52 20 5c | 2d 6d 20 2c 0a 58 2e 42 |e.X.BR \|-m ,.X.B|
|00001320| 20 5c 2d 6f 0a 58 61 6e | 64 2f 6f 72 0a 58 2e 42 | \-o.Xan|d/or.X.B|
|00001330| 20 5c 2d 74 0a 58 6f 70 | 74 69 6f 6e 73 20 61 72 | \-t.Xop|tions ar|
|00001340| 65 20 67 69 76 65 6e 2c | 20 74 68 65 6e 20 74 68 |e given,| then th|
|00001350| 65 20 6d 6f 64 65 73 2c | 20 6f 77 6e 65 72 73 68 |e modes,| ownersh|
|00001360| 69 70 73 20 61 6e 64 2f | 6f 72 20 74 69 6d 65 73 |ips and/|or times|
|00001370| 0a 58 72 65 73 70 65 63 | 74 69 76 65 6c 79 20 64 |.Xrespec|tively d|
|00001380| 6f 20 6e 6f 74 20 70 61 | 72 74 69 63 69 70 61 74 |o not pa|rticipat|
|00001390| 65 20 69 6e 20 74 68 65 | 20 74 72 61 6e 73 66 65 |e in the| transfe|
|000013a0| 72 2e 0a 58 2e 53 48 20 | 53 45 45 20 41 4c 53 4f |r..X.SH |SEE ALSO|
|000013b0| 0a 58 63 68 6d 6f 64 28 | 31 29 2c 20 63 68 6f 77 |.Xchmod(|1), chow|
|000013c0| 6e 28 31 29 2c 20 75 74 | 69 6d 65 73 28 32 29 0a |n(1), ut|imes(2).|
|000013d0| 58 2e 53 48 20 44 49 41 | 47 4e 4f 53 54 49 43 53 |X.SH DIA|GNOSTICS|
|000013e0| 0a 58 49 66 20 61 6c 6c | 20 74 68 72 65 65 20 6f |.XIf all| three o|
|000013f0| 66 20 74 68 65 20 6f 70 | 74 69 6f 6e 73 20 61 72 |f the op|tions ar|
|00001400| 65 20 73 70 65 63 69 66 | 69 65 64 2c 20 74 68 65 |e specif|ied, the|
|00001410| 6e 20 6e 6f 20 77 6f 72 | 6b 20 72 65 6d 61 69 6e |n no wor|k remain|
|00001420| 73 20 74 6f 20 62 65 20 | 64 6f 6e 65 0a 58 61 6e |s to be |done.Xan|
|00001430| 64 20 61 6e 20 61 70 70 | 72 6f 70 72 69 61 74 65 |d an app|ropriate|
|00001440| 20 65 72 72 6f 72 2d 6d | 65 73 73 61 67 65 20 69 | error-m|essage i|
|00001450| 73 20 69 73 73 75 65 64 | 2e 0a 58 2e 53 48 20 52 |s issued|..X.SH R|
|00001460| 45 53 54 52 49 43 54 49 | 4f 4e 53 0a 58 45 61 63 |ESTRICTI|ONS.XEac|
|00001470| 68 20 66 69 6c 65 20 61 | 63 74 75 61 6c 6c 79 20 |h file a|ctually |
|00001480| 68 61 73 20 74 68 72 65 | 65 20 74 69 6d 65 73 74 |has thre|e timest|
|00001490| 61 6d 70 73 20 62 75 74 | 20 74 68 69 73 20 70 72 |amps but| this pr|
|000014a0| 6f 67 72 61 6d 20 63 61 | 6e 20 6f 6e 6c 79 20 73 |ogram ca|n only s|
|000014b0| 65 74 20 74 77 6f 0a 58 | 6f 66 20 74 68 65 6d 2e |et two.X|of them.|
|000014c0| 20 20 54 68 65 20 74 68 | 69 72 64 20 69 73 20 74 | The th|ird is t|
|000014d0| 68 65 20 22 6c 61 73 74 | 20 69 6e 6f 64 65 2d 6d |he "last| inode-m|
|000014e0| 6f 64 69 66 69 63 61 74 | 69 6f 6e 22 20 74 69 6d |odificat|ion" tim|
|000014f0| 65 20 61 6e 64 20 63 61 | 6e 6e 6f 74 20 62 65 0a |e and ca|nnot be.|
|00001500| 58 65 78 70 6c 69 63 69 | 74 6c 79 20 6f 76 65 72 |Xexplici|tly over|
|00001510| 77 72 69 74 74 65 6e 20 | 62 79 20 61 6e 79 20 70 |written |by any p|
|00001520| 72 6f 67 72 61 6d 2e 0a | 58 2e 53 48 20 41 55 54 |rogram..|X.SH AUT|
|00001530| 48 4f 52 0a 58 53 74 65 | 76 65 20 42 2e 20 41 6c |HOR.XSte|ve B. Al|
|00001540| 74 65 72 20 28 43 69 74 | 69 63 6f 72 70 2f 54 54 |ter (Cit|icorp/TT|
|00001550| 49 2c 20 53 61 6e 74 61 | 20 4d 6f 6e 69 63 61 29 |I, Santa| Monica)|
|00001560| 0a 58 2e 53 48 20 49 44 | 45 41 53 0a 58 41 20 76 |.X.SH ID|EAS.XA v|
|00001570| 61 72 69 61 74 69 6f 6e | 20 6f 6e 20 74 68 69 73 |ariation| on this|
|00001580| 20 70 72 6f 67 72 61 6d | 20 63 61 6c 6c 65 64 0a | program| called.|
|00001590| 58 2e 42 20 72 63 70 6d | 6f 64 0a 58 77 6f 75 6c |X.B rcpm|od.Xwoul|
|000015a0| 64 20 62 65 20 74 68 65 | 20 54 43 50 2f 49 50 20 |d be the| TCP/IP |
|000015b0| 6e 65 74 77 6f 72 6b 20 | 62 72 6f 74 68 65 72 20 |network |brother |
|000015c0| 74 6f 0a 58 2e 42 20 63 | 70 6d 6f 64 0a 58 77 68 |to.X.B c|pmod.Xwh|
|000015d0| 69 63 68 20 77 6f 72 6b | 73 20 73 74 72 69 63 74 |ich work|s strict|
|000015e0| 6c 79 20 74 68 72 6f 75 | 67 68 20 74 68 65 20 55 |ly throu|gh the U|
|000015f0| 4e 49 58 20 66 69 6c 65 | 20 68 69 65 72 61 72 63 |NIX file| hierarc|
|00001600| 68 79 20 28 69 6e 63 6c | 75 64 69 6e 67 20 53 55 |hy (incl|uding SU|
|00001610| 4e 20 4e 46 53 2e 29 0a | 58 2e 42 20 52 63 70 6d |N NFS.).|X.B Rcpm|
|00001620| 6f 64 0a 58 77 6f 75 6c | 64 20 72 65 6c 61 74 65 |od.Xwoul|d relate|
|00001630| 20 74 6f 0a 58 2e 42 20 | 63 70 6d 6f 64 0a 58 6a | to.X.B |cpmod.Xj|
|00001640| 75 73 74 20 6c 69 6b 65 | 0a 58 2e 42 20 72 63 70 |ust like|.X.B rcp|
|00001650| 0a 58 72 65 6c 61 74 65 | 73 20 74 6f 0a 58 2e 42 |.Xrelate|s to.X.B|
|00001660| 52 20 63 70 20 2e 0a 53 | 48 41 52 5f 45 4f 46 0a |R cp ..S|HAR_EOF.|
|00001670| 69 66 20 74 65 73 74 20 | 31 31 32 36 20 2d 6e 65 |if test |1126 -ne|
|00001680| 20 22 60 77 63 20 2d 63 | 20 3c 20 27 63 70 6d 6f | "`wc -c| < 'cpmo|
|00001690| 64 2e 31 27 60 22 0a 74 | 68 65 6e 0a 09 65 63 68 |d.1'`".t|hen..ech|
|000016a0| 6f 20 73 68 61 72 3a 20 | 22 65 72 72 6f 72 20 74 |o shar: |"error t|
|000016b0| 72 61 6e 73 6d 69 74 74 | 69 6e 67 20 27 63 70 6d |ransmitt|ing 'cpm|
|000016c0| 6f 64 2e 31 27 22 20 27 | 28 73 68 6f 75 6c 64 20 |od.1'" '|(should |
|000016d0| 68 61 76 65 20 62 65 65 | 6e 20 31 31 32 36 20 63 |have bee|n 1126 c|
|000016e0| 68 61 72 61 63 74 65 72 | 73 29 27 0a 66 69 0a 66 |haracter|s)'.fi.f|
|000016f0| 69 0a 65 63 68 6f 20 73 | 68 61 72 3a 20 22 65 78 |i.echo s|har: "ex|
|00001700| 74 72 61 63 74 69 6e 67 | 20 27 63 70 6d 6f 64 2e |tracting| 'cpmod.|
|00001710| 63 27 22 20 27 28 31 37 | 38 39 20 63 68 61 72 61 |c'" '(17|89 chara|
|00001720| 63 74 65 72 73 29 27 0a | 69 66 20 74 65 73 74 20 |cters)'.|if test |
|00001730| 2d 66 20 27 63 70 6d 6f | 64 2e 63 27 0a 74 68 65 |-f 'cpmo|d.c'.the|
|00001740| 6e 0a 09 65 63 68 6f 20 | 73 68 61 72 3a 20 22 77 |n..echo |shar: "w|
|00001750| 69 6c 6c 20 6e 6f 74 20 | 6f 76 65 72 2d 77 72 69 |ill not |over-wri|
|00001760| 74 65 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |te exist|ing file|
|00001770| 20 27 63 70 6d 6f 64 2e | 63 27 22 0a 65 6c 73 65 | 'cpmod.|c'".else|
|00001780| 0a 73 65 64 20 27 73 2f | 5e 58 2f 2f 27 20 3c 3c |.sed 's/|^X//' <<|
|00001790| 20 5c 53 48 41 52 5f 45 | 4f 46 20 3e 20 27 63 70 | \SHAR_E|OF > 'cp|
|000017a0| 6d 6f 64 2e 63 27 0a 58 | 2f 2a 0a 58 20 2a 20 20 |mod.c'.X|/*.X * |
|000017b0| 63 70 6d 6f 64 2e 63 20 | 2d 2d 20 63 6f 70 79 20 |cpmod.c |-- copy |
|000017c0| 6d 6f 64 65 73 2c 20 6f | 77 6e 65 72 73 68 69 70 |modes, o|wnership|
|000017d0| 73 20 61 6e 64 20 74 69 | 6d 65 73 20 66 72 6f 6d |s and ti|mes from|
|000017e0| 20 6f 6e 65 20 66 69 6c | 65 20 74 6f 20 6f 74 68 | one fil|e to oth|
|000017f0| 65 72 73 2c 0a 58 20 2a | 09 20 20 20 20 20 20 20 |ers,.X *|. |
|00001800| 77 69 74 68 6f 75 74 20 | 61 66 66 65 63 74 69 6e |without |affectin|
|00001810| 67 20 74 68 65 20 64 61 | 74 61 2e 0a 58 20 2a 0a |g the da|ta..X *.|
|00001820| 58 20 2a 20 20 62 79 20 | 53 74 65 76 65 20 41 6c |X * by |Steve Al|
|00001830| 74 65 72 20 28 31 33 2d | 41 75 67 2d 38 37 2c 20 |ter (13-|Aug-87, |
|00001840| 43 69 74 69 63 6f 72 70 | 2f 54 54 49 2c 20 53 61 |Citicorp|/TTI, Sa|
|00001850| 6e 74 61 20 4d 6f 6e 69 | 63 61 2c 20 43 41 29 0a |nta Moni|ca, CA).|
|00001860| 58 20 2a 0a 58 20 2a 2f | 0a 58 0a 58 23 69 6e 63 |X *.X */|.X.X#inc|
|00001870| 6c 75 64 65 20 3c 73 74 | 64 69 6f 2e 68 3e 0a 58 |lude <st|dio.h>.X|
|00001880| 23 69 6e 63 6c 75 64 65 | 20 3c 73 79 73 2f 74 79 |#include| <sys/ty|
|00001890| 70 65 73 2e 68 3e 0a 58 | 23 69 6e 63 6c 75 64 65 |pes.h>.X|#include|
|000018a0| 20 3c 73 79 73 2f 73 74 | 61 74 2e 68 3e 0a 58 23 | <sys/st|at.h>.X#|
|000018b0| 69 6e 63 6c 75 64 65 20 | 3c 73 79 73 2f 74 69 6d |include |<sys/tim|
|000018c0| 65 2e 68 3e 0a 58 0a 58 | 6d 61 69 6e 20 28 61 72 |e.h>.X.X|main (ar|
|000018d0| 67 63 2c 20 61 72 67 76 | 29 0a 58 09 69 6e 74 20 |gc, argv|).X.int |
|000018e0| 61 72 67 63 3b 0a 58 09 | 63 68 61 72 20 2a 2a 61 |argc;.X.|char **a|
|000018f0| 72 67 76 3b 0a 58 7b 0a | 58 09 63 68 61 72 20 2a |rgv;.X{.|X.char *|
|00001900| 70 72 6f 67 5f 6e 61 6d | 65 2c 20 2a 72 69 6e 64 |prog_nam|e, *rind|
|00001910| 65 78 28 29 3b 0a 58 09 | 63 68 61 72 20 2a 73 6f |ex();.X.|char *so|
|00001920| 75 72 63 65 5f 66 69 6c | 65 3b 0a 58 0a 58 09 73 |urce_fil|e;.X.X.s|
|00001930| 68 6f 72 74 20 6e 6f 5f | 6d 6f 64 65 73 20 3d 20 |hort no_|modes = |
|00001940| 30 3b 0a 58 09 73 68 6f | 72 74 20 6e 6f 5f 6f 77 |0;.X.sho|rt no_ow|
|00001950| 6e 65 72 20 3d 20 30 3b | 0a 58 09 73 68 6f 72 74 |ner = 0;|.X.short|
|00001960| 20 6e 6f 5f 74 69 6d 65 | 73 20 3d 20 30 3b 0a 58 | no_time|s = 0;.X|
|00001970| 09 73 68 6f 72 74 20 65 | 72 72 6f 72 20 3d 20 30 |.short e|rror = 0|
|00001980| 3b 0a 58 0a 58 09 73 74 | 72 75 63 74 20 73 74 61 |;.X.X.st|ruct sta|
|00001990| 74 20 73 6f 75 72 63 65 | 5f 62 75 66 2c 20 6e 65 |t source|_buf, ne|
|000019a0| 77 5f 62 75 66 3b 0a 58 | 09 73 74 72 75 63 74 20 |w_buf;.X|.struct |
|000019b0| 74 69 6d 65 76 61 6c 20 | 74 76 70 5b 32 5d 3b 0a |timeval |tvp[2];.|
|000019c0| 58 0a 58 09 69 66 20 28 | 70 72 6f 67 5f 6e 61 6d |X.X.if (|prog_nam|
|000019d0| 65 20 3d 20 72 69 6e 64 | 65 78 28 61 72 67 76 5b |e = rind|ex(argv[|
|000019e0| 30 5d 2c 20 27 2f 27 29 | 29 0a 58 09 09 70 72 6f |0], '/')|).X..pro|
|000019f0| 67 5f 6e 61 6d 65 2b 2b | 3b 0a 58 09 65 6c 73 65 |g_name++|;.X.else|
|00001a00| 0a 58 09 09 70 72 6f 67 | 5f 6e 61 6d 65 20 3d 20 |.X..prog|_name = |
|00001a10| 61 72 67 76 5b 30 5d 3b | 0a 58 0a 58 09 66 6f 72 |argv[0];|.X.X.for|
|00001a20| 20 28 61 72 67 63 2d 2d | 2c 20 61 72 67 76 2b 2b | (argc--|, argv++|
|00001a30| 3b 20 28 61 72 67 63 20 | 26 26 20 2a 2a 61 72 67 |; (argc |&& **arg|
|00001a40| 76 20 3d 3d 20 27 2d 27 | 29 3b 20 61 72 67 63 2d |v == '-'|); argc-|
|00001a50| 2d 2c 20 61 72 67 76 2b | 2b 29 0a 58 09 09 73 77 |-, argv+|+).X..sw|
|00001a60| 69 74 63 68 20 28 28 2a | 61 72 67 76 29 5b 31 5d |itch ((*|argv)[1]|
|00001a70| 29 20 7b 0a 58 09 09 09 | 63 61 73 65 20 27 6d 27 |) {.X...|case 'm'|
|00001a80| 3a 0a 58 09 09 09 09 6e | 6f 5f 6d 6f 64 65 73 2b |:.X....n|o_modes+|
|00001a90| 2b 3b 0a 58 09 09 09 09 | 62 72 65 61 6b 3b 0a 58 |+;.X....|break;.X|
|00001aa0| 09 09 09 63 61 73 65 20 | 27 6f 27 3a 0a 58 09 09 |...case |'o':.X..|
|00001ab0| 09 09 6e 6f 5f 6f 77 6e | 65 72 2b 2b 3b 0a 58 09 |..no_own|er++;.X.|
|00001ac0| 09 09 09 62 72 65 61 6b | 3b 0a 58 09 09 09 63 61 |...break|;.X...ca|
|00001ad0| 73 65 20 27 74 27 3a 0a | 58 09 09 09 09 6e 6f 5f |se 't':.|X....no_|
|00001ae0| 74 69 6d 65 73 2b 2b 3b | 0a 58 09 09 09 09 62 72 |times++;|.X....br|
|00001af0| 65 61 6b 3b 0a 58 09 09 | 09 64 65 66 61 75 6c 74 |eak;.X..|.default|
|00001b00| 3a 0a 58 09 09 09 09 66 | 70 72 69 6e 74 66 28 73 |:.X....f|printf(s|
|00001b10| 74 64 65 72 72 2c 0a 58 | 09 09 09 09 09 22 25 73 |tderr,.X|....."%s|
|00001b20| 3a 20 69 6e 76 61 6c 69 | 64 20 6f 70 74 69 6f 6e |: invali|d option|
|00001b30| 20 5c 22 25 73 5c 22 5c | 6e 22 2c 0a 58 09 09 09 | \"%s\"\|n",.X...|
|00001b40| 09 09 70 72 6f 67 5f 6e | 61 6d 65 2c 20 2a 61 72 |..prog_n|ame, *ar|
|00001b50| 67 76 29 3b 0a 58 09 09 | 09 09 65 72 72 6f 72 2b |gv);.X..|..error+|
|00001b60| 2b 3b 0a 58 09 09 7d 0a | 58 0a 58 09 69 66 20 28 |+;.X..}.|X.X.if (|
|00001b70| 61 72 67 63 20 3c 20 32 | 20 7c 7c 20 65 72 72 6f |argc < 2| || erro|
|00001b80| 72 29 20 7b 0a 58 09 09 | 66 70 72 69 6e 74 66 28 |r) {.X..|fprintf(|
|00001b90| 73 74 64 65 72 72 2c 0a | 58 09 09 09 22 75 73 61 |stderr,.|X..."usa|
|00001ba0| 67 65 3a 20 25 73 20 5b | 2d 6d 5d 20 5b 2d 6f 5d |ge: %s [|-m] [-o]|
|00001bb0| 20 5b 2d 74 5d 20 66 69 | 6c 65 20 6f 74 68 65 72 | [-t] fi|le other|
|00001bc0| 2d 66 69 6c 65 73 20 2e | 2e 2e 5c 6e 22 2c 0a 58 |-files .|..\n",.X|
|00001bd0| 09 09 09 70 72 6f 67 5f | 6e 61 6d 65 29 3b 0a 58 |...prog_|name);.X|
|00001be0| 09 09 65 78 69 74 28 31 | 29 3b 0a 58 09 7d 0a 58 |..exit(1|);.X.}.X|
|00001bf0| 0a 58 09 69 66 20 28 6e | 6f 5f 6d 6f 64 65 73 20 |.X.if (n|o_modes |
|00001c00| 26 26 20 6e 6f 5f 6f 77 | 6e 65 72 20 26 26 20 6e |&& no_ow|ner && n|
|00001c10| 6f 5f 74 69 6d 65 73 29 | 20 7b 0a 58 09 09 66 70 |o_times)| {.X..fp|
|00001c20| 72 69 6e 74 66 28 73 74 | 64 65 72 72 2c 0a 58 09 |rintf(st|derr,.X.|
|00001c30| 09 22 25 73 3a 20 61 6c | 6c 20 74 68 72 65 65 20 |."%s: al|l three |
|00001c40| 6f 70 74 69 6f 6e 73 20 | 64 69 73 61 62 6c 65 64 |options |disabled|
|00001c50| 2c 20 6e 6f 20 77 6f 72 | 6b 20 6c 65 66 74 2e 5c |, no wor|k left.\|
|00001c60| 6e 22 2c 0a 58 09 09 09 | 70 72 6f 67 5f 6e 61 6d |n",.X...|prog_nam|
|00001c70| 65 29 3b 0a 58 09 09 65 | 78 69 74 28 31 29 3b 0a |e);.X..e|xit(1);.|
|00001c80| 58 09 7d 0a 58 0a 58 09 | 73 6f 75 72 63 65 5f 66 |X.}.X.X.|source_f|
|00001c90| 69 6c 65 20 3d 20 2a 61 | 72 67 76 2b 2b 3b 0a 58 |ile = *a|rgv++;.X|
|00001ca0| 09 61 72 67 63 2d 2d 3b | 0a 58 0a 58 09 69 66 20 |.argc--;|.X.X.if |
|00001cb0| 28 73 74 61 74 28 73 6f | 75 72 63 65 5f 66 69 6c |(stat(so|urce_fil|
|00001cc0| 65 2c 20 26 73 6f 75 72 | 63 65 5f 62 75 66 29 29 |e, &sour|ce_buf))|
|00001cd0| 20 7b 0a 58 09 09 70 65 | 72 72 6f 72 28 73 6f 75 | {.X..pe|rror(sou|
|00001ce0| 72 63 65 5f 66 69 6c 65 | 29 3b 0a 58 09 09 65 78 |rce_file|);.X..ex|
|00001cf0| 69 74 28 31 29 3b 0a 58 | 09 7d 0a 58 0a 58 09 77 |it(1);.X|.}.X.X.w|
|00001d00| 68 69 6c 65 20 28 61 72 | 67 63 2d 2d 29 20 7b 0a |hile (ar|gc--) {.|
|00001d10| 58 09 09 69 66 20 28 73 | 74 61 74 28 2a 61 72 67 |X..if (s|tat(*arg|
|00001d20| 76 2c 20 26 6e 65 77 5f | 62 75 66 29 29 20 7b 0a |v, &new_|buf)) {.|
|00001d30| 58 09 09 09 70 65 72 72 | 6f 72 28 2a 61 72 67 76 |X...perr|or(*argv|
|00001d40| 2b 2b 29 3b 0a 58 09 09 | 09 63 6f 6e 74 69 6e 75 |++);.X..|.continu|
|00001d50| 65 3b 0a 58 09 09 7d 0a | 58 09 09 69 66 20 28 21 |e;.X..}.|X..if (!|
|00001d60| 6e 6f 5f 6d 6f 64 65 73 | 29 0a 58 09 09 09 69 66 |no_modes|).X...if|
|00001d70| 20 28 63 68 6d 6f 64 28 | 2a 61 72 67 76 2c 20 28 | (chmod(|*argv, (|
|00001d80| 69 6e 74 29 73 6f 75 72 | 63 65 5f 62 75 66 2e 73 |int)sour|ce_buf.s|
|00001d90| 74 5f 6d 6f 64 65 29 29 | 0a 58 09 09 09 09 70 65 |t_mode))|.X....pe|
|00001da0| 72 72 6f 72 28 2a 61 72 | 67 76 29 3b 0a 58 09 09 |rror(*ar|gv);.X..|
|00001db0| 69 66 20 28 21 6e 6f 5f | 6f 77 6e 65 72 29 0a 58 |if (!no_|owner).X|
|00001dc0| 09 09 09 69 66 20 28 63 | 68 6f 77 6e 28 2a 61 72 |...if (c|hown(*ar|
|00001dd0| 67 76 2c 20 28 69 6e 74 | 29 73 6f 75 72 63 65 5f |gv, (int|)source_|
|00001de0| 62 75 66 2e 73 74 5f 75 | 69 64 2c 0a 58 09 09 09 |buf.st_u|id,.X...|
|00001df0| 09 09 20 28 69 6e 74 29 | 73 6f 75 72 63 65 5f 62 |.. (int)|source_b|
|00001e00| 75 66 2e 73 74 5f 67 69 | 64 29 29 0a 58 09 09 09 |uf.st_gi|d)).X...|
|00001e10| 09 70 65 72 72 6f 72 28 | 2a 61 72 67 76 29 3b 0a |.perror(|*argv);.|
|00001e20| 58 09 09 69 66 20 28 21 | 6e 6f 5f 74 69 6d 65 73 |X..if (!|no_times|
|00001e30| 29 20 7b 0a 58 09 09 09 | 74 76 70 5b 30 5d 2e 74 |) {.X...|tvp[0].t|
|00001e40| 76 5f 73 65 63 20 3d 20 | 73 6f 75 72 63 65 5f 62 |v_sec = |source_b|
|00001e50| 75 66 2e 73 74 5f 61 74 | 69 6d 65 3b 0a 58 09 09 |uf.st_at|ime;.X..|
|00001e60| 09 74 76 70 5b 31 5d 2e | 74 76 5f 73 65 63 20 3d |.tvp[1].|tv_sec =|
|00001e70| 20 73 6f 75 72 63 65 5f | 62 75 66 2e 73 74 5f 6d | source_|buf.st_m|
|00001e80| 74 69 6d 65 3b 0a 58 09 | 09 09 74 76 70 5b 30 5d |time;.X.|..tvp[0]|
|00001e90| 2e 74 76 5f 75 73 65 63 | 20 3d 20 74 76 70 5b 31 |.tv_usec| = tvp[1|
|00001ea0| 5d 2e 74 76 5f 75 73 65 | 63 20 3d 20 30 4c 3b 0a |].tv_use|c = 0L;.|
|00001eb0| 58 09 09 09 69 66 20 28 | 75 74 69 6d 65 73 28 2a |X...if (|utimes(*|
|00001ec0| 61 72 67 76 2c 20 74 76 | 70 29 29 0a 58 09 09 09 |argv, tv|p)).X...|
|00001ed0| 09 70 65 72 72 6f 72 28 | 2a 61 72 67 76 29 3b 0a |.perror(|*argv);.|
|00001ee0| 58 09 09 7d 0a 58 09 09 | 61 72 67 76 2b 2b 3b 0a |X..}.X..|argv++;.|
|00001ef0| 58 09 7d 0a 58 7d 20 20 | 2f 2a 20 6d 61 69 6e 20 |X.}.X} |/* main |
|00001f00| 2a 2f 0a 53 48 41 52 5f | 45 4f 46 0a 69 66 20 74 |*/.SHAR_|EOF.if t|
|00001f10| 65 73 74 20 31 37 38 39 | 20 2d 6e 65 20 22 60 77 |est 1789| -ne "`w|
|00001f20| 63 20 2d 63 20 3c 20 27 | 63 70 6d 6f 64 2e 63 27 |c -c < '|cpmod.c'|
|00001f30| 60 22 0a 74 68 65 6e 0a | 09 65 63 68 6f 20 73 68 |`".then.|.echo sh|
|00001f40| 61 72 3a 20 22 65 72 72 | 6f 72 20 74 72 61 6e 73 |ar: "err|or trans|
|00001f50| 6d 69 74 74 69 6e 67 20 | 27 63 70 6d 6f 64 2e 63 |mitting |'cpmod.c|
|00001f60| 27 22 20 27 28 73 68 6f | 75 6c 64 20 68 61 76 65 |'" '(sho|uld have|
|00001f70| 20 62 65 65 6e 20 31 37 | 38 39 20 63 68 61 72 61 | been 17|89 chara|
|00001f80| 63 74 65 72 73 29 27 0a | 66 69 0a 66 69 0a 65 78 |cters)'.|fi.fi.ex|
|00001f90| 69 74 20 30 0a 23 09 45 | 6e 64 20 6f 66 20 73 68 |it 0.#.E|nd of sh|
|00001fa0| 65 6c 6c 20 61 72 63 68 | 69 76 65 0a 0a 2d 2d 20 |ell arch|ive..-- |
|00001fb0| 0a 0a 52 69 63 68 20 24 | 61 6c 7a 0a 43 72 6f 6e |..Rich $|alz.Cron|
|00001fc0| 75 73 20 50 72 6f 6a 65 | 63 74 2c 20 42 42 4e 20 |us Proje|ct, BBN |
|00001fd0| 4c 61 62 73 09 09 09 72 | 73 61 6c 7a 40 62 62 6e |Labs...r|salz@bbn|
|00001fe0| 2e 63 6f 6d 0a 4d 6f 64 | 65 72 61 74 6f 72 2c 20 |.com.Mod|erator, |
|00001ff0| 63 6f 6d 70 2e 73 6f 75 | 72 63 65 73 2e 75 6e 69 |comp.sou|rces.uni|
|00002000| 78 09 09 09 73 6f 75 72 | 63 65 73 40 75 75 6e 65 |x...sour|ces@uune|
|00002010| 74 2e 75 75 2e 6e 65 74 | 0a |t.uu.net|. |
+--------+-------------------------+-------------------------+--------+--------+