home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume28 / ssh-1.2 / part01 next >
SHell self-extracting ARchive  |  1992-03-15  |  11.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


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

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert SHell self-extracting ARchive (archive/shar) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/329 Shell Archive Format default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 73 6f 75 72 63 65 73 | 2e 6d 69 73 63 0a 46 72 |.sources|.misc.Fr|
|00000020| 6f 6d 3a 20 65 74 78 65 | 72 75 73 40 6a 61 6d 65 |om: etxe|rus@jame|
|00000030| 73 2e 65 72 69 63 73 73 | 6f 6e 2e 73 65 20 28 48 |s.ericss|on.se (H|
|00000040| 61 6e 73 20 42 65 63 6b | 65 72 75 73 20 4c 47 2f |ans Beck|erus LG/|
|00000050| 54 48 29 0a 53 75 62 6a | 65 63 74 3a 20 20 76 32 |TH).Subj|ect: v2|
|00000060| 38 69 30 39 38 3a 20 20 | 73 73 68 2d 31 2e 32 20 |8i098: |ssh-1.2 |
|00000070| 2d 20 53 70 6c 69 74 20 | 26 20 53 74 72 69 70 20 |- Split |& Strip |
|00000080| 61 70 70 65 6e 64 65 64 | 20 73 68 65 6c 6c 20 61 |appended| shell a|
|00000090| 72 63 68 69 76 65 73 2c | 20 50 61 72 74 30 31 2f |rchives,| Part01/|
|000000a0| 30 31 0a 4d 65 73 73 61 | 67 65 2d 49 44 3a 20 3c |01.Messa|ge-ID: <|
|000000b0| 31 39 39 32 4d 61 72 31 | 33 2e 30 35 32 30 35 35 |1992Mar1|3.052055|
|000000c0| 2e 31 39 33 37 30 40 73 | 70 61 72 6b 79 2e 69 6d |.19370@s|parky.im|
|000000d0| 64 2e 73 74 65 72 6c 69 | 6e 67 2e 63 6f 6d 3e 0a |d.sterli|ng.com>.|
|000000e0| 58 2d 4d 64 34 2d 53 69 | 67 6e 61 74 75 72 65 3a |X-Md4-Si|gnature:|
|000000f0| 20 61 37 38 62 65 61 35 | 37 36 31 30 35 30 37 61 | a78bea5|7610507a|
|00000100| 35 63 63 33 30 63 30 38 | 61 63 62 63 66 61 32 35 |5cc30c08|acbcfa25|
|00000110| 38 0a 44 61 74 65 3a 20 | 46 72 69 2c 20 31 33 20 |8.Date: |Fri, 13 |
|00000120| 4d 61 72 20 31 39 39 32 | 20 30 35 3a 32 30 3a 35 |Mar 1992| 05:20:5|
|00000130| 35 20 47 4d 54 0a 41 70 | 70 72 6f 76 65 64 3a 20 |5 GMT.Ap|proved: |
|00000140| 6b 65 6e 74 40 73 70 61 | 72 6b 79 2e 69 6d 64 2e |kent@spa|rky.imd.|
|00000150| 73 74 65 72 6c 69 6e 67 | 2e 63 6f 6d 0a 0a 53 75 |sterling|.com..Su|
|00000160| 62 6d 69 74 74 65 64 2d | 62 79 3a 20 65 74 78 65 |bmitted-|by: etxe|
|00000170| 72 75 73 40 6a 61 6d 65 | 73 2e 65 72 69 63 73 73 |rus@jame|s.ericss|
|00000180| 6f 6e 2e 73 65 20 28 48 | 61 6e 73 20 42 65 63 6b |on.se (H|ans Beck|
|00000190| 65 72 75 73 20 4c 47 2f | 54 48 29 0a 50 6f 73 74 |erus LG/|TH).Post|
|000001a0| 69 6e 67 2d 6e 75 6d 62 | 65 72 3a 20 56 6f 6c 75 |ing-numb|er: Volu|
|000001b0| 6d 65 20 32 38 2c 20 49 | 73 73 75 65 20 39 38 0a |me 28, I|ssue 98.|
|000001c0| 41 72 63 68 69 76 65 2d | 6e 61 6d 65 3a 20 73 73 |Archive-|name: ss|
|000001d0| 68 2d 31 2e 32 2f 70 61 | 72 74 30 31 0a 45 6e 76 |h-1.2/pa|rt01.Env|
|000001e0| 69 72 6f 6e 6d 65 6e 74 | 3a 20 55 4e 49 58 0a 53 |ironment|: UNIX.S|
|000001f0| 75 70 65 72 73 65 64 65 | 73 3a 20 73 73 68 3a 20 |upersede|s: ssh: |
|00000200| 56 6f 6c 75 6d 65 20 32 | 38 2c 20 49 73 73 75 65 |Volume 2|8, Issue|
|00000210| 20 38 30 0a 0a 20 20 20 | 20 20 20 20 20 20 20 20 | 80.. | |
|00000220| 20 20 20 20 20 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | ---|--------|
|00000230| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0a |--------|-------.|
|00000240| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000250| 20 20 20 20 20 53 53 48 | 20 76 65 72 73 69 6f 6e | SSH| version|
|00000260| 20 31 2e 32 30 0a 20 20 | 20 20 20 20 20 20 20 20 | 1.20. | |
|00000270| 20 20 20 20 20 20 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | --|--------|
|00000280| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000290| 20 20 20 0a 0a 54 68 69 | 73 20 70 72 6f 67 72 61 | ..Thi|s progra|
|000002a0| 6d 20 73 74 72 69 70 73 | 20 61 6e 64 20 73 70 6c |m strips| and spl|
|000002b0| 69 74 73 20 6d 75 6c 74 | 69 70 6c 65 2f 73 69 6e |its mult|iple/sin|
|000002c0| 67 6c 65 20 70 61 72 74 | 20 73 68 65 6c 6c 0a 61 |gle part| shell.a|
|000002d0| 72 63 68 69 76 65 73 20 | 61 6e 64 20 73 74 6f 72 |rchives |and stor|
|000002e0| 65 73 20 74 68 65 20 72 | 65 73 75 6c 74 20 69 6e |es the r|esult in|
|000002f0| 20 27 70 61 72 74 58 58 | 27 20 66 69 6c 65 73 2e | 'partXX|' files.|
|00000300| 0a 0a 20 49 6e 20 74 68 | 69 73 20 76 65 72 73 69 |.. In th|is versi|
|00000310| 6f 6e 20 6f 66 20 73 73 | 68 20 49 20 68 61 76 65 |on of ss|h I have|
|00000320| 3a 20 0a 0a 20 20 2d 20 | 46 69 78 65 64 20 73 6f |: .. - |Fixed so|
|00000330| 6d 65 20 6d 69 6e 6f 72 | 20 62 75 67 73 2e 0a 0a |me minor| bugs...|
|00000340| 20 20 2d 20 41 64 64 65 | 64 20 74 68 65 20 2d 78 | - Adde|d the -x|
|00000350| 20 6f 70 74 69 6f 6e 20 | 74 68 61 74 20 6d 61 6b | option |that mak|
|00000360| 65 73 20 69 74 20 70 6f | 73 73 69 62 6c 65 20 74 |es it po|ssible t|
|00000370| 6f 0a 20 20 20 20 65 78 | 74 72 61 63 74 20 66 69 |o. ex|tract fi|
|00000380| 6c 65 73 20 69 6e 20 6d | 75 6c 74 69 70 61 72 74 |les in m|ultipart|
|00000390| 20 61 72 63 68 69 76 65 | 73 2e 20 0a 0a 20 20 2d | archive|s. .. -|
|000003a0| 20 41 64 64 65 64 20 75 | 73 61 67 65 20 61 6e 64 | Added u|sage and|
|000003b0| 20 76 65 72 73 69 6f 6e | 20 69 6e 66 6f 72 6d 61 | version| informa|
|000003c0| 74 69 6f 6e 20 6f 70 74 | 69 6f 6e 73 2e 0a 0a 20 |tion opt|ions... |
|000003d0| 20 2d 20 49 6e 63 72 65 | 61 73 65 64 20 74 68 65 | - Incre|ased the|
|000003e0| 20 66 75 6e 63 74 69 6f | 6e 61 6c 69 74 79 20 73 | functio|nality s|
|000003f0| 6f 20 74 68 61 74 20 69 | 74 20 77 69 6c 6c 20 77 |o that i|t will w|
|00000400| 6f 72 6b 0a 20 20 20 20 | 6f 6e 20 61 6c 6d 6f 73 |ork. |on almos|
|00000410| 74 20 61 6c 6c 20 61 72 | 63 68 69 76 65 73 2e 20 |t all ar|chives. |
|00000420| 49 20 68 61 76 65 20 6f | 6e 6c 79 20 73 65 65 6e |I have o|nly seen|
|00000430| 20 6f 6e 65 20 74 79 70 | 65 0a 20 20 20 20 74 68 | one typ|e. th|
|00000440| 61 74 20 64 6f 65 73 20 | 6e 6f 74 20 77 6f 72 6b |at does |not work|
|00000450| 20 61 6e 64 20 74 68 61 | 74 20 69 73 20 77 68 65 | and tha|t is whe|
|00000460| 6e 20 74 68 65 20 61 72 | 63 68 69 76 65 73 0a 20 |n the ar|chives. |
|00000470| 20 20 20 63 6f 6e 74 61 | 69 6e 73 20 61 72 63 68 | conta|ins arch|
|00000480| 69 76 65 73 20 74 68 65 | 6d 73 65 6c 76 65 73 2e |ives the|mselves.|
|00000490| 0a 0a 20 20 2d 20 55 70 | 64 61 74 65 64 20 74 68 |.. - Up|dated th|
|000004a0| 65 20 63 6f 64 65 20 73 | 6f 20 69 74 20 77 69 6c |e code s|o it wil|
|000004b0| 6c 20 63 6f 6d 70 69 6c | 65 20 6f 6e 20 61 6c 6c |l compil|e on all|
|000004c0| 20 53 59 53 20 56 0a 20 | 20 20 20 6d 61 63 68 69 | SYS V. | machi|
|000004d0| 6e 65 73 20 74 6f 6f 20 | 28 49 20 68 6f 70 65 29 |nes too |(I hope)|
|000004e0| 2e 0a 0a 20 54 68 69 73 | 20 70 72 6f 67 72 61 6d |... This| program|
|000004f0| 20 68 61 73 20 62 65 65 | 6e 20 74 65 73 74 65 64 | has bee|n tested|
|00000500| 20 6f 6e 20 74 68 65 20 | 53 55 4e 2f 53 50 41 52 | on the |SUN/SPAR|
|00000510| 43 20 61 6e 64 20 0a 20 | 74 68 65 20 48 50 39 30 |C and . |the HP90|
|00000520| 30 30 2f 37 30 30 20 73 | 65 72 69 65 73 2e 0a 0a |00/700 s|eries...|
|00000530| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000540| 20 20 20 20 20 20 20 20 | 20 2f 48 61 6e 73 0a 2d | | /Hans.-|
|00000550| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000560| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000570| 2d 0a 23 21 20 2f 62 69 | 6e 2f 73 68 0a 23 20 54 |-.#! /bi|n/sh.# T|
|00000580| 68 69 73 20 69 73 20 61 | 20 73 68 65 6c 6c 20 61 |his is a| shell a|
|00000590| 72 63 68 69 76 65 2e 20 | 20 52 65 6d 6f 76 65 20 |rchive. | Remove |
|000005a0| 61 6e 79 74 68 69 6e 67 | 20 62 65 66 6f 72 65 20 |anything| before |
|000005b0| 74 68 69 73 20 6c 69 6e | 65 2c 20 74 68 65 6e 20 |this lin|e, then |
|000005c0| 75 6e 70 61 63 6b 0a 23 | 20 69 74 20 62 79 20 73 |unpack.#| it by s|
|000005d0| 61 76 69 6e 67 20 69 74 | 20 69 6e 74 6f 20 61 20 |aving it| into a |
|000005e0| 66 69 6c 65 20 61 6e 64 | 20 74 79 70 69 6e 67 20 |file and| typing |
|000005f0| 22 73 68 20 66 69 6c 65 | 22 2e 20 20 54 6f 20 6f |"sh file|". To o|
|00000600| 76 65 72 77 72 69 74 65 | 20 65 78 69 73 74 69 6e |verwrite| existin|
|00000610| 67 0a 23 20 66 69 6c 65 | 73 2c 20 74 79 70 65 20 |g.# file|s, type |
|00000620| 22 73 68 20 66 69 6c 65 | 20 2d 63 22 2e 20 20 59 |"sh file| -c". Y|
|00000630| 6f 75 20 63 61 6e 20 61 | 6c 73 6f 20 66 65 65 64 |ou can a|lso feed|
|00000640| 20 74 68 69 73 20 61 73 | 20 73 74 61 6e 64 61 72 | this as| standar|
|00000650| 64 20 69 6e 70 75 74 20 | 76 69 61 0a 23 20 75 6e |d input |via.# un|
|00000660| 73 68 61 72 2c 20 6f 72 | 20 62 79 20 74 79 70 69 |shar, or| by typi|
|00000670| 6e 67 20 22 73 68 20 3c | 66 69 6c 65 22 2c 20 65 |ng "sh <|file", e|
|00000680| 2e 67 2e 2e 20 20 49 66 | 20 74 68 69 73 20 61 72 |.g.. If| this ar|
|00000690| 63 68 69 76 65 20 69 73 | 20 63 6f 6d 70 6c 65 74 |chive is| complet|
|000006a0| 65 2c 20 79 6f 75 0a 23 | 20 77 69 6c 6c 20 73 65 |e, you.#| will se|
|000006b0| 65 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |e the fo|llowing |
|000006c0| 6d 65 73 73 61 67 65 20 | 61 74 20 74 68 65 20 65 |message |at the e|
|000006d0| 6e 64 3a 0a 23 09 09 22 | 45 6e 64 20 6f 66 20 73 |nd:.#.."|End of s|
|000006e0| 68 65 6c 6c 20 61 72 63 | 68 69 76 65 2e 22 0a 23 |hell arc|hive.".#|
|000006f0| 20 43 6f 6e 74 65 6e 74 | 73 3a 20 20 4d 61 6b 65 | Content|s: Make|
|00000700| 66 69 6c 65 20 52 45 41 | 44 4d 45 20 73 73 68 2e |file REA|DME ssh.|
|00000710| 63 0a 23 20 57 72 61 70 | 70 65 64 20 62 79 20 65 |c.# Wrap|ped by e|
|00000720| 74 78 65 72 75 73 40 6a | 61 6d 65 73 31 36 20 6f |txerus@j|ames16 o|
|00000730| 6e 20 54 68 75 20 4d 61 | 72 20 31 32 20 31 35 3a |n Thu Ma|r 12 15:|
|00000740| 35 39 3a 32 36 20 31 39 | 39 32 0a 50 41 54 48 3d |59:26 19|92.PATH=|
|00000750| 2f 62 69 6e 3a 2f 75 73 | 72 2f 62 69 6e 3a 2f 75 |/bin:/us|r/bin:/u|
|00000760| 73 72 2f 75 63 62 20 3b | 20 65 78 70 6f 72 74 20 |sr/ucb ;| export |
|00000770| 50 41 54 48 0a 69 66 20 | 74 65 73 74 20 2d 66 20 |PATH.if |test -f |
|00000780| 27 4d 61 6b 65 66 69 6c | 65 27 20 2d 61 20 22 24 |'Makefil|e' -a "$|
|00000790| 7b 31 7d 22 20 21 3d 20 | 22 2d 63 22 20 3b 20 74 |{1}" != |"-c" ; t|
|000007a0| 68 65 6e 20 0a 20 20 65 | 63 68 6f 20 73 68 61 72 |hen . e|cho shar|
|000007b0| 3a 20 57 69 6c 6c 20 6e | 6f 74 20 63 6c 6f 62 62 |: Will n|ot clobb|
|000007c0| 65 72 20 65 78 69 73 74 | 69 6e 67 20 66 69 6c 65 |er exist|ing file|
|000007d0| 20 5c 22 27 4d 61 6b 65 | 66 69 6c 65 27 5c 22 0a | \"'Make|file'\".|
|000007e0| 65 6c 73 65 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |else.ech|o shar: |
|000007f0| 45 78 74 72 61 63 74 69 | 6e 67 20 5c 22 27 4d 61 |Extracti|ng \"'Ma|
|00000800| 6b 65 66 69 6c 65 27 5c | 22 20 5c 28 36 35 35 20 |kefile'\|" \(655 |
|00000810| 63 68 61 72 61 63 74 65 | 72 73 5c 29 0a 73 65 64 |characte|rs\).sed|
|00000820| 20 22 73 2f 5e 58 2f 2f | 22 20 3e 27 4d 61 6b 65 | "s/^X//|" >'Make|
|00000830| 66 69 6c 65 27 20 3c 3c | 27 45 4e 44 5f 4f 46 5f |file' <<|'END_OF_|
|00000840| 46 49 4c 45 27 0a 58 23 | 0a 58 23 20 53 69 6d 70 |FILE'.X#|.X# Simp|
|00000850| 6c 65 20 6d 61 6b 65 66 | 69 6c 65 20 66 6f 72 20 |le makef|ile for |
|00000860| 73 73 68 20 31 2e 32 30 | 0a 58 23 0a 58 0a 58 23 |ssh 1.20|.X#.X.X#|
|00000870| 20 44 65 73 74 69 6e 61 | 74 69 6f 6e 20 64 69 72 | Destina|tion dir|
|00000880| 65 63 74 6f 72 79 20 66 | 6f 72 20 62 69 6e 61 72 |ectory f|or binar|
|00000890| 79 0a 58 42 49 4e 44 49 | 52 3d 20 2f 75 73 72 2f |y.XBINDI|R= /usr/|
|000008a0| 6c 6f 63 61 6c 2f 62 69 | 6e 0a 58 0a 58 43 43 3d |local/bi|n.X.XCC=|
|000008b0| 20 63 63 0a 58 46 4c 41 | 47 53 3d 20 2d 4f 0a 58 | cc.XFLA|GS= -O.X|
|000008c0| 50 52 4f 47 3d 20 73 73 | 68 0a 58 53 4f 55 52 43 |PROG= ss|h.XSOURC|
|000008d0| 45 53 3d 20 73 73 68 2e | 63 0a 58 4f 42 4a 53 3d |ES= ssh.|c.XOBJS=|
|000008e0| 20 73 73 68 2e 6f 0a 58 | 0a 58 23 20 44 6f 20 6e | ssh.o.X|.X# Do n|
|000008f0| 6f 74 20 63 68 61 6e 67 | 65 20 74 68 65 20 53 48 |ot chang|e the SH|
|00000900| 45 4c 4c 20 64 65 66 69 | 6e 69 74 69 6f 6e 20 65 |ELL defi|nition e|
|00000910| 78 63 65 70 74 20 69 66 | 0a 58 23 20 28 62 79 20 |xcept if|.X# (by |
|00000920| 73 6f 6d 65 20 72 65 61 | 73 6f 6e 29 20 27 73 68 |some rea|son) 'sh|
|00000930| 27 20 69 73 20 6c 6f 63 | 61 74 65 64 20 73 6f 6d |' is loc|ated som|
|00000940| 65 77 68 65 72 65 0a 58 | 23 20 65 6c 73 65 20 74 |ewhere.X|# else t|
|00000950| 68 65 6e 20 69 6e 20 2f | 62 69 6e 2e 0a 58 44 53 |hen in /|bin..XDS|
|00000960| 48 45 4c 4c 3d 2d 44 53 | 48 45 4c 4c 3d 5c 22 2f |HELL=-DS|HELL=\"/|
|00000970| 62 69 6e 2f 73 68 5c 22 | 0a 58 0a 58 23 20 53 55 |bin/sh\"|.X.X# SU|
|00000980| 4e 2f 53 50 41 52 43 3a | 0a 58 23 20 54 68 69 73 |N/SPARC:|.X# This|
|00000990| 20 73 68 6f 75 6c 64 20 | 77 6f 72 6b 20 66 6f 72 | should |work for|
|000009a0| 20 61 6c 6c 20 53 55 4e | 3a 73 2e 0a 58 54 41 52 | all SUN|:s..XTAR|
|000009b0| 47 45 54 3d 20 2d 44 53 | 55 4e 0a 58 20 0a 58 23 |GET= -DS|UN.X .X#|
|000009c0| 20 53 59 53 35 3a 0a 58 | 23 20 54 68 69 73 20 73 | SYS5:.X|# This s|
|000009d0| 68 6f 75 6c 64 20 77 6f | 72 6b 20 66 6f 72 20 61 |hould wo|rk for a|
|000009e0| 6c 6c 20 53 79 73 74 65 | 6d 20 56 20 6d 61 63 68 |ll Syste|m V mach|
|000009f0| 69 6e 65 73 2e 0a 58 23 | 54 41 52 47 45 54 3d 20 |ines..X#|TARGET= |
|00000a00| 2d 44 53 59 53 56 0a 58 | 0a 58 53 43 43 53 49 44 |-DSYSV.X|.XSCCSID|
|00000a10| 3d 20 2d 44 53 43 43 53 | 49 44 0a 58 44 45 46 49 |= -DSCCS|ID.XDEFI|
|00000a20| 4e 45 53 3d 20 24 28 54 | 41 52 47 45 54 29 20 24 |NES= $(T|ARGET) $|
|00000a30| 28 53 43 43 53 49 44 29 | 20 24 28 44 53 48 45 4c |(SCCSID)| $(DSHEL|
|00000a40| 4c 29 0a 58 43 46 4c 41 | 47 53 3d 20 24 28 46 4c |L).XCFLA|GS= $(FL|
|00000a50| 41 47 53 29 20 24 28 44 | 45 46 49 4e 45 53 29 0a |AGS) $(D|EFINES).|
|00000a60| 58 0a 58 24 28 50 52 4f | 47 29 3a 20 24 28 4f 42 |X.X$(PRO|G): $(OB|
|00000a70| 4a 53 29 0a 58 09 24 28 | 43 43 29 20 24 28 43 46 |JS).X.$(|CC) $(CF|
|00000a80| 4c 41 47 53 29 20 2d 6f | 20 24 28 50 52 4f 47 29 |LAGS) -o| $(PROG)|
|00000a90| 20 24 28 4f 42 4a 53 29 | 20 0a 58 0a 58 63 6c 65 | $(OBJS)| .X.Xcle|
|00000aa0| 61 6e 3a 0a 58 09 72 6d | 20 2d 66 20 63 6f 72 65 |an:.X.rm| -f core|
|00000ab0| 20 24 28 50 52 4f 47 29 | 20 24 28 4f 42 4a 53 29 | $(PROG)| $(OBJS)|
|00000ac0| 0a 58 0a 58 69 6e 73 74 | 61 6c 6c 3a 20 24 28 50 |.X.Xinst|all: $(P|
|00000ad0| 52 4f 47 29 0a 58 09 73 | 74 72 69 70 20 24 28 50 |ROG).X.s|trip $(P|
|00000ae0| 52 4f 47 29 0a 58 09 6d | 76 20 24 28 50 52 4f 47 |ROG).X.m|v $(PROG|
|00000af0| 29 20 24 28 42 49 4e 44 | 49 52 29 0a 45 4e 44 5f |) $(BIND|IR).END_|
|00000b00| 4f 46 5f 46 49 4c 45 0a | 69 66 20 74 65 73 74 20 |OF_FILE.|if test |
|00000b10| 36 35 35 20 2d 6e 65 20 | 60 77 63 20 2d 63 20 3c |655 -ne |`wc -c <|
|00000b20| 27 4d 61 6b 65 66 69 6c | 65 27 60 3b 20 74 68 65 |'Makefil|e'`; the|
|00000b30| 6e 0a 20 20 20 20 65 63 | 68 6f 20 73 68 61 72 3a |n. ec|ho shar:|
|00000b40| 20 5c 22 27 4d 61 6b 65 | 66 69 6c 65 27 5c 22 20 | \"'Make|file'\" |
|00000b50| 75 6e 70 61 63 6b 65 64 | 20 77 69 74 68 20 77 72 |unpacked| with wr|
|00000b60| 6f 6e 67 20 73 69 7a 65 | 21 0a 66 69 0a 23 20 65 |ong size|!.fi.# e|
|00000b70| 6e 64 20 6f 66 20 27 4d | 61 6b 65 66 69 6c 65 27 |nd of 'M|akefile'|
|00000b80| 0a 66 69 0a 69 66 20 74 | 65 73 74 20 2d 66 20 27 |.fi.if t|est -f '|
|00000b90| 52 45 41 44 4d 45 27 20 | 2d 61 20 22 24 7b 31 7d |README' |-a "${1}|
|00000ba0| 22 20 21 3d 20 22 2d 63 | 22 20 3b 20 74 68 65 6e |" != "-c|" ; then|
|00000bb0| 20 0a 20 20 65 63 68 6f | 20 73 68 61 72 3a 20 57 | . echo| shar: W|
|00000bc0| 69 6c 6c 20 6e 6f 74 20 | 63 6c 6f 62 62 65 72 20 |ill not |clobber |
|00000bd0| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 5c 22 |existing| file \"|
|00000be0| 27 52 45 41 44 4d 45 27 | 5c 22 0a 65 6c 73 65 0a |'README'|\".else.|
|00000bf0| 65 63 68 6f 20 73 68 61 | 72 3a 20 45 78 74 72 61 |echo sha|r: Extra|
|00000c00| 63 74 69 6e 67 20 5c 22 | 27 52 45 41 44 4d 45 27 |cting \"|'README'|
|00000c10| 5c 22 20 5c 28 31 34 39 | 33 20 63 68 61 72 61 63 |\" \(149|3 charac|
|00000c20| 74 65 72 73 5c 29 0a 73 | 65 64 20 22 73 2f 5e 58 |ters\).s|ed "s/^X|
|00000c30| 2f 2f 22 20 3e 27 52 45 | 41 44 4d 45 27 20 3c 3c |//" >'RE|ADME' <<|
|00000c40| 27 45 4e 44 5f 4f 46 5f | 46 49 4c 45 27 0a 58 20 |'END_OF_|FILE'.X |
|00000c50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2d | | -|
|00000c60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000c70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0a 58 20 20 20 20 20 |--------|-.X |
|00000c80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000c90| 53 53 48 20 76 65 72 73 | 69 6f 6e 20 31 2e 32 30 |SSH vers|ion 1.20|
|00000ca0| 0a 58 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.X | |
|00000cb0| 20 20 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | ------|--------|
|00000cc0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 20 20 20 0a |--------|---- .|
|00000cd0| 58 0a 58 20 49 6e 20 74 | 68 69 73 20 76 65 72 73 |X.X In t|his vers|
|00000ce0| 69 6f 6e 20 6f 66 20 73 | 73 68 20 49 20 68 61 76 |ion of s|sh I hav|
|00000cf0| 65 3a 20 0a 58 0a 58 20 | 20 2d 20 46 69 78 65 64 |e: .X.X | - Fixed|
|00000d00| 20 73 6f 6d 65 20 6d 69 | 6e 6f 72 20 62 75 67 73 | some mi|nor bugs|
|00000d10| 2e 0a 58 0a 58 20 20 2d | 20 41 64 64 65 64 20 74 |..X.X -| Added t|
|00000d20| 68 65 20 2d 78 20 6f 70 | 74 69 6f 6e 20 74 68 61 |he -x op|tion tha|
|00000d30| 74 20 6d 61 6b 65 73 20 | 69 74 20 70 6f 73 73 69 |t makes |it possi|
|00000d40| 62 6c 65 20 74 6f 0a 58 | 20 20 20 20 65 78 74 72 |ble to.X| extr|
|00000d50| 61 63 74 20 66 69 6c 65 | 73 20 69 6e 20 6d 75 6c |act file|s in mul|
|00000d60| 74 69 70 61 72 74 20 61 | 72 63 68 69 76 65 73 2e |tipart a|rchives.|
|00000d70| 20 0a 58 0a 58 20 20 2d | 20 41 64 64 65 64 20 75 | .X.X -| Added u|
|00000d80| 73 61 67 65 20 61 6e 64 | 20 76 65 72 73 69 6f 6e |sage and| version|
|00000d90| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 6f 70 74 | informa|tion opt|
|00000da0| 69 6f 6e 73 2e 0a 58 0a | 58 20 20 2d 20 49 6e 63 |ions..X.|X - Inc|
|00000db0| 72 65 61 73 65 64 20 74 | 68 65 20 66 75 6e 63 74 |reased t|he funct|
|00000dc0| 69 6f 6e 61 6c 69 74 79 | 20 73 6f 20 74 68 61 74 |ionality| so that|
|00000dd0| 20 69 74 20 77 69 6c 6c | 20 77 6f 72 6b 0a 58 20 | it will| work.X |
|00000de0| 20 20 20 6f 6e 20 61 6c | 6c 6d 6f 73 74 20 61 6c | on al|lmost al|
|00000df0| 6c 20 61 72 63 68 69 76 | 65 73 2e 20 49 20 68 61 |l archiv|es. I ha|
|00000e00| 76 65 20 6f 6e 6c 79 20 | 73 65 65 6e 20 6f 6e 65 |ve only |seen one|
|00000e10| 20 74 79 70 65 0a 58 20 | 20 20 20 74 68 61 74 20 | type.X | that |
|00000e20| 64 6f 65 73 20 6e 6f 74 | 20 77 6f 72 6b 20 61 6e |does not| work an|
|00000e30| 64 20 74 68 61 74 20 69 | 73 20 77 68 65 6e 20 74 |d that i|s when t|
|00000e40| 68 65 20 61 72 63 68 69 | 76 65 73 0a 58 20 20 20 |he archi|ves.X |
|00000e50| 20 63 6f 6e 74 61 69 6e | 73 20 61 72 63 68 69 76 | contain|s archiv|
|00000e60| 65 73 20 74 68 65 6d 73 | 65 6c 76 65 73 2e 0a 58 |es thems|elves..X|
|00000e70| 0a 58 20 20 2d 20 55 70 | 64 61 74 65 64 20 74 68 |.X - Up|dated th|
|00000e80| 65 20 63 6f 64 65 20 73 | 6f 20 69 74 20 77 69 6c |e code s|o it wil|
|00000e90| 6c 20 63 6f 6d 70 69 6c | 65 20 6f 6e 20 61 6c 6c |l compil|e on all|
|00000ea0| 20 53 59 53 20 56 0a 58 | 20 20 20 20 6d 61 63 68 | SYS V.X| mach|
|00000eb0| 69 6e 65 73 20 74 6f 6f | 20 28 49 20 68 6f 70 65 |ines too| (I hope|
|00000ec0| 29 2e 0a 58 0a 58 20 49 | 66 20 79 6f 75 20 66 69 |)..X.X I|f you fi|
|00000ed0| 6e 64 20 61 6e 79 20 66 | 61 75 6c 74 73 20 77 68 |nd any f|aults wh|
|00000ee0| 69 6c 65 20 75 73 69 6e | 67 20 74 68 69 73 20 70 |ile usin|g this p|
|00000ef0| 72 6f 67 72 61 6d 20 70 | 6c 65 61 73 65 0a 58 20 |rogram p|lease.X |
|00000f00| 6e 6f 74 69 66 79 20 6d | 65 2e 20 52 65 61 64 20 |notify m|e. Read |
|00000f10| 74 68 65 20 73 6f 75 72 | 63 65 63 6f 64 65 20 66 |the sour|cecode f|
|00000f20| 6f 72 20 6d 6f 72 65 20 | 69 6e 66 6f 72 6d 61 74 |or more |informat|
|00000f30| 69 6f 6e 2e 0a 58 0a 58 | 20 54 6f 20 63 6f 6d 70 |ion..X.X| To comp|
|00000f40| 69 6c 65 20 74 79 70 65 | 20 27 6d 61 6b 65 20 69 |ile type| 'make i|
|00000f50| 6e 73 74 61 6c 6c 27 2e | 20 46 6f 72 20 53 59 53 |nstall'.| For SYS|
|00000f60| 20 56 20 6d 61 63 68 69 | 6e 65 73 0a 58 20 73 65 | V machi|nes.X se|
|00000f70| 65 20 74 68 65 20 6d 61 | 6b 65 66 69 6c 65 2e 0a |e the ma|kefile..|
|00000f80| 58 0a 58 20 54 68 69 73 | 20 70 72 6f 67 72 61 6d |X.X This| program|
|00000f90| 20 68 61 73 20 62 65 65 | 6e 20 74 65 73 74 65 64 | has bee|n tested|
|00000fa0| 20 6f 6e 20 74 68 65 20 | 53 55 4e 2f 53 50 41 52 | on the |SUN/SPAR|
|00000fb0| 43 20 61 6e 64 20 0a 58 | 20 74 68 65 20 48 50 39 |C and .X| the HP9|
|00000fc0| 30 30 30 2f 37 30 30 20 | 73 65 72 69 65 73 2e 0a |000/700 |series..|
|00000fd0| 58 0a 58 0a 58 20 55 73 | 61 67 65 3a 20 73 73 68 |X.X.X Us|age: ssh|
|00000fe0| 20 5b 2d 68 5d 0a 58 20 | 20 20 20 20 20 20 20 20 | [-h].X | |
|00000ff0| 20 20 20 5b 2d 78 5d 20 | 3c 20 73 68 61 72 5f 61 | [-x] |< shar_a|
|00001000| 72 63 68 69 76 65 0a 58 | 20 20 20 20 20 20 20 20 |rchive.X| |
|00001010| 20 20 20 20 5b 2d 76 5d | 0a 58 0a 58 20 4f 70 74 | [-v]|.X.X Opt|
|00001020| 69 6f 6e 73 3a 0a 58 20 | 20 20 2d 68 20 20 20 20 |ions:.X | -h |
|00001030| 20 20 20 2d 20 44 69 73 | 70 6c 61 79 20 75 73 61 | - Dis|play usa|
|00001040| 67 65 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 2e 20 |ge infor|mation. |
|00001050| 0a 58 20 20 20 2d 78 20 | 20 20 20 20 20 20 2d 20 |.X -x | - |
|00001060| 45 78 74 72 61 63 74 20 | 66 69 6c 65 73 20 69 6e |Extract |files in|
|00001070| 20 61 72 63 68 69 76 65 | 20 69 6e 73 74 65 61 64 | archive| instead|
|00001080| 0a 58 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.X | |
|00001090| 6f 66 20 73 70 6c 69 74 | 69 6e 67 20 69 74 20 69 |of split|ing it i|
|000010a0| 6e 74 6f 20 70 61 72 74 | 73 2e 0a 58 20 20 20 2d |nto part|s..X -|
|000010b0| 76 20 20 20 20 20 20 20 | 2d 20 44 69 73 70 6c 61 |v |- Displa|
|000010c0| 79 20 76 65 72 73 69 6f | 6e 20 69 6e 66 6f 72 6d |y versio|n inform|
|000010d0| 61 74 69 6f 6e 2e 0a 58 | 0a 58 20 20 20 57 69 74 |ation..X|.X Wit|
|000010e0| 68 6f 75 74 20 61 6e 79 | 20 6f 70 74 69 6f 6e 73 |hout any| options|
|000010f0| 20 73 73 68 20 73 70 6c | 69 74 73 20 61 72 63 68 | ssh spl|its arch|
|00001100| 69 76 65 73 0a 58 20 20 | 20 69 6e 74 6f 20 65 78 |ives.X | into ex|
|00001110| 74 72 61 63 74 61 62 6c | 65 20 27 50 61 72 74 58 |tractabl|e 'PartX|
|00001120| 58 27 20 66 69 6c 65 73 | 2e 0a 58 0a 58 0a 58 20 |X' files|..X.X.X |
|00001130| 43 68 65 65 72 73 21 0a | 58 5f 5f 5f 5f 5f 5f 5f |Cheers!.|X_______|
|00001140| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001150| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001160| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001170| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001180| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 0a 58 48 61 6e 73 20 |________|_.XHans |
|00001190| 42 65 63 6b 65 72 75 73 | 20 20 20 20 20 20 20 20 |Beckerus| |
|000011a0| 20 20 20 20 20 20 20 20 | 20 20 50 68 6f 6e 65 20 | | Phone |
|000011b0| 3a 20 2b 34 36 20 38 20 | 37 31 39 20 35 39 20 36 |: +46 8 |719 59 6|
|000011c0| 30 20 20 20 20 20 0a 58 | 45 72 69 63 73 73 6f 6e |0 .X|Ericsson|
|000011d0| 20 54 65 6c 65 63 6f 6d | 20 41 42 20 20 20 20 20 | Telecom| AB |
|000011e0| 20 20 20 20 20 20 20 4d | 65 6d 6f 20 20 3a 20 45 | M|emo : E|
|000011f0| 54 58 2e 45 54 58 45 52 | 55 53 0a 58 41 58 45 20 |TX.ETXER|US.XAXE |
|00001200| 53 79 73 74 65 6d 20 44 | 65 73 69 67 6e 20 20 20 |System D|esign |
|00001210| 20 20 20 20 20 20 20 20 | 20 20 20 45 6d 61 69 6c | | Email|
|00001220| 20 3a 20 65 74 78 65 72 | 75 73 40 6a 61 6d 65 73 | : etxer|us@james|
|00001230| 2e 65 72 69 63 73 73 6f | 6e 2e 73 65 0a 58 31 32 |.ericsso|n.se.X12|
|00001240| 36 20 32 35 20 53 74 6f | 63 6b 68 6f 6c 6d 0a 58 |6 25 Sto|ckholm.X|
|00001250| 53 57 45 44 45 4e 0a 45 | 4e 44 5f 4f 46 5f 46 49 |SWEDEN.E|ND_OF_FI|
|00001260| 4c 45 0a 69 66 20 74 65 | 73 74 20 31 34 39 33 20 |LE.if te|st 1493 |
|00001270| 2d 6e 65 20 60 77 63 20 | 2d 63 20 3c 27 52 45 41 |-ne `wc |-c <'REA|
|00001280| 44 4d 45 27 60 3b 20 74 | 68 65 6e 0a 20 20 20 20 |DME'`; t|hen. |
|00001290| 65 63 68 6f 20 73 68 61 | 72 3a 20 5c 22 27 52 45 |echo sha|r: \"'RE|
|000012a0| 41 44 4d 45 27 5c 22 20 | 75 6e 70 61 63 6b 65 64 |ADME'\" |unpacked|
|000012b0| 20 77 69 74 68 20 77 72 | 6f 6e 67 20 73 69 7a 65 | with wr|ong size|
|000012c0| 21 0a 66 69 0a 23 20 65 | 6e 64 20 6f 66 20 27 52 |!.fi.# e|nd of 'R|
|000012d0| 45 41 44 4d 45 27 0a 66 | 69 0a 69 66 20 74 65 73 |EADME'.f|i.if tes|
|000012e0| 74 20 2d 66 20 27 73 73 | 68 2e 63 27 20 2d 61 20 |t -f 'ss|h.c' -a |
|000012f0| 22 24 7b 31 7d 22 20 21 | 3d 20 22 2d 63 22 20 3b |"${1}" !|= "-c" ;|
|00001300| 20 74 68 65 6e 20 0a 20 | 20 65 63 68 6f 20 73 68 | then . | echo sh|
|00001310| 61 72 3a 20 57 69 6c 6c | 20 6e 6f 74 20 63 6c 6f |ar: Will| not clo|
|00001320| 62 62 65 72 20 65 78 69 | 73 74 69 6e 67 20 66 69 |bber exi|sting fi|
|00001330| 6c 65 20 5c 22 27 73 73 | 68 2e 63 27 5c 22 0a 65 |le \"'ss|h.c'\".e|
|00001340| 6c 73 65 0a 65 63 68 6f | 20 73 68 61 72 3a 20 45 |lse.echo| shar: E|
|00001350| 78 74 72 61 63 74 69 6e | 67 20 5c 22 27 73 73 68 |xtractin|g \"'ssh|
|00001360| 2e 63 27 5c 22 20 5c 28 | 36 32 34 36 20 63 68 61 |.c'\" \(|6246 cha|
|00001370| 72 61 63 74 65 72 73 5c | 29 0a 73 65 64 20 22 73 |racters\|).sed "s|
|00001380| 2f 5e 58 2f 2f 22 20 3e | 27 73 73 68 2e 63 27 20 |/^X//" >|'ssh.c' |
|00001390| 3c 3c 27 45 4e 44 5f 4f | 46 5f 46 49 4c 45 27 0a |<<'END_O|F_FILE'.|
|000013a0| 58 2f 2a 20 40 28 23 29 | 73 73 68 2e 63 20 31 2e |X/* @(#)|ssh.c 1.|
|000013b0| 32 30 20 39 32 2f 30 33 | 2f 31 31 20 28 48 61 42 |20 92/03|/11 (HaB|
|000013c0| 29 0a 58 20 2a 0a 58 20 | 2a 20 4e 41 4d 45 3a 0a |).X *.X |* NAME:.|
|000013d0| 58 20 2a 20 20 20 20 73 | 73 68 0a 58 20 2a 0a 58 |X * s|sh.X *.X|
|000013e0| 20 2a 20 53 59 4e 54 41 | 58 3a 0a 58 20 2a 20 20 | * SYNTA|X:.X * |
|000013f0| 20 20 73 73 68 20 5b 2d | 68 5d 0a 58 20 2a 20 20 | ssh [-|h].X * |
|00001400| 20 20 20 20 20 20 5b 2d | 78 5d 20 3c 20 73 68 61 | [-|x] < sha|
|00001410| 72 5f 61 72 63 68 69 76 | 65 0a 58 20 2a 20 20 20 |r_archiv|e.X * |
|00001420| 20 20 20 20 20 5b 2d 76 | 5d 20 0a 58 20 2a 0a 58 | [-v|] .X *.X|
|00001430| 20 2a 20 4f 50 54 49 4f | 4e 53 3a 0a 58 20 2a 20 | * OPTIO|NS:.X * |
|00001440| 20 20 20 2d 68 20 20 20 | 20 44 69 73 70 6c 61 79 | -h | Display|
|00001450| 20 75 73 61 67 65 20 69 | 6e 66 6f 72 6d 61 74 69 | usage i|nformati|
|00001460| 6f 6e 2e 0a 58 20 2a 0a | 58 20 2a 20 20 20 20 2d |on..X *.|X * -|
|00001470| 78 20 20 20 20 45 78 74 | 72 61 63 74 20 66 69 6c |x Ext|ract fil|
|00001480| 65 73 20 69 6e 20 61 72 | 63 68 69 76 65 20 69 6e |es in ar|chive in|
|00001490| 73 74 65 61 64 0a 58 20 | 2a 20 20 20 20 20 20 20 |stead.X |* |
|000014a0| 20 20 20 6f 66 20 73 70 | 6c 69 74 69 6e 67 20 69 | of sp|liting i|
|000014b0| 74 20 69 6e 74 6f 20 70 | 61 72 74 73 2e 20 0a 58 |t into p|arts. .X|
|000014c0| 20 2a 0a 58 20 2a 20 20 | 20 20 2d 76 20 20 20 20 | *.X * | -v |
|000014d0| 44 69 73 70 6c 61 79 20 | 76 65 72 73 69 6f 6e 20 |Display |version |
|000014e0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 2e 20 0a 58 20 |informat|ion. .X |
|000014f0| 2a 0a 58 20 2a 20 20 20 | 20 57 69 74 68 6f 75 74 |*.X * | Without|
|00001500| 20 61 6e 79 20 6f 70 74 | 69 6f 6e 73 20 73 73 68 | any opt|ions ssh|
|00001510| 20 73 70 6c 69 74 73 20 | 61 72 63 68 69 76 65 73 | splits |archives|
|00001520| 0a 58 20 2a 20 20 20 20 | 69 6e 74 6f 20 65 78 74 |.X * |into ext|
|00001530| 72 61 63 74 61 62 6c 65 | 20 27 50 61 72 74 58 58 |ractable| 'PartXX|
|00001540| 27 20 66 69 6c 65 73 2e | 0a 58 20 2a 0a 58 20 2a |' files.|.X *.X *|
|00001550| 20 44 45 53 43 52 49 50 | 54 49 4f 4e 3a 0a 58 20 | DESCRIP|TION:.X |
|00001560| 2a 20 20 20 20 53 70 6c | 69 74 73 2c 20 73 74 72 |* Spl|its, str|
|00001570| 69 70 73 20 61 6e 64 20 | 65 78 74 72 61 63 74 73 |ips and |extracts|
|00001580| 20 61 70 70 65 6e 64 65 | 64 20 73 68 65 6c 6c 0a | appende|d shell.|
|00001590| 58 20 2a 20 20 20 20 61 | 72 63 68 69 76 65 73 20 |X * a|rchives |
|000015a0| 61 6e 64 20 73 74 6f 72 | 65 73 20 74 68 65 20 72 |and stor|es the r|
|000015b0| 65 73 75 6c 74 20 69 6e | 20 27 50 61 72 74 58 58 |esult in| 'PartXX|
|000015c0| 27 0a 58 20 2a 20 20 20 | 20 66 69 6c 65 73 20 28 |'.X * | files (|
|000015d0| 6e 6f 74 20 77 68 65 6e | 20 65 78 74 72 61 63 74 |not when| extract|
|000015e0| 69 6e 67 29 2e 20 0a 58 | 20 2a 0a 58 20 2a 20 4e |ing). .X| *.X * N|
|000015f0| 4f 54 45 53 3a 0a 58 20 | 2a 20 20 20 20 54 68 65 |OTES:.X |* The|
|00001600| 20 70 72 6f 67 72 61 6d | 20 73 68 6f 75 6c 64 20 | program| should |
|00001610| 77 6f 72 6b 20 6f 6e 20 | 61 6c 6c 20 61 72 63 68 |work on |all arch|
|00001620| 69 76 65 73 20 63 72 65 | 61 74 65 64 0a 58 20 2a |ives cre|ated.X *|
|00001630| 20 20 20 20 75 73 69 6e | 67 20 27 73 68 61 72 27 | usin|g 'shar'|
|00001640| 20 28 6f 72 20 65 71 75 | 61 6c 73 29 20 70 72 6f | (or equ|als) pro|
|00001650| 76 69 64 65 64 20 74 68 | 61 74 20 74 68 65 79 20 |vided th|at they |
|00001660| 68 61 76 65 0a 58 20 2a | 20 20 20 20 6e 6f 74 20 |have.X *| not |
|00001670| 62 65 65 6e 20 63 68 61 | 6e 67 65 64 20 73 69 6e |been cha|nged sin|
|00001680| 63 65 20 74 68 65 79 20 | 77 65 72 65 20 66 69 72 |ce they |were fir|
|00001690| 73 74 20 67 65 6e 65 72 | 61 74 65 64 2e 20 20 0a |st gener|ated. .|
|000016a0| 58 20 2a 0a 58 20 2a 20 | 42 55 47 53 3a 0a 58 20 |X *.X * |BUGS:.X |
|000016b0| 2a 20 20 20 20 49 20 68 | 61 76 65 20 6e 6f 74 69 |* I h|ave noti|
|000016c0| 63 65 64 20 74 68 61 74 | 20 77 68 65 6e 20 74 68 |ced that| when th|
|000016d0| 65 20 61 72 63 68 69 76 | 65 73 20 63 6f 6e 74 61 |e archiv|es conta|
|000016e0| 69 6e 73 0a 58 20 2a 20 | 20 20 20 61 72 63 68 69 |ins.X * | archi|
|000016f0| 76 65 73 20 74 68 65 6d | 73 65 6c 76 65 73 20 28 |ves them|selves (|
|00001700| 68 61 70 70 65 6e 73 20 | 73 6f 6d 65 74 69 6d 65 |happens |sometime|
|00001710| 73 29 20 69 74 20 64 6f | 65 73 20 0a 58 20 2a 20 |s) it do|es .X * |
|00001720| 20 20 20 6e 6f 74 20 77 | 6f 72 6b 20 70 72 6f 70 | not w|ork prop|
|00001730| 65 72 6c 79 2e 0a 58 20 | 2a 0a 58 20 2a 20 44 41 |erly..X |*.X * DA|
|00001740| 54 45 3a 0a 58 20 2a 20 | 20 20 20 31 39 39 32 2d |TE:.X * | 1992-|
|00001750| 30 33 2d 31 31 0a 58 20 | 2a 0a 58 20 2a 20 41 55 |03-11.X |*.X * AU|
|00001760| 54 48 4f 52 3a 0a 58 20 | 2a 20 20 20 20 48 61 6e |THOR:.X |* Han|
|00001770| 73 20 43 2e 20 42 65 63 | 6b 65 72 75 73 0a 58 20 |s C. Bec|kerus.X |
|00001780| 2a 20 20 20 20 65 74 78 | 65 72 75 73 40 6a 61 6d |* etx|erus@jam|
|00001790| 65 73 2e 65 72 69 63 73 | 73 6f 6e 2e 73 65 0a 58 |es.erics|son.se.X|
|000017a0| 20 2a 0a 58 20 2a 20 44 | 49 53 43 4c 41 49 4d 45 | *.X * D|ISCLAIME|
|000017b0| 52 3a 0a 58 20 2a 20 20 | 20 20 54 68 69 73 20 70 |R:.X * | This p|
|000017c0| 72 6f 67 72 61 6d 20 69 | 73 20 66 72 65 65 20 74 |rogram i|s free t|
|000017d0| 6f 20 64 69 73 74 72 69 | 62 75 74 65 20 74 6f 20 |o distri|bute to |
|000017e0| 61 6e 79 6f 6e 65 20 61 | 73 6c 6f 6e 67 20 0a 58 |anyone a|slong .X|
|000017f0| 20 2a 20 20 20 20 61 73 | 20 74 68 65 20 63 6f 64 | * as| the cod|
|00001800| 65 20 69 73 20 6e 6f 74 | 20 63 68 61 6e 67 65 64 |e is not| changed|
|00001810| 20 69 6e 20 61 6e 79 77 | 61 79 20 77 69 74 68 6f | in anyw|ay witho|
|00001820| 75 74 20 6d 65 0a 58 20 | 2a 20 20 20 20 6b 6e 6f |ut me.X |* kno|
|00001830| 77 69 6e 67 20 61 62 6f | 75 74 20 69 74 2e 20 20 |wing abo|ut it. |
|00001840| 0a 58 20 2a 0a 58 20 2a | 20 20 20 20 20 20 20 20 |.X *.X *| |
|00001850| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001860| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001870| 20 20 20 20 2f 48 61 42 | 20 3a 2d 29 0a 58 20 2a | /HaB| :-).X *|
|00001880| 2f 0a 58 0a 58 23 69 6e | 63 6c 75 64 65 20 3c 73 |/.X.X#in|clude <s|
|00001890| 74 64 69 6f 2e 68 3e 0a | 58 23 69 6e 63 6c 75 64 |tdio.h>.|X#includ|
|000018a0| 65 20 3c 73 74 72 69 6e | 67 2e 68 3e 0a 58 23 69 |e <strin|g.h>.X#i|
|000018b0| 6e 63 6c 75 64 65 20 3c | 6d 61 6c 6c 6f 63 2e 68 |nclude <|malloc.h|
|000018c0| 3e 0a 58 0a 58 23 64 65 | 66 69 6e 65 20 53 45 41 |>.X.X#de|fine SEA|
|000018d0| 52 43 48 20 20 20 30 0a | 58 23 64 65 66 69 6e 65 |RCH 0.|X#define|
|000018e0| 20 53 54 41 52 54 20 20 | 20 20 31 0a 58 23 64 65 | START | 1.X#de|
|000018f0| 66 69 6e 65 20 49 4e 53 | 49 44 45 20 20 20 32 0a |fine INS|IDE 2.|
|00001900| 58 23 64 65 66 69 6e 65 | 20 4d 53 54 45 50 20 20 |X#define| MSTEP |
|00001910| 20 20 38 30 20 20 20 20 | 20 2f 2a 20 41 6c 6c 6f | 80 | /* Allo|
|00001920| 63 61 74 69 6f 6e 20 73 | 74 65 70 73 20 20 20 20 |cation s|teps |
|00001930| 20 20 20 2a 2f 0a 58 23 | 64 65 66 69 6e 65 20 53 | */.X#|define S|
|00001940| 45 41 52 43 48 50 20 20 | 35 20 20 20 20 20 20 2f |EARCHP |5 /|
|00001950| 2a 20 4e 6f 2e 20 6f 66 | 20 73 65 61 72 63 68 20 |* No. of| search |
|00001960| 70 61 74 74 65 72 6e 73 | 20 2a 2f 20 0a 58 0a 58 |patterns| */ .X.X|
|00001970| 23 69 66 6e 64 65 66 20 | 53 48 45 4c 4c 0a 58 23 |#ifndef |SHELL.X#|
|00001980| 64 65 66 69 6e 65 20 53 | 48 45 4c 4c 20 20 22 2f |define S|HELL "/|
|00001990| 62 69 6e 2f 73 68 22 20 | 20 20 20 20 2f 2a 20 4a |bin/sh" | /* J|
|000019a0| 75 73 74 20 69 6e 20 63 | 61 73 65 2e 2e 2e 20 2a |ust in c|ase... *|
|000019b0| 2f 0a 58 23 65 6e 64 69 | 66 0a 58 0a 58 23 69 66 |/.X#endi|f.X.X#if|
|000019c0| 64 65 66 20 53 59 53 56 | 20 20 20 20 20 2f 2a 20 |def SYSV| /* |
|000019d0| 48 50 55 58 2f 53 59 53 | 56 20 2a 2f 0a 58 23 64 |HPUX/SYS|V */.X#d|
|000019e0| 65 66 69 6e 65 20 6e 6c | 5f 66 70 72 69 6e 74 66 |efine nl|_fprintf|
|000019f0| 20 20 66 70 72 69 6e 74 | 66 0a 58 23 64 65 66 69 | fprint|f.X#defi|
|00001a00| 6e 65 20 6e 6c 5f 73 70 | 72 69 6e 74 66 20 20 73 |ne nl_sp|rintf s|
|00001a10| 70 72 69 6e 74 66 0a 58 | 23 64 65 66 69 6e 65 20 |printf.X|#define |
|00001a20| 6e 6c 5f 73 74 72 63 6d | 70 20 20 20 73 74 72 63 |nl_strcm|p strc|
|00001a30| 6d 70 0a 58 73 69 7a 65 | 5f 74 20 6d 73 69 7a 65 |mp.Xsize|_t msize|
|00001a40| 3b 0a 58 23 65 6e 64 69 | 66 0a 58 0a 58 23 69 66 |;.X#endi|f.X.X#if|
|00001a50| 64 65 66 20 53 55 4e 20 | 20 20 20 20 2f 2a 20 53 |def SUN | /* S|
|00001a60| 75 6e 4f 53 2f 42 65 72 | 6b 65 6c 65 79 20 2a 2f |unOS/Ber|keley */|
|00001a70| 0a 58 75 6e 73 69 67 6e | 65 64 20 69 6e 74 20 6d |.Xunsign|ed int m|
|00001a80| 73 69 7a 65 3b 0a 58 23 | 65 6e 64 69 66 0a 58 0a |size;.X#|endif.X.|
|00001a90| 58 23 69 66 64 65 66 20 | 53 43 43 53 49 44 0a 58 |X#ifdef |SCCSID.X|
|00001aa0| 63 68 61 72 20 73 63 63 | 73 69 64 5b 5d 20 3d 20 |char scc|sid[] = |
|00001ab0| 22 40 28 23 29 73 73 68 | 2e 63 20 31 2e 32 30 20 |"@(#)ssh|.c 1.20 |
|00001ac0| 20 39 32 2f 30 33 2f 31 | 31 20 28 48 61 42 29 20 | 92/03/1|1 (HaB) |
|00001ad0| 20 65 74 78 65 72 75 73 | 40 6a 61 6d 65 73 2e 65 | etxerus|@james.e|
|00001ae0| 72 69 63 73 73 6f 6e 2e | 73 65 22 3b 0a 58 23 65 |ricsson.|se";.X#e|
|00001af0| 6e 64 69 66 0a 58 0a 58 | 65 6e 75 6d 20 62 6f 6f |ndif.X.X|enum boo|
|00001b00| 6c 65 61 6e 20 7b 20 20 | 20 20 20 2f 2a 20 42 6f |lean { | /* Bo|
|00001b10| 6f 6c 65 61 6e 20 63 6f | 6e 73 74 61 6e 74 73 20 |olean co|nstants |
|00001b20| 2a 2f 0a 58 20 20 20 20 | 46 41 4c 53 45 2c 0a 58 |*/.X |FALSE,.X|
|00001b30| 20 20 20 20 54 52 55 45 | 0a 58 7d 3b 0a 58 0a 58 | TRUE|.X};.X.X|
|00001b40| 63 68 61 72 20 2a 70 61 | 74 74 65 72 6e 5b 5d 20 |char *pa|ttern[] |
|00001b50| 3d 20 7b 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |= { | |
|00001b60| 20 20 20 20 2f 2a 20 41 | 64 64 20 6d 6f 72 65 20 | /* A|dd more |
|00001b70| 70 61 74 74 65 72 6e 73 | 20 68 65 72 65 20 69 66 |patterns| here if|
|00001b80| 20 6e 65 65 64 65 64 2e | 20 20 20 2a 2f 20 0a 58 | needed.| */ .X|
|00001b90| 20 20 20 20 22 23 20 74 | 68 69 73 20 69 73 20 61 | "# t|his is a|
|00001ba0| 20 73 68 65 6c 6c 20 61 | 72 63 68 69 76 65 22 2c | shell a|rchive",|
|00001bb0| 20 20 20 20 2f 2a 20 4e | 4f 54 45 21 20 52 65 6d | /* N|OTE! Rem|
|00001bc0| 65 6d 62 65 72 20 74 6f | 20 69 6e 63 72 65 61 73 |ember to| increas|
|00001bd0| 65 20 53 45 41 52 43 48 | 50 2e 20 2a 2f 20 0a 58 |e SEARCH|P. */ .X|
|00001be0| 20 20 20 20 22 23 20 74 | 68 69 73 20 69 73 20 70 | "# t|his is p|
|00001bf0| 61 72 74 22 2c 20 0a 58 | 20 20 20 20 22 23 21 2f |art", .X| "#!/|
|00001c00| 62 69 6e 2f 73 68 22 2c | 0a 58 20 20 20 20 22 23 |bin/sh",|.X "#|
|00001c10| 20 21 2f 62 69 6e 2f 73 | 68 22 2c 0a 58 20 20 20 | !/bin/s|h",.X |
|00001c20| 20 22 23 21 20 2f 62 69 | 6e 2f 73 68 22 0a 58 7d | "#! /bi|n/sh".X}|
|00001c30| 3b 0a 58 0a 58 2f 2a 20 | 75 73 61 67 65 3a 0a 58 |;.X.X/* |usage:.X|
|00001c40| 20 2a 20 0a 58 20 2a 20 | 44 69 73 70 6c 61 79 20 | * .X * |Display |
|00001c50| 75 73 61 67 65 20 69 6e | 66 6f 72 6d 61 74 69 6f |usage in|formatio|
|00001c60| 6e 20 61 6e 64 20 65 78 | 69 74 20 77 69 74 68 20 |n and ex|it with |
|00001c70| 73 74 61 74 75 73 20 72 | 63 2e 0a 58 20 2a 0a 58 |status r|c..X *.X|
|00001c80| 20 2a 2f 0a 58 0a 58 76 | 6f 69 64 20 75 73 61 67 | */.X.Xv|oid usag|
|00001c90| 65 20 28 72 63 29 20 0a | 58 0a 58 69 6e 74 20 72 |e (rc) .|X.Xint r|
|00001ca0| 63 3b 20 20 20 20 20 2f | 2a 20 52 65 74 75 72 6e |c; /|* Return|
|00001cb0| 20 63 6f 64 65 20 2a 2f | 0a 58 0a 58 7b 0a 58 20 | code */|.X.X{.X |
|00001cc0| 20 20 20 70 75 74 73 20 | 28 22 5c 6e 55 73 61 67 | puts |("\nUsag|
|00001cd0| 65 3a 20 73 73 68 20 5b | 2d 68 5d 22 29 3b 0a 58 |e: ssh [|-h]");.X|
|00001ce0| 20 20 20 20 70 75 74 73 | 20 28 22 20 20 20 20 20 | puts| (" |
|00001cf0| 20 20 20 20 20 20 5b 2d | 78 5d 20 3c 20 73 68 61 | [-|x] < sha|
|00001d00| 72 5f 61 72 63 68 69 76 | 65 22 29 3b 0a 58 20 20 |r_archiv|e");.X |
|00001d10| 20 20 70 75 74 73 20 28 | 22 20 20 20 20 20 20 20 | puts (|" |
|00001d20| 20 20 20 20 5b 2d 76 5d | 5c 6e 22 29 3b 0a 58 20 | [-v]|\n");.X |
|00001d30| 20 20 20 70 75 74 73 20 | 28 22 4f 70 74 69 6f 6e | puts |("Option|
|00001d40| 73 3a 22 29 3b 0a 58 20 | 20 20 20 70 75 74 73 20 |s:");.X | puts |
|00001d50| 28 22 20 20 2d 68 20 20 | 20 20 20 20 20 2d 20 54 |(" -h | - T|
|00001d60| 68 69 73 20 68 65 6c 70 | 20 74 65 78 74 2e 22 29 |his help| text.")|
|00001d70| 3b 0a 58 20 20 20 20 70 | 75 74 73 20 28 22 20 20 |;.X p|uts (" |
|00001d80| 2d 78 20 20 20 20 20 20 | 20 2d 20 45 78 74 72 61 |-x | - Extra|
|00001d90| 63 74 20 66 69 6c 65 73 | 20 69 6e 20 61 72 63 68 |ct files| in arch|
|00001da0| 69 76 65 20 69 6e 73 74 | 65 61 64 22 29 3b 0a 58 |ive inst|ead");.X|
|00001db0| 20 20 20 20 70 75 74 73 | 20 28 22 20 20 20 20 20 | puts| (" |
|00001dc0| 20 20 20 20 20 20 20 20 | 6f 66 20 73 70 6c 69 74 | |of split|
|00001dd0| 69 6e 67 20 69 74 20 69 | 6e 74 6f 20 70 61 72 74 |ing it i|nto part|
|00001de0| 73 2e 22 29 3b 0a 58 20 | 20 20 20 70 75 74 73 20 |s.");.X | puts |
|00001df0| 28 22 20 20 2d 76 20 20 | 20 20 20 20 20 2d 20 44 |(" -v | - D|
|00001e00| 69 73 70 6c 61 79 20 76 | 65 72 73 69 6f 6e 20 69 |isplay v|ersion i|
|00001e10| 6e 66 6f 72 6d 61 74 69 | 6f 6e 2e 5c 6e 22 29 3b |nformati|on.\n");|
|00001e20| 0a 58 20 20 20 20 70 75 | 74 73 20 28 22 20 20 57 |.X pu|ts (" W|
|00001e30| 69 74 68 6f 75 74 20 61 | 6e 79 20 6f 70 74 69 6f |ithout a|ny optio|
|00001e40| 6e 73 20 73 73 68 20 73 | 70 6c 69 74 73 20 61 72 |ns ssh s|plits ar|
|00001e50| 63 68 69 76 65 73 22 29 | 3b 0a 58 20 20 20 20 70 |chives")|;.X p|
|00001e60| 75 74 73 20 28 22 20 20 | 69 6e 74 6f 20 65 78 74 |uts (" |into ext|
|00001e70| 72 61 63 74 61 62 6c 65 | 20 27 50 61 72 74 58 58 |ractable| 'PartXX|
|00001e80| 27 20 66 69 6c 65 73 2e | 5c 6e 22 29 3b 0a 58 20 |' files.|\n");.X |
|00001e90| 20 20 20 65 78 69 74 20 | 28 72 63 29 3b 0a 58 7d | exit |(rc);.X}|
|00001ea0| 0a 58 0a 58 76 6f 69 64 | 20 6d 61 69 6e 20 28 61 |.X.Xvoid| main (a|
|00001eb0| 72 67 6e 2c 20 61 72 67 | 76 29 0a 58 0a 58 69 6e |rgn, arg|v).X.Xin|
|00001ec0| 74 20 20 20 61 72 67 6e | 3b 0a 58 63 68 61 72 20 |t argn|;.Xchar |
|00001ed0| 2a 61 72 67 76 5b 5d 3b | 0a 58 0a 58 7b 0a 58 20 |*argv[];|.X.X{.X |
|00001ee0| 20 20 20 46 49 4c 45 20 | 20 20 20 20 2a 66 72 20 | FILE | *fr |
|00001ef0| 3d 20 73 74 64 69 6e 3b | 20 20 20 20 20 20 20 20 |= stdin;| |
|00001f00| 20 20 2f 2a 20 49 6e 70 | 75 74 20 66 69 6c 65 70 | /* Inp|ut filep|
|00001f10| 6f 69 6e 74 65 72 20 20 | 2a 2f 0a 58 20 20 20 20 |ointer |*/.X |
|00001f20| 46 49 4c 45 20 20 20 20 | 20 2a 66 77 3b 20 20 20 |FILE | *fw; |
|00001f30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2f | | /|
|00001f40| 2a 20 4f 75 74 70 75 74 | 20 66 69 6c 65 70 6f 69 |* Output| filepoi|
|00001f50| 6e 74 65 72 20 2a 2f 0a | 58 20 20 20 20 46 49 4c |nter */.|X FIL|
|00001f60| 45 20 20 20 20 20 2a 70 | 69 70 65 3b 20 20 20 20 |E *p|ipe; |
|00001f70| 20 20 20 20 20 20 20 20 | 20 20 20 20 2f 2a 20 53 | | /* S|
|00001f80| 74 72 65 61 6d 20 70 69 | 70 65 20 20 20 20 20 20 |tream pi|pe |
|00001f90| 20 20 2a 2f 0a 58 20 20 | 20 20 69 6e 74 20 20 20 | */.X | int |
|00001fa0| 20 20 20 20 73 74 61 74 | 65 20 3d 20 53 45 41 52 | stat|e = SEAR|
|00001fb0| 43 48 3b 20 20 20 20 20 | 20 2f 2a 20 54 68 65 20 |CH; | /* The |
|00001fc0| 63 75 72 72 65 6e 74 20 | 73 74 61 74 65 20 20 2a |current |state *|
|00001fd0| 2f 0a 58 20 20 20 20 69 | 6e 74 20 20 20 20 20 20 |/.X i|nt |
|00001fe0| 20 66 63 20 3d 20 30 3b | 20 20 20 20 20 20 20 20 | fc = 0;| |
|00001ff0| 20 20 20 20 20 20 2f 2a | 20 46 69 6c 65 20 70 61 | /*| File pa|
|00002000| 72 74 20 63 6f 75 6e 74 | 65 72 20 20 2a 2f 0a 58 |rt count|er */.X|
|00002010| 20 20 20 20 69 6e 74 20 | 20 20 20 20 20 20 65 78 | int | ex|
|00002020| 74 72 61 63 74 20 3d 20 | 46 41 4c 53 45 3b 20 20 |tract = |FALSE; |
|00002030| 20 20 20 2f 2a 20 45 78 | 74 72 61 63 74 2f 77 72 | /* Ex|tract/wr|
|00002040| 69 74 65 20 66 6c 61 67 | 20 2a 2f 0a 58 20 20 20 |ite flag| */.X |
|00002050| 20 63 68 61 72 20 20 20 | 20 20 2a 73 3b 20 20 20 | char | *s; |
|00002060| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002070| 2f 2a 20 52 65 61 64 20 | 6c 69 6e 65 20 20 20 20 |/* Read |line |
|00002080| 20 20 20 20 20 20 2a 2f | 0a 58 20 20 20 20 63 68 | */|.X ch|
|00002090| 61 72 20 20 20 20 20 20 | 66 6f 75 74 5b 37 5d 3b |ar |fout[7];|
|000020a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2f 2a 20 | | /* |
|000020b0| 4f 75 74 70 75 74 20 66 | 69 6c 65 6e 61 6d 65 73 |Output f|ilenames|
|000020c0| 20 20 20 2a 2f 0a 58 20 | 20 20 20 72 65 67 69 73 | */.X | regis|
|000020d0| 74 65 72 20 20 6a 20 3d | 20 30 3b 20 20 20 20 20 |ter j =| 0; |
|000020e0| 20 20 20 20 20 20 20 20 | 20 20 2f 2a 20 43 6f 75 | | /* Cou|
|000020f0| 6e 74 65 72 20 20 20 20 | 20 20 20 20 20 20 20 20 |nter | |
|00002100| 2a 2f 0a 58 20 20 20 20 | 72 65 67 69 73 74 65 72 |*/.X |register|
|00002110| 20 20 63 3b 20 20 20 20 | 20 20 20 20 20 20 20 20 | c; | |
|00002120| 20 20 20 20 20 20 20 2f | 2a 20 52 65 61 64 20 63 | /|* Read c|
|00002130| 68 61 72 61 63 74 65 72 | 20 20 20 20 20 2a 2f 0a |haracter| */.|
|00002140| 58 0a 58 20 20 20 20 2f | 2a 20 43 68 65 63 6b 20 |X.X /|* Check |
|00002150| 74 68 65 20 61 72 67 75 | 6d 65 6e 74 73 20 69 66 |the argu|ments if|
|00002160| 20 61 6e 79 20 2a 2f 0a | 58 20 20 20 20 77 68 69 | any */.|X whi|
|00002170| 6c 65 20 28 2d 2d 61 72 | 67 6e 29 20 7b 0a 58 20 |le (--ar|gn) {.X |
|00002180| 20 20 20 20 20 20 20 61 | 72 67 76 2b 2b 3b 0a 58 | a|rgv++;.X|
|00002190| 20 20 20 20 20 20 20 20 | 69 66 20 28 21 28 73 74 | |if (!(st|
|000021a0| 72 63 6d 70 20 28 2a 61 | 72 67 76 2c 20 22 2d 68 |rcmp (*a|rgv, "-h|
|000021b0| 22 2c 20 32 29 29 29 20 | 7b 20 20 20 20 20 2f 2a |", 2))) |{ /*|
|000021c0| 20 48 65 6c 70 20 73 63 | 72 65 65 6e 20 2a 2f 0a | Help sc|reen */.|
|000021d0| 58 20 20 20 20 20 20 20 | 20 20 20 20 20 69 66 20 |X | if |
|000021e0| 28 21 28 61 72 67 6e 2d | 31 29 29 20 20 20 20 20 |(!(argn-|1)) |
|000021f0| 2f 2a 20 53 69 6e 67 6c | 65 20 6f 70 74 69 6f 6e |/* Singl|e option|
|00002200| 20 2a 2f 0a 58 20 20 20 | 20 20 20 20 20 20 20 20 | */.X | |
|00002210| 20 20 20 20 20 75 73 61 | 67 65 20 28 30 29 3b 0a | usa|ge (0);.|
|00002220| 58 20 20 20 20 20 20 20 | 20 7d 0a 58 20 20 20 20 |X | }.X |
|00002230| 20 20 20 20 65 6c 73 65 | 20 69 66 20 28 21 28 73 | else| if (!(s|
|00002240| 74 72 63 6d 70 20 28 2a | 61 72 67 76 2c 20 22 2d |trcmp (*|argv, "-|
|00002250| 78 22 29 29 29 20 7b 20 | 20 20 20 20 2f 2a 20 45 |x"))) { | /* E|
|00002260| 78 74 72 61 63 74 20 66 | 69 6c 65 73 20 2a 2f 20 |xtract f|iles */ |
|00002270| 0a 58 20 20 20 20 20 20 | 20 20 20 20 20 20 69 66 |.X | if|
|00002280| 20 28 21 28 61 72 67 6e | 2d 31 29 29 20 7b 20 20 | (!(argn|-1)) { |
|00002290| 20 20 20 2f 2a 20 53 69 | 6e 67 6c 65 20 6f 70 74 | /* Si|ngle opt|
|000022a0| 69 6f 6e 20 2a 2f 0a 58 | 20 20 20 20 20 20 20 20 |ion */.X| |
|000022b0| 20 20 20 20 20 20 20 20 | 65 78 74 72 61 63 74 20 | |extract |
|000022c0| 3d 20 54 52 55 45 3b 0a | 58 20 20 20 20 20 20 20 |= TRUE;.|X |
|000022d0| 20 20 20 20 20 20 20 20 | 20 63 6f 6e 74 69 6e 75 | | continu|
|000022e0| 65 3b 0a 58 20 20 20 20 | 20 20 20 20 20 20 20 20 |e;.X | |
|000022f0| 7d 0a 58 20 20 20 20 20 | 20 20 20 7d 0a 58 20 20 |}.X | }.X |
|00002300| 20 20 20 20 20 20 65 6c | 73 65 20 69 66 20 28 21 | el|se if (!|
|00002310| 28 73 74 72 63 6d 70 20 | 28 2a 61 72 67 76 2c 20 |(strcmp |(*argv, |
|00002320| 22 2d 76 22 29 29 29 20 | 7b 0a 58 20 20 20 20 20 |"-v"))) |{.X |
|00002330| 20 20 20 20 20 20 20 69 | 66 20 28 21 28 61 72 67 | i|f (!(arg|
|00002340| 6e 2d 31 29 29 20 7b 20 | 20 20 20 20 2f 2a 20 53 |n-1)) { | /* S|
|00002350| 69 6e 67 6c 65 20 6f 70 | 74 69 6f 6e 20 2a 2f 0a |ingle op|tion */.|
|00002360| 58 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |X | |
|00002370| 20 70 75 74 73 20 28 22 | 73 73 68 20 31 2e 32 30 | puts ("|ssh 1.20|
|00002380| 20 20 28 62 75 67 73 20 | 74 6f 20 65 74 78 65 72 | (bugs |to etxer|
|00002390| 75 73 40 6a 61 6d 65 73 | 2e 65 72 69 63 73 73 6f |us@james|.ericsso|
|000023a0| 6e 2e 73 65 29 22 29 3b | 0a 58 20 20 20 20 20 20 |n.se)");|.X |
|000023b0| 20 20 20 20 20 20 20 20 | 20 20 65 78 69 74 20 28 | | exit (|
|000023c0| 30 29 3b 0a 58 20 20 20 | 20 20 20 20 20 20 20 20 |0);.X | |
|000023d0| 20 7d 0a 58 20 20 20 20 | 20 20 20 20 7d 0a 58 20 | }.X | }.X |
|000023e0| 20 20 20 20 20 20 20 75 | 73 61 67 65 20 28 31 29 | u|sage (1)|
|000023f0| 3b 0a 58 20 20 20 20 7d | 20 20 0a 58 0a 58 20 20 |;.X }| .X.X |
|00002400| 20 20 6d 73 69 7a 65 20 | 3d 20 4d 53 54 45 50 3b | msize |= MSTEP;|
|00002410| 0a 58 20 20 20 20 73 20 | 3d 20 6d 61 6c 6c 6f 63 |.X s |= malloc|
|00002420| 20 28 6d 73 69 7a 65 29 | 3b 20 20 20 20 20 2f 2a | (msize)|; /*|
|00002430| 20 41 6c 6c 6f 63 61 74 | 65 20 62 75 66 66 65 72 | Allocat|e buffer|
|00002440| 20 2a 2f 0a 58 0a 58 20 | 20 20 20 77 68 69 6c 65 | */.X.X | while|
|00002450| 20 28 28 63 20 3d 20 67 | 65 74 63 20 28 66 72 29 | ((c = g|etc (fr)|
|00002460| 29 20 21 3d 20 45 4f 46 | 29 20 7b 0a 58 09 69 66 |) != EOF|) {.X.if|
|00002470| 20 28 63 20 21 3d 20 27 | 5c 6e 27 29 20 7b 20 20 | (c != '|\n') { |
|00002480| 20 20 20 2f 2a 20 43 68 | 65 63 6b 20 66 6f 72 20 | /* Ch|eck for |
|00002490| 45 4f 4c 20 2a 2f 0a 58 | 09 20 20 20 20 73 5b 6a |EOL */.X|. s[j|
|000024a0| 2b 2b 5d 20 3d 20 63 3b | 0a 58 20 20 20 20 20 20 |++] = c;|.X |
|000024b0| 20 20 20 20 20 20 69 66 | 20 28 6a 20 3d 3d 20 6d | if| (j == m|
|000024c0| 73 69 7a 65 29 20 7b 0a | 58 20 20 20 20 20 20 20 |size) {.|X |
|000024d0| 20 20 20 20 20 20 20 20 | 20 6d 73 69 7a 65 20 2b | | msize +|
|000024e0| 3d 20 4d 53 54 45 50 3b | 0a 58 20 20 20 20 20 20 |= MSTEP;|.X |
|000024f0| 20 20 20 20 20 20 20 20 | 20 20 69 66 20 28 28 73 | | if ((s|
|00002500| 20 3d 20 72 65 61 6c 6c | 6f 63 20 28 73 2c 20 6d | = reall|oc (s, m|
|00002510| 73 69 7a 65 29 29 20 3d | 3d 20 4e 55 4c 4c 29 20 |size)) =|= NULL) |
|00002520| 7b 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |{.X | |
|00002530| 20 20 20 20 20 20 20 66 | 70 72 69 6e 74 66 20 28 | f|printf (|
|00002540| 73 74 64 65 72 72 2c 20 | 22 73 73 68 3a 20 41 6c |stderr, |"ssh: Al|
|00002550| 6c 6f 63 61 74 69 6f 6e | 20 65 72 72 6f 72 2c 20 |location| error, |
|00002560| 63 61 6e 6e 6f 74 20 63 | 6f 6e 74 69 6e 75 65 2e |cannot c|ontinue.|
|00002570| 5c 6e 22 29 3b 0a 58 20 | 20 20 20 20 20 20 20 20 |\n");.X | |
|00002580| 20 20 20 20 20 20 20 20 | 20 20 20 65 78 69 74 20 | | exit |
|00002590| 28 31 29 3b 0a 58 20 20 | 20 20 20 20 20 20 20 20 |(1);.X | |
|000025a0| 20 20 20 20 20 20 7d 0a | 58 20 20 20 20 20 20 20 | }.|X |
|000025b0| 20 20 20 20 20 7d 0a 58 | 20 20 20 20 20 20 20 20 | }.X| |
|000025c0| 7d 0a 58 09 65 6c 73 65 | 20 7b 0a 58 09 20 20 20 |}.X.else| {.X. |
|000025d0| 20 73 5b 6a 5d 20 3d 20 | 27 5c 30 27 3b 20 20 20 | s[j] = |'\0'; |
|000025e0| 20 20 2f 2a 20 4f 6e 65 | 20 6c 69 6e 65 20 68 61 | /* One| line ha|
|000025f0| 73 20 62 65 65 6e 20 72 | 65 61 64 20 2a 2f 0a 58 |s been r|ead */.X|
|00002600| 09 20 20 20 20 73 77 69 | 74 63 68 20 28 73 74 61 |. swi|tch (sta|
|00002610| 74 65 29 20 7b 0a 58 09 | 09 63 61 73 65 20 53 45 |te) {.X.|.case SE|
|00002620| 41 52 43 48 3a 0a 58 20 | 20 20 20 20 20 20 20 20 |ARCH:.X | |
|00002630| 20 20 20 20 20 20 20 20 | 20 20 20 66 6f 72 20 28 | | for (|
|00002640| 6a 20 3d 20 30 3b 20 6a | 20 3c 20 53 45 41 52 43 |j = 0; j| < SEARC|
|00002650| 48 50 3b 20 6a 2b 2b 29 | 20 7b 0a 58 20 20 20 20 |HP; j++)| {.X |
|00002660| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002670| 20 20 20 20 69 66 20 28 | 21 28 73 74 72 6e 63 61 | if (|!(strnca|
|00002680| 73 65 63 6d 70 20 28 73 | 2c 20 70 61 74 74 65 72 |secmp (s|, patter|
|00002690| 6e 5b 6a 5d 2c 20 73 74 | 72 6c 65 6e 20 28 70 61 |n[j], st|rlen (pa|
|000026a0| 74 74 65 72 6e 5b 6a 5d | 29 29 29 29 20 7b 0a 58 |ttern[j]|)))) {.X|
|000026b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000026c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 73 74 61 74 | | stat|
|000026d0| 65 20 3d 20 53 54 41 52 | 54 3b 0a 58 20 20 20 20 |e = STAR|T;.X |
|000026e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000026f0| 20 20 20 20 20 20 20 20 | 62 72 65 61 6b 3b 20 20 | |break; |
|00002700| 20 20 0a 58 20 20 20 20 | 20 20 20 20 20 20 20 20 | .X | |
|00002710| 20 20 20 20 20 20 20 20 | 20 20 20 20 7d 0a 58 20 | | }.X |
|00002720| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002730| 20 20 20 7d 0a 58 20 20 | 20 20 20 20 20 20 20 20 | }.X | |
|00002740| 20 20 20 20 20 20 20 20 | 20 20 69 66 20 28 73 74 | | if (st|
|00002750| 61 74 65 20 21 3d 20 53 | 54 41 52 54 29 0a 58 20 |ate != S|TART).X |
|00002760| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002770| 20 20 20 20 20 20 20 62 | 72 65 61 6b 3b 0a 58 0a | b|reak;.X.|
|00002780| 58 09 09 63 61 73 65 20 | 53 54 41 52 54 3a 20 20 |X..case |START: |
|00002790| 20 20 20 2f 2a 20 53 74 | 61 72 74 20 77 72 69 74 | /* St|art writ|
|000027a0| 69 6e 67 20 6f 72 20 65 | 78 74 72 61 63 74 69 6e |ing or e|xtractin|
|000027b0| 67 20 2a 2f 0a 58 20 20 | 20 20 20 20 20 20 20 20 |g */.X | |
|000027c0| 20 20 20 20 20 20 20 20 | 20 20 69 66 20 28 21 65 | | if (!e|
|000027d0| 78 74 72 61 63 74 29 20 | 7b 0a 58 09 09 20 20 20 |xtract) |{.X.. |
|000027e0| 20 20 20 20 20 73 70 72 | 69 6e 74 66 20 28 66 6f | spr|intf (fo|
|000027f0| 75 74 2c 20 22 50 61 72 | 74 25 2e 32 64 22 2c 20 |ut, "Par|t%.2d", |
|00002800| 2b 2b 66 63 29 3b 0a 58 | 09 09 20 20 20 20 20 20 |++fc);.X|.. |
|00002810| 20 20 66 77 20 3d 20 66 | 6f 70 65 6e 20 28 66 6f | fw = f|open (fo|
|00002820| 75 74 2c 20 22 77 22 29 | 3b 0a 58 20 20 20 20 20 |ut, "w")|;.X |
|00002830| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002840| 20 20 20 66 70 72 69 6e | 74 66 20 28 66 77 2c 20 | fprin|tf (fw, |
|00002850| 22 25 73 5c 6e 22 2c 20 | 73 29 3b 0a 58 20 20 20 |"%s\n", |s);.X |
|00002860| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002870| 20 7d 0a 58 20 20 20 20 | 20 20 20 20 20 20 20 20 | }.X | |
|00002880| 20 20 20 20 20 20 20 20 | 65 6c 73 65 20 7b 0a 58 | |else {.X|
|00002890| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000028a0| 20 20 20 20 20 20 20 20 | 69 66 20 28 28 70 69 70 | |if ((pip|
|000028b0| 65 20 3d 20 70 6f 70 65 | 6e 20 28 53 48 45 4c 4c |e = pope|n (SHELL|
|000028c0| 2c 20 22 77 22 29 29 20 | 3d 3d 20 4e 55 4c 4c 29 |, "w")) |== NULL)|
|000028d0| 20 7b 0a 58 20 20 20 20 | 20 20 20 20 20 20 20 20 | {.X | |
|000028e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000028f0| 70 75 74 73 20 28 22 73 | 73 68 3a 20 43 61 6e 6e |puts ("s|sh: Cann|
|00002900| 6f 74 20 63 72 65 61 74 | 65 20 70 72 6f 63 65 73 |ot creat|e proces|
|00002910| 73 2e 5c 6e 22 29 3b 0a | 58 20 20 20 20 20 20 20 |s.\n");.|X |
|00002920| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002930| 20 20 20 20 20 65 78 69 | 74 20 28 31 29 3b 0a 58 | exi|t (1);.X|
|00002940| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002950| 20 20 20 20 20 20 20 20 | 7d 0a 58 20 20 20 20 20 | |}.X |
|00002960| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002970| 20 20 20 66 70 72 69 6e | 74 66 20 28 70 69 70 65 | fprin|tf (pipe|
|00002980| 2c 20 22 25 73 5c 6e 22 | 2c 20 73 29 3b 0a 58 20 |, "%s\n"|, s);.X |
|00002990| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000029a0| 20 20 20 7d 0a 58 20 20 | 20 20 20 20 20 20 20 20 | }.X | |
|000029b0| 20 20 20 20 20 20 20 20 | 20 20 73 74 61 74 65 20 | | state |
|000029c0| 3d 20 49 4e 53 49 44 45 | 3b 0a 58 09 09 20 20 20 |= INSIDE|;.X.. |
|000029d0| 20 62 72 65 61 6b 3b 0a | 58 0a 58 20 20 20 20 20 | break;.|X.X |
|000029e0| 20 20 20 20 20 20 20 20 | 20 20 20 63 61 73 65 20 | | case |
|000029f0| 49 4e 53 49 44 45 3a 0a | 58 09 09 20 20 20 20 69 |INSIDE:.|X.. i|
|00002a00| 66 20 28 21 28 73 74 72 | 63 6d 70 20 28 73 2c 20 |f (!(str|cmp (s, |
|00002a10| 22 65 78 69 74 20 30 22 | 29 29 29 20 7b 20 20 20 |"exit 0"|))) { |
|00002a20| 20 20 2f 2a 20 4c 6f 6f | 6b 20 66 6f 72 20 65 6e | /* Loo|k for en|
|00002a30| 64 20 2a 2f 0a 58 20 20 | 20 20 20 20 20 20 20 20 |d */.X | |
|00002a40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 69 66 | | if|
|00002a50| 20 28 21 65 78 74 72 61 | 63 74 29 20 7b 0a 58 20 | (!extra|ct) {.X |
|00002a60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002a70| 20 20 20 20 20 20 20 20 | 20 20 20 66 70 72 69 6e | | fprin|
|00002a80| 74 66 20 28 66 77 2c 20 | 22 25 73 5c 6e 22 2c 20 |tf (fw, |"%s\n", |
|00002a90| 73 29 3b 0a 58 20 20 20 | 20 20 20 20 20 20 20 20 |s);.X | |
|00002aa0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002ab0| 20 66 63 6c 6f 73 65 20 | 28 66 77 29 3b 0a 58 20 | fclose |(fw);.X |
|00002ac0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002ad0| 20 20 20 20 20 20 20 7d | 0a 58 20 20 20 20 20 20 | }|.X |
|00002ae0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002af0| 20 20 65 6c 73 65 20 7b | 0a 58 20 20 20 20 20 20 | else {|.X |
|00002b00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002b10| 20 20 20 20 20 20 66 70 | 72 69 6e 74 66 20 28 70 | fp|rintf (p|
|00002b20| 69 70 65 2c 20 22 25 73 | 5c 6e 22 2c 20 73 29 3b |ipe, "%s|\n", s);|
|00002b30| 0a 58 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.X | |
|00002b40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 70 63 | | pc|
|00002b50| 6c 6f 73 65 20 28 70 69 | 70 65 29 3b 0a 58 20 20 |lose (pi|pe);.X |
|00002b60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002b70| 20 20 20 20 20 20 7d 0a | 58 20 20 20 20 20 20 20 | }.|X |
|00002b80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002b90| 20 73 74 61 74 65 20 3d | 20 53 45 41 52 43 48 3b | state =| SEARCH;|
|00002ba0| 0a 58 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.X | |
|00002bb0| 20 20 20 20 20 20 7d 0a | 58 20 20 20 20 20 20 20 | }.|X |
|00002bc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 65 6c 73 | | els|
|00002bd0| 65 20 7b 0a 58 20 20 20 | 20 20 20 20 20 20 20 20 |e {.X | |
|00002be0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 69 66 20 | | if |
|00002bf0| 28 65 78 74 72 61 63 74 | 29 0a 58 20 20 20 20 20 |(extract|).X |
|00002c00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002c10| 20 20 20 20 20 20 20 66 | 70 72 69 6e 74 66 20 28 | f|printf (|
|00002c20| 70 69 70 65 2c 20 22 25 | 73 5c 6e 22 2c 20 73 29 |pipe, "%|s\n", s)|
|00002c30| 3b 0a 58 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;.X | |
|00002c40| 20 20 20 20 20 20 20 20 | 20 20 20 65 6c 73 65 0a | | else.|
|00002c50| 58 09 09 09 20 20 20 20 | 66 70 72 69 6e 74 66 20 |X... |fprintf |
|00002c60| 28 66 77 2c 20 22 25 73 | 5c 6e 22 2c 20 73 29 3b |(fw, "%s|\n", s);|
|00002c70| 0a 58 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.X | |
|00002c80| 20 20 20 20 20 20 7d 0a | 58 09 09 20 20 20 20 62 | }.|X.. b|
|00002c90| 72 65 61 6b 3b 0a 58 20 | 20 20 20 20 20 20 20 20 |reak;.X | |
|00002ca0| 20 20 20 7d 0a 58 20 20 | 20 20 20 20 20 20 20 20 | }.X | |
|00002cb0| 20 20 6a 20 3d 20 30 3b | 20 20 20 20 2f 2a 20 52 | j = 0;| /* R|
|00002cc0| 65 73 65 74 20 63 6f 75 | 6e 74 65 72 20 2a 2f 0a |eset cou|nter */.|
|00002cd0| 58 20 20 20 20 20 20 20 | 20 7d 0a 58 20 20 20 20 |X | }.X |
|00002ce0| 7d 0a 58 7d 0a 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |}.X}.END|_OF_FILE|
|00002cf0| 0a 69 66 20 74 65 73 74 | 20 36 32 34 36 20 2d 6e |.if test| 6246 -n|
|00002d00| 65 20 60 77 63 20 2d 63 | 20 3c 27 73 73 68 2e 63 |e `wc -c| <'ssh.c|
|00002d10| 27 60 3b 20 74 68 65 6e | 0a 20 20 20 20 65 63 68 |'`; then|. ech|
|00002d20| 6f 20 73 68 61 72 3a 20 | 5c 22 27 73 73 68 2e 63 |o shar: |\"'ssh.c|
|00002d30| 27 5c 22 20 75 6e 70 61 | 63 6b 65 64 20 77 69 74 |'\" unpa|cked wit|
|00002d40| 68 20 77 72 6f 6e 67 20 | 73 69 7a 65 21 0a 66 69 |h wrong |size!.fi|
|00002d50| 0a 23 20 65 6e 64 20 6f | 66 20 27 73 73 68 2e 63 |.# end o|f 'ssh.c|
|00002d60| 27 0a 66 69 0a 65 63 68 | 6f 20 73 68 61 72 3a 20 |'.fi.ech|o shar: |
|00002d70| 45 6e 64 20 6f 66 20 73 | 68 65 6c 6c 20 61 72 63 |End of s|hell arc|
|00002d80| 68 69 76 65 2e 0a 65 78 | 69 74 20 30 0a 0a 65 78 |hive..ex|it 0..ex|
|00002d90| 69 74 20 30 20 23 20 4a | 75 73 74 20 69 6e 20 63 |it 0 # J|ust in c|
|00002da0| 61 73 65 2e 2e 2e 0a | |ase.... | |
+--------+-------------------------+-------------------------+--------+--------+