home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / v22 / 112 < prev    next >
Mailbox/MIME Entity  |  1991-03-07  |  3.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file Mailbox text, 1st line "From jsq@cs.utexas.edu Thu Feb 7 12:08:03 1991", ASCII text default
100% TrID E-Mail message (Var. 2) default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried x-fmt/111 Plain Text File default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime application/mbox default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 20 6a 73 71 | 40 63 73 2e 75 74 65 78 |From jsq|@cs.utex|
|00000010| 61 73 2e 65 64 75 20 20 | 54 68 75 20 46 65 62 20 |as.edu |Thu Feb |
|00000020| 20 37 20 31 32 3a 30 38 | 3a 30 33 20 31 39 39 31 | 7 12:08|:03 1991|
|00000030| 0a 52 65 63 65 69 76 65 | 64 3a 20 66 72 6f 6d 20 |.Receive|d: from |
|00000040| 63 73 2e 75 74 65 78 61 | 73 2e 65 64 75 20 62 79 |cs.utexa|s.edu by|
|00000050| 20 75 75 6e 65 74 2e 75 | 75 2e 6e 65 74 20 28 35 | uunet.u|u.net (5|
|00000060| 2e 36 31 2f 31 2e 31 34 | 29 20 77 69 74 68 20 53 |.61/1.14|) with S|
|00000070| 4d 54 50 20 0a 09 69 64 | 20 41 41 32 37 30 35 38 |MTP ..id| AA27058|
|00000080| 3b 20 54 68 75 2c 20 37 | 20 46 65 62 20 39 31 20 |; Thu, 7| Feb 91 |
|00000090| 31 32 3a 30 38 3a 30 33 | 20 2d 30 35 30 30 0a 52 |12:08:03| -0500.R|
|000000a0| 65 63 65 69 76 65 64 3a | 20 62 79 20 63 73 2e 75 |eceived:| by cs.u|
|000000b0| 74 65 78 61 73 2e 65 64 | 75 20 28 35 2e 36 34 2f |texas.ed|u (5.64/|
|000000c0| 31 2e 39 34 29 20 0a 46 | 72 6f 6d 3a 20 6d 6f 68 |1.94) .F|rom: moh|
|000000d0| 74 61 40 6e 65 63 6f 6d | 38 33 30 2e 63 63 2e 74 |ta@necom|830.cc.t|
|000000e0| 69 74 65 63 68 2e 61 63 | 2e 6a 70 20 28 4d 61 73 |itech.ac|.jp (Mas|
|000000f0| 61 74 61 6b 61 20 4f 68 | 74 61 29 0a 4e 65 77 73 |ataka Oh|ta).News|
|00000100| 67 72 6f 75 70 73 3a 20 | 63 6f 6d 70 2e 73 74 64 |groups: |comp.std|
|00000110| 2e 75 6e 69 78 0a 53 75 | 62 6a 65 63 74 3a 20 52 |.unix.Su|bject: R|
|00000120| 65 3a 20 71 66 6f 72 6b | 28 29 0a 4d 65 73 73 61 |e: qfork|().Messa|
|00000130| 67 65 2d 49 64 3a 20 3c | 31 37 37 30 37 40 63 73 |ge-Id: <|17707@cs|
|00000140| 2e 75 74 65 78 61 73 2e | 65 64 75 3e 0a 52 65 66 |.utexas.|edu>.Ref|
|00000150| 65 72 65 6e 63 65 73 3a | 20 3c 31 37 36 33 33 40 |erences:| <17633@|
|00000160| 63 73 2e 75 74 65 78 61 | 73 2e 65 64 75 3e 0a 53 |cs.utexa|s.edu>.S|
|00000170| 65 6e 64 65 72 3a 20 6a | 73 71 40 63 73 2e 75 74 |ender: j|sq@cs.ut|
|00000180| 65 78 61 73 2e 65 64 75 | 0a 4f 72 67 61 6e 69 7a |exas.edu|.Organiz|
|00000190| 61 74 69 6f 6e 3a 20 54 | 6f 6b 79 6f 20 49 6e 73 |ation: T|okyo Ins|
|000001a0| 74 69 74 75 74 65 20 6f | 66 20 54 65 63 68 6e 6f |titute o|f Techno|
|000001b0| 6c 6f 67 79 0a 58 2d 53 | 75 62 6d 69 73 73 69 6f |logy.X-S|ubmissio|
|000001c0| 6e 73 3a 20 73 74 64 2d | 75 6e 69 78 40 75 75 6e |ns: std-|unix@uun|
|000001d0| 65 74 2e 75 75 2e 6e 65 | 74 0a 44 61 74 65 3a 20 |et.uu.ne|t.Date: |
|000001e0| 37 20 46 65 62 20 39 31 | 20 30 33 3a 33 32 3a 31 |7 Feb 91| 03:32:1|
|000001f0| 31 20 47 4d 54 0a 52 65 | 70 6c 79 2d 54 6f 3a 20 |1 GMT.Re|ply-To: |
|00000200| 73 74 64 2d 75 6e 69 78 | 40 75 75 6e 65 74 2e 75 |std-unix|@uunet.u|
|00000210| 75 2e 6e 65 74 0a 54 6f | 3a 20 73 74 64 2d 75 6e |u.net.To|: std-un|
|00000220| 69 78 40 75 75 6e 65 74 | 2e 75 75 2e 6e 65 74 0a |ix@uunet|.uu.net.|
|00000230| 0a 53 75 62 6d 69 74 74 | 65 64 2d 62 79 3a 20 6d |.Submitt|ed-by: m|
|00000240| 6f 68 74 61 40 6e 65 63 | 6f 6d 38 33 30 2e 63 63 |ohta@nec|om830.cc|
|00000250| 2e 74 69 74 65 63 68 2e | 61 63 2e 6a 70 20 28 4d |.titech.|ac.jp (M|
|00000260| 61 73 61 74 61 6b 61 20 | 4f 68 74 61 29 0a 0a 49 |asataka |Ohta)..I|
|00000270| 6e 20 61 72 74 69 63 6c | 65 20 3c 31 37 36 33 33 |n articl|e <17633|
|00000280| 40 63 73 2e 75 74 65 78 | 61 73 2e 65 64 75 3e 0a |@cs.utex|as.edu>.|
|00000290| 09 70 65 74 65 72 40 66 | 69 63 63 2e 66 65 72 72 |.peter@f|icc.ferr|
|000002a0| 61 6e 74 69 2e 63 6f 6d | 20 28 50 65 74 65 72 20 |anti.com| (Peter |
|000002b0| 64 61 20 53 69 6c 76 61 | 29 20 77 72 69 74 65 73 |da Silva|) writes|
|000002c0| 3a 0a 0a 3e 53 75 62 6a | 65 63 74 3a 20 52 65 3a |:..>Subj|ect: Re:|
|000002d0| 20 73 70 61 77 6e 28 29 | 20 77 61 72 73 2e 2e 2e | spawn()| wars...|
|000002e0| 20 70 6c 65 61 73 65 2e | 2e 2e 20 6e 6f 74 20 61 | please.|.. not a|
|000002f0| 67 61 69 6e 2e 2e 2e 0a | 0a 41 6e 64 20 79 6f 75 |gain....|.And you|
|00000300| 20 68 61 76 65 20 61 6c | 72 65 61 64 79 20 6c 6f | have al|ready lo|
|00000310| 73 74 20 74 68 65 20 77 | 61 72 2e 20 53 6f 2c 20 |st the w|ar. So, |
|00000320| 70 6c 65 61 73 65 21 20 | 6e 6f 74 20 61 67 61 69 |please! |not agai|
|00000330| 6e 21 0a 0a 3e 4c 65 61 | 76 65 20 69 6e 20 74 68 |n!..>Lea|ve in th|
|00000340| 65 0a 3e 66 6f 72 6b 28 | 29 20 63 61 6c 6c 2c 20 |e.>fork(|) call, |
|00000350| 62 75 74 20 61 6c 6c 6f | 77 20 61 20 6d 6f 72 65 |but allo|w a more|
|00000360| 20 65 66 66 69 63 69 65 | 6e 74 20 28 61 6e 64 2c | efficie|nt (and,|
|00000370| 20 6c 65 74 27 73 20 66 | 61 63 65 20 69 74 2c 20 | let's f|ace it, |
|00000380| 65 61 73 69 65 72 20 74 | 6f 0a 3e 75 6e 64 65 72 |easier t|o.>under|
|00000390| 73 74 61 6e 64 29 20 61 | 6c 74 65 72 6e 61 74 69 |stand) a|lternati|
|000003a0| 76 65 3a 20 73 70 61 77 | 6e 28 29 2e 0a 0a 49 6e |ve: spaw|n()...In|
|000003b0| 20 74 68 65 20 6c 61 73 | 74 20 77 61 72 2c 20 79 | the las|t war, y|
|000003c0| 6f 75 20 63 61 6e 27 74 | 20 65 76 65 6e 20 73 68 |ou can't| even sh|
|000003d0| 6f 77 20 61 20 73 70 65 | 63 69 66 69 63 61 74 69 |ow a spe|cificati|
|000003e0| 6f 6e 20 6f 66 20 73 70 | 61 77 6e 28 29 2c 20 62 |on of sp|awn(), b|
|000003f0| 65 63 61 75 73 65 20 6f | 66 0a 69 74 73 20 63 6f |ecause o|f.its co|
|00000400| 6d 70 6c 65 78 69 74 79 | 2e 20 45 76 65 72 79 20 |mplexity|. Every |
|00000410| 55 4e 49 58 20 70 72 6f | 67 72 61 6d 6d 65 72 20 |UNIX pro|grammer |
|00000420| 75 6e 64 65 72 73 74 61 | 6e 64 20 66 6f 72 6b 28 |understa|nd fork(|
|00000430| 29 20 61 6e 64 20 65 78 | 65 63 28 29 2c 20 62 75 |) and ex|ec(), bu|
|00000440| 74 0a 63 61 6e 27 74 20 | 75 6e 64 65 72 73 74 61 |t.can't |understa|
|00000450| 6e 64 20 73 70 61 77 6e | 28 29 20 77 69 74 68 6f |nd spawn|() witho|
|00000460| 75 74 20 69 74 73 20 73 | 70 65 63 69 66 69 63 61 |ut its s|pecifica|
|00000470| 74 69 6f 6e 2e 0a 0a 3e | 4c 65 61 76 65 20 69 6e |tion...>|Leave in|
|00000480| 20 74 68 65 20 66 6f 72 | 6b 28 29 20 63 61 6c 6c | the for|k() call|
|00000490| 2c 0a 0a 53 6f 2c 20 79 | 6f 75 20 61 72 65 20 6e |,..So, y|ou are n|
|000004a0| 6f 74 20 74 72 79 69 6e | 67 20 74 6f 20 65 6c 69 |ot tryin|g to eli|
|000004b0| 6d 69 6e 61 74 65 20 66 | 6f 72 6b 28 29 2e 0a 0a |minate f|ork()...|
|000004c0| 59 6f 75 20 73 68 6f 75 | 6c 64 20 61 6c 73 6f 20 |You shou|ld also |
|000004d0| 70 72 65 73 65 72 76 65 | 20 65 78 65 63 28 29 2c |preserve| exec(),|
|000004e0| 20 62 65 63 61 75 73 65 | 20 65 78 65 63 28 29 20 | because| exec() |
|000004f0| 68 61 73 20 69 74 73 20 | 6f 77 6e 20 70 75 72 70 |has its |own purp|
|00000500| 6f 73 65 20 61 6e 64 0a | 73 65 76 65 72 61 6c 20 |ose and.|several |
|00000510| 70 72 6f 67 72 61 6d 73 | 20 61 72 65 20 61 63 74 |programs| are act|
|00000520| 75 61 6c 6c 79 20 75 73 | 69 6e 67 20 69 74 20 77 |ually us|ing it w|
|00000530| 69 74 68 6f 75 74 20 66 | 6f 72 6b 28 29 2e 0a 0a |ithout f|ork()...|
|00000540| 3e 4e 6f 2e 20 54 68 6f | 73 65 20 61 72 65 20 74 |>No. Tho|se are t|
|00000550| 68 65 20 73 61 66 65 20 | 6f 70 65 72 61 74 69 6f |he safe |operatio|
|00000560| 6e 73 20 62 65 74 77 65 | 65 6e 20 66 6f 72 6b 28 |ns betwe|en fork(|
|00000570| 29 20 61 6e 64 20 65 78 | 65 63 28 29 20 6f 6e 20 |) and ex|ec() on |
|00000580| 55 4e 49 58 2e 0a 3e 0a | 3e 50 4f 53 49 58 20 6c |UNIX..>.|>POSIX l|
|00000590| 6f 6f 6b 73 20 6c 69 6b | 65 20 69 74 27 73 20 67 |ooks lik|e it's g|
|000005a0| 6f 69 6e 67 20 74 6f 20 | 63 6f 6d 70 72 69 73 65 |oing to |comprise|
|000005b0| 20 66 61 72 20 6d 6f 72 | 65 20 74 68 61 6e 20 55 | far mor|e than U|
|000005c0| 4e 49 58 2e 0a 0a 49 66 | 20 66 6f 72 6b 28 29 20 |NIX...If| fork() |
|000005d0| 61 6e 64 20 65 78 65 63 | 28 29 20 65 78 69 73 74 |and exec|() exist|
|000005e0| 73 20 69 6e 20 50 4f 53 | 49 58 2c 20 6d 61 6e 79 |s in POS|IX, many|
|000005f0| 20 28 69 66 20 50 4f 53 | 49 58 20 73 68 6f 75 6c | (if POS|IX shoul|
|00000600| 64 20 62 65 20 75 73 65 | 66 75 6c 2c 20 61 6c 6c |d be use|ful, all|
|00000610| 29 0a 6f 70 65 72 61 74 | 69 6f 6e 73 20 61 72 65 |).operat|ions are|
|00000620| 20 73 61 66 65 20 62 65 | 74 77 65 65 6e 20 66 6f | safe be|tween fo|
|00000630| 72 6b 28 29 20 61 6e 64 | 20 65 78 65 63 28 29 2e |rk() and| exec().|
|00000640| 0a 0a 3e 4c 6f 6f 6b 2c | 20 49 20 6b 6e 6f 77 20 |..>Look,| I know |
|00000650| 79 6f 75 20 64 6f 6e 27 | 74 20 6c 69 6b 65 20 73 |you don'|t like s|
|00000660| 70 61 77 6e 28 29 2e 20 | 42 75 74 20 69 6e 20 61 |pawn(). |But in a|
|00000670| 20 6c 6f 74 20 6f 66 20 | 65 6e 76 69 72 6f 6e 6d | lot of |environm|
|00000680| 65 6e 74 73 2e 2e 2e 20 | 49 4e 43 4c 55 44 49 4e |ents... |INCLUDIN|
|00000690| 47 0a 3e 4f 4e 45 53 20 | 54 48 41 54 20 41 52 45 |G.>ONES |THAT ARE|
|000006a0| 20 4f 54 48 45 52 57 49 | 53 45 20 51 55 49 54 45 | OTHERWI|SE QUITE|
|000006b0| 20 43 41 50 41 42 4c 45 | 20 4f 46 20 53 55 50 50 | CAPABLE| OF SUPP|
|000006c0| 4f 52 54 49 4e 47 20 41 | 20 50 4f 53 49 58 20 41 |ORTING A| POSIX A|
|000006d0| 42 49 2e 2e 2e 20 69 74 | 20 69 73 20 2a 6e 6f 74 |BI... it| is *not|
|000006e0| 2a 0a 3e 70 6f 73 73 69 | 62 6c 65 20 74 6f 20 64 |*.>possi|ble to d|
|000006f0| 6f 20 61 20 73 61 66 65 | 20 61 6e 64 20 65 66 66 |o a safe| and eff|
|00000700| 69 63 69 65 6e 74 20 69 | 6d 70 6c 65 6d 65 6e 74 |icient i|mplement|
|00000710| 61 74 69 6f 6e 20 6f 66 | 20 66 6f 72 6b 28 29 2e |ation of| fork().|
|00000720| 0a 0a 41 20 6c 6f 74 20 | 6f 66 3f 20 43 61 6e 20 |..A lot |of? Can |
|00000730| 79 6f 75 20 6e 61 6d 65 | 20 74 68 65 6d 3f 0a 0a |you name| them?..|
|00000740| 41 6e 79 77 61 79 2c 20 | 69 74 20 69 73 20 74 68 |Anyway, |it is th|
|00000750| 65 20 70 72 6f 62 6c 65 | 6d 20 6f 66 20 74 68 61 |e proble|m of tha|
|00000760| 74 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 2e 20 49 |t enviro|nment. I|
|00000770| 74 20 73 68 6f 75 6c 64 | 20 70 72 6f 76 69 64 65 |t should| provide|
|00000780| 20 73 61 66 65 0a 61 6e | 64 20 69 6e 65 66 66 69 | safe.an|d ineffi|
|00000790| 63 69 65 6e 74 20 69 6d | 70 6c 65 6d 65 6e 74 61 |cient im|plementa|
|000007a0| 74 69 6f 6e 20 6f 66 20 | 66 6f 72 6b 28 29 20 61 |tion of |fork() a|
|000007b0| 6e 64 20 73 61 66 65 20 | 61 6e 64 20 65 66 66 69 |nd safe |and effi|
|000007c0| 63 69 65 6e 74 0a 69 6d | 70 6c 65 6d 65 6e 74 61 |cient.im|plementa|
|000007d0| 74 69 6f 6e 20 6f 66 20 | 73 79 73 74 65 6d 28 29 |tion of |system()|
|000007e0| 2e 20 49 66 20 61 20 70 | 72 6f 67 72 61 6d 6d 65 |. If a p|rogramme|
|000007f0| 72 20 77 61 6e 74 20 74 | 6f 20 73 71 75 65 65 7a |r want t|o squeez|
|00000800| 65 20 65 78 74 72 61 0a | 70 65 72 66 6f 72 6d 61 |e extra.|performa|
|00000810| 6e 63 65 20 69 6e 20 73 | 6f 6d 65 20 63 61 73 65 |nce in s|ome case|
|00000820| 20 77 68 69 63 68 20 63 | 61 6e 20 6e 6f 74 20 63 | which c|an not c|
|00000830| 6f 76 65 72 65 64 20 62 | 79 20 73 79 73 74 65 6d |overed b|y system|
|00000840| 28 29 20 28 64 6f 73 65 | 20 73 75 63 68 0a 61 20 |() (dose| such.a |
|00000850| 63 61 73 65 20 61 63 74 | 75 61 6c 6c 79 20 65 78 |case act|ually ex|
|00000860| 69 73 74 3f 29 2c 20 68 | 65 20 63 61 6e 20 64 6f |ist?), h|e can do|
|00000870| 20 73 6f 20 62 79 20 6e | 6f 74 20 75 73 69 6e 67 | so by n|ot using|
|00000880| 20 50 4f 53 49 58 20 74 | 68 65 72 65 20 69 66 20 | POSIX t|here if |
|00000890| 68 65 0a 74 68 69 6e 6b | 20 65 66 66 65 63 69 65 |he.think| effecie|
|000008a0| 6e 63 79 20 69 73 20 6d | 6f 72 65 20 69 6d 70 6f |ncy is m|ore impo|
|000008b0| 72 74 61 6e 74 20 74 68 | 61 6e 20 41 42 49 2e 0a |rtant th|an ABI..|
|000008c0| 0a 3e 4c 65 74 27 73 20 | 73 61 79 20 79 6f 75 20 |.>Let's |say you |
|000008d0| 64 65 66 69 6e 65 20 76 | 66 6f 72 6b 28 29 20 61 |define v|fork() a|
|000008e0| 73 20 22 73 65 74 20 61 | 20 66 6c 61 67 20 74 68 |s "set a| flag th|
|000008f0| 61 74 20 61 6c 6c 20 70 | 6f 73 69 78 20 63 61 6c |at all p|osix cal|
|00000900| 6c 73 20 74 68 61 74 20 | 64 65 61 6c 0a 3e 77 69 |ls that |deal.>wi|
|00000910| 74 68 20 75 69 64 2c 20 | 73 69 67 6e 61 6c 73 2c |th uid, |signals,|
|00000920| 20 66 69 6c 65 73 2c 20 | 65 74 63 2e 2e 2e 20 6c | files, |etc... l|
|00000930| 6f 6f 6b 20 61 74 2c 20 | 73 6f 20 74 68 65 79 20 |ook at, |so they |
|00000940| 6a 75 73 74 20 77 72 69 | 74 65 20 61 20 22 73 63 |just wri|te a "sc|
|00000950| 72 69 70 74 22 20 6f 66 | 0a 3e 61 63 74 69 6f 6e |ript" of|.>action|
|00000960| 73 20 74 6f 20 74 61 6b | 65 20 6f 6e 20 62 65 68 |s to tak|e on beh|
|00000970| 61 6c 66 20 6f 66 20 74 | 68 65 20 6e 65 77 20 70 |alf of t|he new p|
|00000980| 72 6f 63 65 73 73 22 2e | 0a 0a 49 20 63 61 6e 27 |rocess".|..I can'|
|00000990| 74 20 75 6e 64 65 72 73 | 74 61 6e 64 20 77 68 61 |t unders|tand wha|
|000009a0| 74 20 79 6f 75 20 61 72 | 65 20 73 61 79 69 6e 67 |t you ar|e saying|
|000009b0| 2e 20 22 73 65 74 20 61 | 20 66 6c 61 67 22 3f 20 |. "set a| flag"? |
|000009c0| 57 68 61 74 3f 0a 0a 3e | 3e 20 4d 6f 73 74 20 28 |What?..>|> Most (|
|000009d0| 70 65 72 68 61 70 73 2c | 20 6d 6f 72 65 20 74 68 |perhaps,| more th|
|000009e0| 61 6e 20 39 30 25 29 20 | 6f 66 20 63 61 73 65 73 |an 90%) |of cases|
|000009f0| 20 77 68 65 72 65 20 66 | 6f 72 6b 2f 65 78 65 63 | where f|ork/exec|
|00000a00| 20 69 73 20 6e 65 63 65 | 73 73 61 72 79 0a 3e 3e | is nece|ssary.>>|
|00000a10| 20 69 73 20 63 6f 76 65 | 72 65 64 20 62 79 20 73 | is cove|red by s|
|00000a20| 79 73 74 65 6d 28 29 2e | 20 73 70 61 77 6e 28 29 |ystem().| spawn()|
|00000a30| 20 69 73 20 6e 6f 74 20 | 6e 65 63 65 73 73 61 72 | is not |necessar|
|00000a40| 79 2e 0a 3e 0a 3e 09 4e | 6f 2c 20 73 79 73 74 65 |y..>.>.N|o, syste|
|00000a50| 6d 28 29 20 61 6e 64 20 | 70 6f 70 65 6e 28 29 20 |m() and |popen() |
|00000a60| 63 61 6e 20 6e 6f 74 2c | 20 65 76 65 72 2c 20 6c |can not,| ever, l|
|00000a70| 65 74 20 79 6f 75 20 70 | 61 73 73 20 61 20 73 65 |et you p|ass a se|
|00000a80| 74 20 6f 66 0a 3e 09 61 | 72 67 75 6d 65 6e 74 73 |t of.>.a|rguments|
|00000a90| 20 74 6f 20 61 20 70 72 | 6f 67 72 61 6d 20 77 69 | to a pr|ogram wi|
|00000aa0| 74 68 6f 75 74 20 64 69 | 64 64 6c 69 6e 67 20 62 |thout di|ddling b|
|00000ab0| 79 20 74 68 65 20 73 68 | 65 6c 6c 2e 20 57 68 65 |y the sh|ell. Whe|
|00000ac0| 6e 20 79 6f 75 0a 3e 09 | 68 61 76 65 20 6e 6f 20 |n you.>.|have no |
|00000ad0| 77 61 79 20 6f 66 20 6b | 6e 6f 77 69 6e 67 20 77 |way of k|nowing w|
|00000ae0| 68 65 74 68 65 72 20 74 | 68 61 74 20 73 68 65 6c |hether t|hat shel|
|00000af0| 6c 20 77 69 6c 6c 20 62 | 65 20 73 68 2c 20 63 73 |l will b|e sh, cs|
|00000b00| 68 2c 20 6b 73 68 2c 0a | 3e 09 6f 72 20 65 76 65 |h, ksh,.|>.or eve|
|00000b10| 6e 20 72 63 20 77 68 61 | 74 20 63 61 6e 20 79 6f |n rc wha|t can yo|
|00000b20| 75 20 64 6f 20 74 6f 20 | 70 72 6f 74 65 63 74 20 |u do to |protect |
|00000b30| 79 6f 75 72 73 65 6c 66 | 3f 0a 0a 52 65 61 64 20 |yourself|?..Read |
|00000b40| 74 68 65 20 6d 61 6e 75 | 61 6c 21 20 53 79 73 74 |the manu|al! Syst|
|00000b50| 65 6d 28 29 20 61 6e 64 | 20 70 6f 70 65 6e 28 29 |em() and| popen()|
|00000b60| 20 61 6c 77 61 79 73 20 | 75 73 65 20 22 2f 62 69 | always |use "/bi|
|00000b70| 6e 2f 73 68 22 2e 0a 0a | 3e 09 57 68 6f 20 6b 6e |n/sh"...|>.Who kn|
|00000b80| 6f 77 73 2c 20 49 20 63 | 61 6e 20 65 61 73 69 6c |ows, I c|an easil|
|00000b90| 79 20 69 6d 61 67 69 6e | 65 20 44 45 43 20 73 65 |y imagin|e DEC se|
|00000ba0| 74 74 69 6e 67 20 74 68 | 69 6e 67 73 20 75 70 20 |tting th|ings up |
|00000bb0| 73 6f 20 61 20 75 73 65 | 72 0a 3e 09 63 6f 75 6c |so a use|r.>.coul|
|00000bc0| 64 20 73 65 74 20 68 69 | 73 20 73 68 65 6c 6c 20 |d set hi|s shell |
|00000bd0| 74 6f 20 44 43 4c 20 61 | 6e 64 20 68 6f 73 65 20 |to DCL a|nd hose |
|00000be0| 2a 65 76 65 72 79 74 68 | 69 6e 67 2a 20 75 70 2e |*everyth|ing* up.|
|00000bf0| 0a 0a 55 73 65 72 27 73 | 20 73 68 65 6c 6c 20 68 |..User's| shell h|
|00000c00| 61 73 20 6e 6f 74 68 69 | 6e 67 20 74 6f 20 64 6f |as nothi|ng to do|
|00000c10| 20 77 69 74 68 20 74 68 | 65 20 62 65 68 61 76 69 | with th|e behavi|
|00000c20| 6f 75 72 20 6f 66 20 73 | 79 73 74 65 6d 28 29 20 |our of s|ystem() |
|00000c30| 6e 6f 72 20 70 6f 70 65 | 6e 28 29 2e 0a 0a 3e 09 |nor pope|n()...>.|
|00000c40| 55 73 69 6e 67 20 73 79 | 73 74 65 6d 28 29 20 69 |Using sy|stem() i|
|00000c50| 6e 20 70 72 6f 67 72 61 | 6d 73 20 6c 69 6b 65 20 |n progra|ms like |
|00000c60| 28 66 6f 72 20 65 78 61 | 6d 70 6c 65 29 20 75 75 |(for exa|mple) uu|
|00000c70| 63 70 2c 20 6d 61 69 6c | 20 68 61 6e 64 6c 65 72 |cp, mail| handler|
|00000c80| 73 2c 0a 3e 09 61 6e 64 | 20 73 6f 20 6f 6e 20 69 |s,.>.and| so on i|
|00000c90| 73 20 61 20 73 65 63 75 | 72 69 74 79 20 68 6f 6c |s a secu|rity hol|
|00000ca0| 65 20 79 6f 75 20 63 61 | 6e 20 64 72 69 76 65 20 |e you ca|n drive |
|00000cb0| 61 20 74 72 75 63 6b 20 | 74 68 72 6f 75 67 68 2e |a truck |through.|
|00000cc0| 0a 0a 59 65 73 2c 20 69 | 74 20 63 61 6e 20 62 65 |..Yes, i|t can be|
|00000cd0| 20 61 20 73 65 63 75 72 | 69 74 79 20 68 6f 6c 65 | a secur|ity hole|
|00000ce0| 20 69 66 20 75 73 65 64 | 20 69 6d 70 72 6f 70 65 | if used| imprope|
|00000cf0| 72 6c 79 20 6a 75 73 74 | 20 6c 69 6b 65 20 6d 61 |rly just| like ma|
|00000d00| 6e 79 20 73 79 73 74 65 | 6d 0a 63 61 6c 6c 73 2e |ny syste|m.calls.|
|00000d10| 20 49 27 6d 20 73 75 72 | 65 20 73 70 61 77 6e 28 | I'm sur|e spawn(|
|00000d20| 29 20 63 61 6e 20 61 6c | 73 6f 20 62 65 20 61 20 |) can al|so be a |
|00000d30| 73 65 63 75 72 69 74 79 | 20 68 6f 6c 65 2e 20 53 |security| hole. S|
|00000d40| 6f 20 77 68 61 74 3f 0a | 0a 09 09 09 09 09 09 4d |o what?.|.......M|
|00000d50| 61 73 61 74 61 6b 61 20 | 4f 68 74 61 0a 0a 56 6f |asataka |Ohta..Vo|
|00000d60| 6c 75 6d 65 2d 4e 75 6d | 62 65 72 3a 20 56 6f 6c |lume-Num|ber: Vol|
|00000d70| 75 6d 65 20 32 32 2c 20 | 4e 75 6d 62 65 72 20 31 |ume 22, |Number 1|
|00000d80| 31 32 0a 0a | |12.. | |
+--------+-------------------------+-------------------------+--------+--------+