home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / reports / 1988.01.followups next >
Mailbox/MIME Entity  |  1989-01-07  |  7.9 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 uucp Mon Jan 25 13:29:52 1988", 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 75 75 63 | 70 20 20 4d 6f 6e 20 4a |From uuc|p Mon J|
|00000010| 61 6e 20 32 35 20 31 33 | 3a 32 39 3a 35 32 20 31 |an 25 13|:29:52 1|
|00000020| 39 38 38 0a 52 65 63 65 | 69 76 65 64 3a 20 62 79 |988.Rece|ived: by|
|00000030| 20 75 75 6e 65 74 2e 55 | 55 2e 4e 45 54 20 28 35 | uunet.U|U.NET (5|
|00000040| 2e 35 34 2f 31 2e 31 34 | 29 20 0a 09 69 64 20 41 |.54/1.14|) ..id A|
|00000050| 41 30 36 38 32 32 3b 20 | 4d 6f 6e 2c 20 32 35 20 |A06822; |Mon, 25 |
|00000060| 4a 61 6e 20 38 38 20 31 | 33 3a 32 39 3a 35 32 20 |Jan 88 1|3:29:52 |
|00000070| 45 53 54 0a 46 72 6f 6d | 3a 20 47 75 79 20 48 61 |EST.From|: Guy Ha|
|00000080| 72 72 69 73 20 3c 67 75 | 79 40 53 75 6e 2e 43 4f |rris <gu|y@Sun.CO|
|00000090| 4d 3e 0a 4e 65 77 73 67 | 72 6f 75 70 73 3a 20 63 |M>.Newsg|roups: c|
|000000a0| 6f 6d 70 2e 73 74 64 2e | 75 6e 69 78 0a 53 75 62 |omp.std.|unix.Sub|
|000000b0| 6a 65 63 74 3a 20 52 65 | 3a 20 53 74 61 6e 64 61 |ject: Re|: Standa|
|000000c0| 72 64 73 20 55 70 64 61 | 74 65 20 28 33 20 6f 66 |rds Upda|te (3 of|
|000000d0| 20 34 29 3a 20 4e 42 53 | 20 46 49 50 53 0a 4d 65 | 4): NBS| FIPS.Me|
|000000e0| 73 73 61 67 65 2d 49 64 | 3a 20 3c 31 31 36 40 6c |ssage-Id|: <116@l|
|000000f0| 6f 6e 67 77 61 79 2e 54 | 49 43 2e 43 4f 4d 3e 0a |ongway.T|IC.COM>.|
|00000100| 53 65 6e 64 65 72 3a 20 | 73 74 64 2d 75 6e 69 78 |Sender: |std-unix|
|00000110| 40 6c 6f 6e 67 77 61 79 | 2e 54 49 43 2e 43 4f 4d |@longway|.TIC.COM|
|00000120| 0a 52 65 70 6c 79 2d 54 | 6f 3a 20 67 75 79 40 73 |.Reply-T|o: guy@s|
|00000130| 75 6e 2e 63 6f 6d 20 28 | 47 75 79 20 48 61 72 72 |un.com (|Guy Harr|
|00000140| 69 73 29 0a 44 61 74 65 | 3a 20 32 35 20 4a 61 6e |is).Date|: 25 Jan|
|00000150| 20 38 38 20 30 31 3a 32 | 37 3a 32 34 20 47 4d 54 | 88 01:2|7:24 GMT|
|00000160| 0a 41 70 70 61 72 65 6e | 74 6c 79 2d 54 6f 3a 20 |.Apparen|tly-To: |
|00000170| 73 74 64 2d 75 6e 69 78 | 2d 61 72 63 68 69 76 65 |std-unix|-archive|
|00000180| 0a 53 74 61 74 75 73 3a | 20 4f 0a 0a 46 72 6f 6d |.Status:| O..From|
|00000190| 3a 20 75 75 6e 65 74 21 | 53 75 6e 2e 43 4f 4d 21 |: uunet!|Sun.COM!|
|000001a0| 67 75 79 20 28 47 75 79 | 20 48 61 72 72 69 73 29 |guy (Guy| Harris)|
|000001b0| 0a 0a 54 68 69 73 20 6d | 61 79 20 77 61 6e 74 20 |..This m|ay want |
|000001c0| 74 6f 20 62 65 20 66 6f | 72 77 61 72 64 65 64 20 |to be fo|rwarded |
|000001d0| 74 6f 20 53 68 61 6e 65 | 2c 20 72 61 74 68 65 72 |to Shane|, rather|
|000001e0| 20 74 68 61 6e 20 70 6f | 73 74 65 64 3b 20 75 6e | than po|sted; un|
|000001f0| 66 6f 72 74 75 6e 61 74 | 65 6c 79 2c 0a 49 20 64 |fortunat|ely,.I d|
|00000200| 6f 6e 27 74 20 72 65 6d | 65 6d 62 65 72 20 68 69 |on't rem|ember hi|
|00000210| 73 20 65 6d 61 69 6c 20 | 61 64 64 72 65 73 73 2e |s email |address.|
|00000220| 0a 0a 5b 20 48 65 27 73 | 20 61 68 62 79 40 62 75 |..[ He's| ahby@bu|
|00000230| 6e 67 69 61 2e 6d 6e 2e | 6f 72 67 20 6f 72 20 75 |ngia.mn.|org or u|
|00000240| 75 6e 65 74 21 72 75 74 | 67 65 72 73 21 75 6d 6e |unet!rut|gers!umn|
|00000250| 2d 63 73 21 62 75 6e 67 | 69 61 21 61 68 62 79 2c |-cs!bung|ia!ahby,|
|00000260| 0a 62 75 74 20 74 68 69 | 73 20 6c 6f 6f 6b 73 20 |.but thi|s looks |
|00000270| 6c 69 6b 65 20 61 20 75 | 73 65 66 75 6c 20 63 6f |like a u|seful co|
|00000280| 72 72 65 63 74 69 6f 6e | 20 6f 66 20 61 20 74 65 |rrection| of a te|
|00000290| 63 68 6e 69 63 61 6c 20 | 64 65 74 61 69 6c 0a 28 |chnical |detail.(|
|000002a0| 6f 6e 65 20 49 20 6d 69 | 73 73 65 64 20 6f 6e 20 |one I mi|ssed on |
|000002b0| 72 65 76 69 65 77 29 20 | 74 68 61 74 20 73 68 6f |review) |that sho|
|000002c0| 75 6c 64 20 62 65 20 70 | 6f 73 74 65 64 2e 20 2d |uld be p|osted. -|
|000002d0| 6d 6f 64 20 5d 0a 0a 20 | 20 20 20 20 20 20 20 2d |mod ].. | -|
|000002e0| 20 4f 6e 6c 79 20 74 68 | 65 20 73 75 70 65 72 2d | Only th|e super-|
|000002f0| 75 73 65 72 20 73 68 61 | 6c 6c 20 62 65 20 61 6c |user sha|ll be al|
|00000300| 6c 6f 77 65 64 20 74 6f | 20 6c 69 6e 6b 20 6f 72 |lowed to| link or|
|00000310| 0a 20 20 20 20 20 20 20 | 20 20 20 75 6e 6c 69 6e |. | unlin|
|00000320| 6b 20 64 69 72 65 63 74 | 6f 72 69 65 73 20 28 32 |k direct|ories (2|
|00000330| 2e 31 30 2e 34 2c 20 6c | 69 6e 65 73 20 39 33 38 |.10.4, l|ines 938|
|00000340| 20 2d 20 39 33 39 29 2e | 0a 0a 20 20 20 20 20 20 | - 939).|.. |
|00000350| 20 20 20 20 41 6e 6f 74 | 68 65 72 20 75 73 65 66 | Anot|her usef|
|00000360| 75 6c 20 6f 70 74 69 6f | 6e 2e 20 20 41 20 70 6f |ul optio|n. A po|
|00000370| 72 74 61 62 6c 65 20 61 | 70 70 6c 69 63 61 74 69 |rtable a|pplicati|
|00000380| 6f 6e 20 6d 61 79 0a 20 | 20 20 20 20 20 20 20 20 |on may. | |
|00000390| 20 6e 65 65 64 20 74 6f | 20 6b 6e 6f 77 20 77 68 | need to| know wh|
|000003a0| 65 74 68 65 72 20 69 74 | 20 72 65 71 75 69 72 65 |ether it| require|
|000003b0| 73 20 22 61 70 70 72 6f | 70 72 69 74 65 0a 20 20 |s "appro|prite. |
|000003c0| 20 20 20 20 20 20 20 20 | 70 72 69 76 69 6c 65 67 | |privileg|
|000003d0| 65 73 22 20 74 6f 20 6d | 6f 76 65 20 64 69 72 65 |es" to m|ove dire|
|000003e0| 63 74 6f 72 69 65 73 20 | 61 72 6f 75 6e 64 2e 0a |ctories |around..|
|000003f0| 0a 4e 6f 20 70 6f 72 74 | 61 62 6c 65 20 61 70 70 |.No port|able app|
|00000400| 6c 69 63 61 74 69 6f 6e | 20 6e 65 65 64 73 20 22 |lication| needs "|
|00000410| 61 70 70 72 6f 70 72 69 | 61 74 65 20 70 72 69 76 |appropri|ate priv|
|00000420| 69 6c 65 67 65 73 22 20 | 74 6f 20 6d 6f 76 65 20 |ileges" |to move |
|00000430| 64 69 72 65 63 74 6f 72 | 69 65 73 0a 61 72 6f 75 |director|ies.arou|
|00000440| 6e 64 3b 20 69 74 20 63 | 61 6e 20 75 73 65 20 22 |nd; it c|an use "|
|00000450| 72 65 6e 61 6d 65 28 29 | 22 2e 20 20 54 68 65 20 |rename()|". The |
|00000460| 63 6f 72 72 65 63 74 20 | 77 61 79 20 74 6f 20 6d |correct |way to m|
|00000470| 6f 76 65 20 61 6e 79 74 | 68 69 6e 67 20 75 6e 64 |ove anyt|hing und|
|00000480| 65 72 20 61 20 50 4f 53 | 49 58 0a 69 6d 70 6c 65 |er a POS|IX.imple|
|00000490| 6d 65 6e 74 61 74 69 6f | 6e 20 69 73 20 74 6f 20 |mentatio|n is to |
|000004a0| 75 73 65 20 22 72 65 6e | 61 6d 65 28 29 22 2c 20 |use "ren|ame()", |
|000004b0| 6e 6f 74 20 22 6c 69 6e | 6b 28 29 22 20 61 6e 64 |not "lin|k()" and|
|000004c0| 20 22 75 6e 6c 69 6e 6b | 28 29 22 2e 0a 0a 56 6f | "unlink|()"...Vo|
|000004d0| 6c 75 6d 65 2d 4e 75 6d | 62 65 72 3a 20 56 6f 6c |lume-Num|ber: Vol|
|000004e0| 75 6d 65 20 31 33 2c 20 | 4e 75 6d 62 65 72 20 36 |ume 13, |Number 6|
|000004f0| 0a 0a 46 72 6f 6d 20 75 | 75 63 70 20 20 4d 6f 6e |..From u|ucp Mon|
|00000500| 20 46 65 62 20 20 31 20 | 31 35 3a 34 31 3a 30 33 | Feb 1 |15:41:03|
|00000510| 20 31 39 38 38 0a 52 65 | 63 65 69 76 65 64 3a 20 | 1988.Re|ceived: |
|00000520| 62 79 20 75 75 6e 65 74 | 2e 55 55 2e 4e 45 54 20 |by uunet|.UU.NET |
|00000530| 28 35 2e 35 34 2f 31 2e | 31 34 29 20 0a 09 69 64 |(5.54/1.|14) ..id|
|00000540| 20 41 41 31 31 33 32 34 | 3b 20 4d 6f 6e 2c 20 31 | AA11324|; Mon, 1|
|00000550| 20 46 65 62 20 38 38 20 | 31 35 3a 34 31 3a 30 33 | Feb 88 |15:41:03|
|00000560| 20 45 53 54 0a 46 72 6f | 6d 3a 20 53 68 61 6e 65 | EST.Fro|m: Shane|
|00000570| 20 50 2e 20 4d 63 43 61 | 72 72 6f 6e 20 3c 61 68 | P. McCa|rron <ah|
|00000580| 62 79 40 62 75 6e 67 69 | 61 2e 62 75 6e 67 69 61 |by@bungi|a.bungia|
|00000590| 2e 6d 6e 2e 6f 72 67 3e | 0a 4e 65 77 73 67 72 6f |.mn.org>|.Newsgro|
|000005a0| 75 70 73 3a 20 63 6f 6d | 70 2e 73 74 64 2e 75 6e |ups: com|p.std.un|
|000005b0| 69 78 0a 53 75 62 6a 65 | 63 74 3a 20 52 65 3a 20 |ix.Subje|ct: Re: |
|000005c0| 53 74 61 6e 64 61 72 64 | 73 20 55 70 64 61 74 65 |Standard|s Update|
|000005d0| 20 28 33 20 6f 66 20 34 | 29 3a 20 4e 42 53 20 46 | (3 of 4|): NBS F|
|000005e0| 49 50 53 0a 4d 65 73 73 | 61 67 65 2d 49 64 3a 20 |IPS.Mess|age-Id: |
|000005f0| 3c 31 32 30 40 6c 6f 6e | 67 77 61 79 2e 54 49 43 |<120@lon|gway.TIC|
|00000600| 2e 43 4f 4d 3e 0a 52 65 | 66 65 72 65 6e 63 65 73 |.COM>.Re|ferences|
|00000610| 3a 20 3c 31 31 36 40 6c | 6f 6e 67 77 61 79 2e 54 |: <116@l|ongway.T|
|00000620| 49 43 2e 43 4f 4d 3e 0a | 53 65 6e 64 65 72 3a 20 |IC.COM>.|Sender: |
|00000630| 73 74 64 2d 75 6e 69 78 | 40 6c 6f 6e 67 77 61 79 |std-unix|@longway|
|00000640| 2e 54 49 43 2e 43 4f 4d | 0a 52 65 70 6c 79 2d 54 |.TIC.COM|.Reply-T|
|00000650| 6f 3a 20 75 75 6e 65 74 | 21 72 75 74 67 65 72 73 |o: uunet|!rutgers|
|00000660| 21 75 6d 6e 2d 63 73 21 | 71 75 65 73 74 21 62 75 |!umn-cs!|quest!bu|
|00000670| 6e 67 69 61 21 61 68 62 | 79 20 28 53 68 61 6e 65 |ngia!ahb|y (Shane|
|00000680| 20 50 2e 20 4d 63 43 61 | 72 72 6f 6e 29 0a 4f 72 | P. McCa|rron).Or|
|00000690| 67 61 6e 69 7a 61 74 69 | 6f 6e 3a 20 42 75 67 6f |ganizati|on: Bugo|
|000006a0| 73 6c 61 76 69 61 6e 20 | 45 6d 62 61 73 73 79 2c |slavian |Embassy,|
|000006b0| 20 53 74 2e 20 50 61 75 | 6c 2c 20 4d 4e 0a 44 61 | St. Pau|l, MN.Da|
|000006c0| 74 65 3a 20 32 38 20 4a | 61 6e 20 38 38 20 30 33 |te: 28 J|an 88 03|
|000006d0| 3a 32 36 3a 35 31 20 47 | 4d 54 0a 41 70 70 61 72 |:26:51 G|MT.Appar|
|000006e0| 65 6e 74 6c 79 2d 54 6f | 3a 20 73 74 64 2d 75 6e |ently-To|: std-un|
|000006f0| 69 78 2d 61 72 63 68 69 | 76 65 0a 53 74 61 74 75 |ix-archi|ve.Statu|
|00000700| 73 3a 20 4f 0a 0a 46 72 | 6f 6d 3a 20 61 68 62 79 |s: O..Fr|om: ahby|
|00000710| 40 62 75 6e 67 69 61 2e | 62 75 6e 67 69 61 2e 6d |@bungia.|bungia.m|
|00000720| 6e 2e 6f 72 67 20 28 53 | 68 61 6e 65 20 50 2e 20 |n.org (S|hane P. |
|00000730| 4d 63 43 61 72 72 6f 6e | 29 0a 0a 0a 49 6e 20 61 |McCarron|)...In a|
|00000740| 72 74 69 63 6c 65 20 3c | 31 31 36 40 6c 6f 6e 67 |rticle <|116@long|
|00000750| 77 61 79 2e 54 49 43 2e | 43 4f 4d 3e 20 67 75 79 |way.TIC.|COM> guy|
|00000760| 40 73 75 6e 2e 63 6f 6d | 20 28 47 75 79 20 48 61 |@sun.com| (Guy Ha|
|00000770| 72 72 69 73 29 20 77 72 | 69 74 65 73 3a 0a 3e 46 |rris) wr|ites:.>F|
|00000780| 72 6f 6d 3a 20 75 75 6e | 65 74 21 53 75 6e 2e 43 |rom: uun|et!Sun.C|
|00000790| 4f 4d 21 67 75 79 20 28 | 47 75 79 20 48 61 72 72 |OM!guy (|Guy Harr|
|000007a0| 69 73 29 0a 3e 0a 3e 54 | 68 69 73 20 6d 61 79 20 |is).>.>T|his may |
|000007b0| 77 61 6e 74 20 74 6f 20 | 62 65 20 66 6f 72 77 61 |want to |be forwa|
|000007c0| 72 64 65 64 20 74 6f 20 | 53 68 61 6e 65 2c 20 72 |rded to |Shane, r|
|000007d0| 61 74 68 65 72 20 74 68 | 61 6e 20 70 6f 73 74 65 |ather th|an poste|
|000007e0| 64 3b 20 75 6e 66 6f 72 | 74 75 6e 61 74 65 6c 79 |d; unfor|tunately|
|000007f0| 2c 0a 3e 49 20 64 6f 6e | 27 74 20 72 65 6d 65 6d |,.>I don|'t remem|
|00000800| 62 65 72 20 68 69 73 20 | 65 6d 61 69 6c 20 61 64 |ber his |email ad|
|00000810| 64 72 65 73 73 2e 0a 3e | 0a 3e 5b 20 48 65 27 73 |dress..>|.>[ He's|
|00000820| 20 61 68 62 79 40 62 75 | 6e 67 69 61 2e 6d 6e 2e | ahby@bu|ngia.mn.|
|00000830| 6f 72 67 20 6f 72 20 75 | 75 6e 65 74 21 72 75 74 |org or u|unet!rut|
|00000840| 67 65 72 73 21 75 6d 6e | 2d 63 73 21 62 75 6e 67 |gers!umn|-cs!bung|
|00000850| 69 61 21 61 68 62 79 2c | 0a 3e 62 75 74 20 74 68 |ia!ahby,|.>but th|
|00000860| 69 73 20 6c 6f 6f 6b 73 | 20 6c 69 6b 65 20 61 20 |is looks| like a |
|00000870| 75 73 65 66 75 6c 20 63 | 6f 72 72 65 63 74 69 6f |useful c|orrectio|
|00000880| 6e 20 6f 66 20 61 20 74 | 65 63 68 6e 69 63 61 6c |n of a t|echnical|
|00000890| 20 64 65 74 61 69 6c 0a | 3e 28 6f 6e 65 20 49 20 | detail.|>(one I |
|000008a0| 6d 69 73 73 65 64 20 6f | 6e 20 72 65 76 69 65 77 |missed o|n review|
|000008b0| 29 20 74 68 61 74 20 73 | 68 6f 75 6c 64 20 62 65 |) that s|hould be|
|000008c0| 20 70 6f 73 74 65 64 2e | 20 2d 6d 6f 64 20 5d 0a | posted.| -mod ].|
|000008d0| 3e 0a 3e 20 20 20 20 20 | 20 20 20 2d 20 4f 6e 6c |>.> | - Onl|
|000008e0| 79 20 74 68 65 20 73 75 | 70 65 72 2d 75 73 65 72 |y the su|per-user|
|000008f0| 20 73 68 61 6c 6c 20 62 | 65 20 61 6c 6c 6f 77 65 | shall b|e allowe|
|00000900| 64 20 74 6f 20 6c 69 6e | 6b 20 6f 72 0a 3e 20 20 |d to lin|k or.> |
|00000910| 20 20 20 20 20 20 20 20 | 75 6e 6c 69 6e 6b 20 64 | |unlink d|
|00000920| 69 72 65 63 74 6f 72 69 | 65 73 20 28 32 2e 31 30 |irectori|es (2.10|
|00000930| 2e 34 2c 20 6c 69 6e 65 | 73 20 39 33 38 20 2d 20 |.4, line|s 938 - |
|00000940| 39 33 39 29 2e 0a 3e 0a | 3e 20 20 20 20 20 20 20 |939)..>.|> |
|00000950| 20 20 20 41 6e 6f 74 68 | 65 72 20 75 73 65 66 75 | Anoth|er usefu|
|00000960| 6c 20 6f 70 74 69 6f 6e | 2e 20 20 41 20 70 6f 72 |l option|. A por|
|00000970| 74 61 62 6c 65 20 61 70 | 70 6c 69 63 61 74 69 6f |table ap|plicatio|
|00000980| 6e 20 6d 61 79 0a 3e 20 | 20 20 20 20 20 20 20 20 |n may.> | |
|00000990| 20 6e 65 65 64 20 74 6f | 20 6b 6e 6f 77 20 77 68 | need to| know wh|
|000009a0| 65 74 68 65 72 20 69 74 | 20 72 65 71 75 69 72 65 |ether it| require|
|000009b0| 73 20 22 61 70 70 72 6f | 70 72 69 74 65 0a 3e 20 |s "appro|prite.> |
|000009c0| 20 20 20 20 20 20 20 20 | 20 70 72 69 76 69 6c 65 | | privile|
|000009d0| 67 65 73 22 20 74 6f 20 | 6d 6f 76 65 20 64 69 72 |ges" to |move dir|
|000009e0| 65 63 74 6f 72 69 65 73 | 20 61 72 6f 75 6e 64 2e |ectories| around.|
|000009f0| 0a 3e 0a 3e 4e 6f 20 70 | 6f 72 74 61 62 6c 65 20 |.>.>No p|ortable |
|00000a00| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 6e 65 65 64 |applicat|ion need|
|00000a10| 73 20 22 61 70 70 72 6f | 70 72 69 61 74 65 20 70 |s "appro|priate p|
|00000a20| 72 69 76 69 6c 65 67 65 | 73 22 20 74 6f 20 6d 6f |rivilege|s" to mo|
|00000a30| 76 65 20 64 69 72 65 63 | 74 6f 72 69 65 73 0a 3e |ve direc|tories.>|
|00000a40| 61 72 6f 75 6e 64 3b 20 | 69 74 20 63 61 6e 20 75 |around; |it can u|
|00000a50| 73 65 20 22 72 65 6e 61 | 6d 65 28 29 22 2e 20 20 |se "rena|me()". |
|00000a60| 54 68 65 20 63 6f 72 72 | 65 63 74 20 77 61 79 20 |The corr|ect way |
|00000a70| 74 6f 20 6d 6f 76 65 20 | 61 6e 79 74 68 69 6e 67 |to move |anything|
|00000a80| 20 75 6e 64 65 72 20 61 | 20 50 4f 53 49 58 0a 3e | under a| POSIX.>|
|00000a90| 69 6d 70 6c 65 6d 65 6e | 74 61 74 69 6f 6e 20 69 |implemen|tation i|
|00000aa0| 73 20 74 6f 20 75 73 65 | 20 22 72 65 6e 61 6d 65 |s to use| "rename|
|00000ab0| 28 29 22 2c 20 6e 6f 74 | 20 22 6c 69 6e 6b 28 29 |()", not| "link()|
|00000ac0| 22 20 61 6e 64 20 22 75 | 6e 6c 69 6e 6b 28 29 22 |" and "u|nlink()"|
|00000ad0| 2e 0a 0a 4d 65 61 20 63 | 75 6c 70 61 2c 20 6d 65 |...Mea c|ulpa, me|
|00000ae0| 61 20 63 75 6c 70 61 20 | 3a 2d 29 20 0a 0a 4f 66 |a culpa |:-) ..Of|
|00000af0| 20 63 6f 75 72 73 65 20 | 47 75 79 20 69 73 20 72 | course |Guy is r|
|00000b00| 69 67 68 74 2e 20 20 4e | 6f 20 70 6f 72 74 61 62 |ight. N|o portab|
|00000b10| 6c 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 6d |le appli|cation m|
|00000b20| 61 79 20 65 76 65 72 20 | 72 65 71 75 69 72 65 0a |ay ever |require.|
|00000b30| 61 70 70 72 6f 70 72 69 | 61 74 65 20 70 72 69 76 |appropri|ate priv|
|00000b40| 69 6c 65 67 65 20 61 6e | 64 20 73 74 69 6c 6c 20 |ilege an|d still |
|00000b50| 62 65 20 70 6f 72 74 61 | 62 6c 65 2e 20 20 45 73 |be porta|ble. Es|
|00000b60| 70 65 63 69 61 6c 6c 79 | 20 73 69 6e 63 65 20 74 |pecially| since t|
|00000b70| 68 61 74 0a 70 72 69 76 | 69 6c 65 67 65 20 77 69 |hat.priv|ilege wi|
|00000b80| 6c 6c 20 62 65 20 76 65 | 72 79 20 68 61 72 64 20 |ll be ve|ry hard |
|00000b90| 74 6f 20 64 65 66 69 6e | 65 20 28 6f 72 20 63 6f |to defin|e (or co|
|00000ba0| 6d 65 20 62 79 29 20 69 | 6e 20 61 20 74 72 75 73 |me by) i|n a trus|
|00000bb0| 74 65 64 0a 65 6e 76 69 | 72 6f 6e 6d 65 6e 74 2e |ted.envi|ronment.|
|00000bc0| 0a 0a 57 68 61 74 20 49 | 20 77 61 73 20 74 72 79 |..What I| was try|
|00000bd0| 69 6e 67 20 74 6f 20 69 | 6d 70 6c 79 20 77 61 73 |ing to i|mply was|
|00000be0| 20 74 68 61 74 20 69 66 | 20 61 70 70 72 6f 70 72 | that if| appropr|
|00000bf0| 69 61 74 65 20 70 72 69 | 76 69 6c 65 67 65 20 69 |iate pri|vilege i|
|00000c00| 73 0a 72 65 71 75 69 72 | 65 64 20 74 6f 20 6c 69 |s.requir|ed to li|
|00000c10| 6e 6b 28 29 20 61 6e 64 | 20 75 6e 6c 69 6e 6b 28 |nk() and| unlink(|
|00000c20| 29 20 64 69 72 65 63 74 | 6f 72 69 65 73 2c 20 61 |) direct|ories, a|
|00000c30| 6e 64 20 61 6e 20 61 70 | 70 6c 69 63 61 74 69 6f |nd an ap|plicatio|
|00000c40| 6e 20 6e 65 65 64 73 0a | 74 68 61 74 20 61 62 69 |n needs.|that abi|
|00000c50| 6c 69 74 79 20 66 6f 72 | 20 73 6f 6d 65 20 75 6e |lity for| some un|
|00000c60| 66 6f 72 73 65 65 61 62 | 6c 65 20 72 65 61 73 6f |forseeab|le reaso|
|00000c70| 6e 2c 20 74 68 65 6e 20 | 69 74 20 73 68 6f 75 6c |n, then |it shoul|
|00000c80| 64 20 70 72 6f 62 61 62 | 6c 79 0a 66 61 69 6c 20 |d probab|ly.fail |
|00000c90| 74 6f 20 63 6f 6d 70 69 | 6c 65 20 6f 6e 20 74 68 |to compi|le on th|
|00000ca0| 61 74 20 69 6e 73 74 61 | 6e 63 65 20 6f 66 20 74 |at insta|nce of t|
|00000cb0| 68 61 74 20 69 6d 70 6c | 65 6d 65 6e 74 61 74 69 |hat impl|ementati|
|00000cc0| 6f 6e 2e 20 20 0a 0a 54 | 68 65 20 72 65 6e 61 6d |on. ..T|he renam|
|00000cd0| 65 28 29 20 63 61 6c 6c | 20 69 73 20 73 75 66 66 |e() call| is suff|
|00000ce0| 69 63 69 65 6e 74 20 66 | 6f 72 20 63 68 61 6e 67 |icient f|or chang|
|00000cf0| 69 6e 67 20 74 68 65 20 | 6e 61 6d 65 20 6f 66 20 |ing the |name of |
|00000d00| 61 20 64 69 72 65 63 74 | 6f 72 79 2c 20 0a 62 75 |a direct|ory, .bu|
|00000d10| 74 20 69 73 20 68 61 72 | 64 6c 79 20 73 75 66 66 |t is har|dly suff|
|00000d20| 69 63 69 65 6e 74 20 66 | 6f 72 20 63 72 65 61 74 |icient f|or creat|
|00000d30| 69 6e 67 20 6d 75 6c 74 | 69 70 6c 65 20 6c 69 6e |ing mult|iple lin|
|00000d40| 6b 73 20 74 6f 20 74 68 | 65 20 73 61 6d 65 20 0a |ks to th|e same .|
|00000d50| 64 69 72 65 63 74 6f 72 | 79 2c 20 6f 72 20 73 6f |director|y, or so|
|00000d60| 6d 65 20 6f 74 68 65 72 | 20 61 72 63 61 6e 65 20 |me other| arcane |
|00000d70| 75 73 65 2e 20 20 49 74 | 20 6f 63 63 75 72 73 20 |use. It| occurs |
|00000d80| 74 6f 20 6d 65 20 74 68 | 61 74 20 74 68 69 73 20 |to me th|at this |
|00000d90| 6d 61 79 0a 6f 6e 6c 79 | 20 62 65 20 70 6f 73 73 |may.only| be poss|
|00000da0| 69 62 6c 65 20 74 6f 64 | 61 79 20 75 73 69 6e 67 |ible tod|ay using|
|00000db0| 20 73 79 6d 62 6f 6c 69 | 63 20 6c 69 6e 6b 73 2c | symboli|c links,|
|00000dc0| 20 62 75 74 20 79 6f 75 | 20 67 65 74 20 74 68 65 | but you| get the|
|00000dd0| 20 69 64 65 61 2e 20 20 | 4d 79 0a 61 64 76 69 63 | idea. |My.advic|
|00000de0| 65 20 74 6f 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |e to app|lication|
|00000df0| 20 64 65 76 65 6c 6f 70 | 65 72 73 20 69 73 20 74 | develop|ers is t|
|00000e00| 6f 20 6e 6f 74 20 65 76 | 65 6e 20 74 72 79 20 74 |o not ev|en try t|
|00000e10| 6f 20 77 72 69 74 65 20 | 63 6f 64 65 20 74 68 61 |o write |code tha|
|00000e20| 74 0a 72 65 71 75 69 72 | 65 73 20 61 6e 79 74 68 |t.requir|es anyth|
|00000e30| 69 6e 67 20 74 68 61 74 | 20 63 6f 75 6c 64 20 62 |ing that| could b|
|00000e40| 65 20 70 65 72 63 69 65 | 76 65 64 20 61 73 20 61 |e percie|ved as a|
|00000e50| 6e 20 6f 70 74 69 6f 6e | 20 75 6e 64 65 72 20 50 |n option| under P|
|00000e60| 4f 53 49 58 2e 0a 49 66 | 20 79 6f 75 20 73 74 69 |OSIX..If| you sti|
|00000e70| 63 6b 20 74 6f 20 74 68 | 65 20 6d 69 6e 69 6d 61 |ck to th|e minima|
|00000e80| 6c 20 73 65 74 2c 20 79 | 6f 75 20 77 69 6c 6c 20 |l set, y|ou will |
|00000e90| 62 65 20 73 61 66 65 2e | 20 20 59 6f 75 72 20 61 |be safe.| Your a|
|00000ea0| 70 70 6c 69 63 61 74 69 | 6f 6e 0a 77 6f 6e 27 74 |pplicati|on.won't|
|00000eb0| 20 64 6f 20 61 6e 79 74 | 68 69 6e 67 2c 20 62 75 | do anyt|hing, bu|
|00000ec0| 74 2e 2e 2e 20 3a 2d 29 | 0a 0a 54 68 61 6e 6b 73 |t... :-)|..Thanks|
|00000ed0| 20 66 6f 72 20 70 6f 69 | 6e 74 69 6e 67 20 6f 75 | for poi|nting ou|
|00000ee0| 74 20 74 68 61 74 20 72 | 61 74 68 65 72 20 67 6c |t that r|ather gl|
|00000ef0| 61 72 69 6e 67 20 65 72 | 72 6f 72 2e 20 20 49 20 |aring er|ror. I |
|00000f00| 6d 75 73 74 20 62 65 20 | 67 65 74 74 69 6e 67 0a |must be |getting.|
|00000f10| 73 65 6e 69 6c 65 2e 0a | 2d 2d 20 0a 53 68 61 6e |senile..|-- .Shan|
|00000f20| 65 20 50 2e 20 4d 63 43 | 61 72 72 6f 6e 09 09 09 |e P. McC|arron...|
|00000f30| 55 55 43 50 3a 20 61 68 | 62 79 40 62 75 6e 67 69 |UUCP: ah|by@bungi|
|00000f40| 61 2e 6d 6e 2e 6f 72 67 | 0a 53 79 73 74 65 6d 73 |a.mn.org|.Systems|
|00000f50| 20 41 6e 61 6c 79 73 74 | 09 09 09 09 41 54 54 3a | Analyst|....ATT:|
|00000f60| 20 2b 31 20 36 31 32 20 | 32 32 34 2d 39 32 33 39 | +1 612 |224-9239|
|00000f70| 0a 0a 56 6f 6c 75 6d 65 | 2d 4e 75 6d 62 65 72 3a |..Volume|-Number:|
|00000f80| 20 56 6f 6c 75 6d 65 20 | 31 33 2c 20 4e 75 6d 62 | Volume |13, Numb|
|00000f90| 65 72 20 31 30 0a 0a 46 | 72 6f 6d 20 75 75 63 70 |er 10..F|rom uucp|
|00000fa0| 20 20 4d 6f 6e 20 46 65 | 62 20 31 35 20 32 31 3a | Mon Fe|b 15 21:|
|00000fb0| 33 39 3a 32 34 20 31 39 | 38 38 0a 52 65 63 65 69 |39:24 19|88.Recei|
|00000fc0| 76 65 64 3a 20 62 79 20 | 75 75 6e 65 74 2e 55 55 |ved: by |uunet.UU|
|00000fd0| 2e 4e 45 54 20 28 35 2e | 35 34 2f 31 2e 31 34 29 |.NET (5.|54/1.14)|
|00000fe0| 20 0a 09 69 64 20 41 41 | 31 34 35 39 36 3b 20 4d | ..id AA|14596; M|
|00000ff0| 6f 6e 2c 20 31 35 20 46 | 65 62 20 38 38 20 32 31 |on, 15 F|eb 88 21|
|00001000| 3a 33 39 3a 32 34 20 45 | 53 54 0a 46 72 6f 6d 3a |:39:24 E|ST.From:|
|00001010| 20 4a 6f 68 6e 20 43 68 | 61 6d 62 65 72 73 20 3c | John Ch|ambers <|
|00001020| 6a 63 25 6d 69 6e 79 61 | 2e 55 55 43 50 40 75 75 |jc%minya|.UUCP@uu|
|00001030| 6e 65 74 2e 55 55 2e 4e | 45 54 3e 0a 4e 65 77 73 |net.UU.N|ET>.News|
|00001040| 67 72 6f 75 70 73 3a 20 | 63 6f 6d 70 2e 73 74 64 |groups: |comp.std|
|00001050| 2e 75 6e 69 78 0a 53 75 | 62 6a 65 63 74 3a 20 52 |.unix.Su|bject: R|
|00001060| 65 3a 20 53 74 61 6e 64 | 61 72 64 73 20 55 70 64 |e: Stand|ards Upd|
|00001070| 61 74 65 20 28 33 20 6f | 66 20 34 29 3a 20 4e 42 |ate (3 o|f 4): NB|
|00001080| 53 20 46 49 50 53 0a 53 | 75 6d 6d 61 72 79 3a 20 |S FIPS.S|ummary: |
|00001090| 49 73 20 72 65 6e 61 6d | 65 28 29 20 67 75 61 72 |Is renam|e() guar|
|000010a0| 61 6e 74 65 65 64 20 74 | 6f 20 77 6f 72 6b 20 61 |anteed t|o work a|
|000010b0| 63 72 6f 73 73 20 64 69 | 72 65 63 74 6f 72 69 65 |cross di|rectorie|
|000010c0| 73 3f 0a 4d 65 73 73 61 | 67 65 2d 49 64 3a 20 3c |s?.Messa|ge-Id: <|
|000010d0| 31 33 30 40 6c 6f 6e 67 | 77 61 79 2e 54 49 43 2e |130@long|way.TIC.|
|000010e0| 43 4f 4d 3e 0a 52 65 66 | 65 72 65 6e 63 65 73 3a |COM>.Ref|erences:|
|000010f0| 20 3c 31 31 36 40 6c 6f | 6e 67 77 61 79 2e 54 49 | <116@lo|ngway.TI|
|00001100| 43 2e 43 4f 4d 3e 20 3c | 31 32 30 40 6c 6f 6e 67 |C.COM> <|120@long|
|00001110| 77 61 79 2e 54 49 43 2e | 43 4f 4d 3e 0a 53 65 6e |way.TIC.|COM>.Sen|
|00001120| 64 65 72 3a 20 73 74 64 | 2d 75 6e 69 78 40 6c 6f |der: std|-unix@lo|
|00001130| 6e 67 77 61 79 2e 54 49 | 43 2e 43 4f 4d 0a 52 65 |ngway.TI|C.COM.Re|
|00001140| 70 6c 79 2d 54 6f 3a 20 | 6d 69 6e 79 61 21 6a 63 |ply-To: |minya!jc|
|00001150| 20 28 4a 6f 68 6e 20 43 | 68 61 6d 62 65 72 73 29 | (John C|hambers)|
|00001160| 0a 4f 72 67 61 6e 69 7a | 61 74 69 6f 6e 3a 20 68 |.Organiz|ation: h|
|00001170| 6f 6d 65 0a 44 61 74 65 | 3a 20 31 35 20 46 65 62 |ome.Date|: 15 Feb|
|00001180| 20 38 38 20 32 30 3a 34 | 34 3a 30 35 20 47 4d 54 | 88 20:4|4:05 GMT|
|00001190| 0a 41 70 70 61 72 65 6e | 74 6c 79 2d 54 6f 3a 20 |.Apparen|tly-To: |
|000011a0| 73 74 64 2d 75 6e 69 78 | 2d 61 72 63 68 69 76 65 |std-unix|-archive|
|000011b0| 0a 53 74 61 74 75 73 3a | 20 4f 0a 0a 46 72 6f 6d |.Status:| O..From|
|000011c0| 3a 20 6a 63 40 6d 69 6e | 79 61 2e 55 55 43 50 20 |: jc@min|ya.UUCP |
|000011d0| 28 4a 6f 68 6e 20 43 68 | 61 6d 62 65 72 73 29 0a |(John Ch|ambers).|
|000011e0| 0a 5b 20 54 68 69 73 20 | 6f 6e 65 20 67 6f 74 20 |.[ This |one got |
|000011f0| 6d 69 73 70 6c 61 63 65 | 64 20 61 73 20 49 20 70 |misplace|d as I p|
|00001200| 72 65 70 61 72 65 64 20 | 74 6f 20 67 6f 20 74 6f |repared |to go to|
|00001210| 20 55 53 45 4e 49 58 2e | 0a 49 20 64 6f 6e 27 74 | USENIX.|.I don't|
|00001220| 20 72 65 61 6c 6c 79 20 | 75 6e 64 65 72 73 74 61 | really |understa|
|00001230| 6e 64 20 74 68 65 20 71 | 75 65 73 74 69 6f 6e 2c |nd the q|uestion,|
|00001240| 20 62 75 74 20 69 66 20 | 69 74 27 73 20 77 68 65 | but if |it's whe|
|00001250| 74 68 65 72 20 74 68 65 | 0a 72 65 6e 61 6d 65 20 |ther the|.rename |
|00001260| 66 75 6e 63 74 69 6f 6e | 20 63 61 6e 20 62 65 20 |function| can be |
|00001270| 75 73 65 64 20 74 6f 20 | 6d 6f 76 65 20 64 69 72 |used to |move dir|
|00001280| 65 63 74 6f 72 69 65 73 | 2c 20 74 68 65 20 61 6e |ectories|, the an|
|00001290| 73 77 65 72 20 69 73 20 | 79 65 73 0a 28 61 6c 74 |swer is |yes.(alt|
|000012a0| 68 6f 75 67 68 20 74 68 | 65 20 75 73 65 72 20 63 |hough th|e user c|
|000012b0| 6f 6d 6d 61 6e 64 20 69 | 73 20 6d 76 29 2e 20 20 |ommand i|s mv). |
|000012c0| 2d 6d 6f 64 20 5d 0a 0a | 0a 3e 20 3e 4e 6f 20 70 |-mod ]..|.> >No p|
|000012d0| 6f 72 74 61 62 6c 65 20 | 61 70 70 6c 69 63 61 74 |ortable |applicat|
|000012e0| 69 6f 6e 20 6e 65 65 64 | 73 20 22 61 70 70 72 6f |ion need|s "appro|
|000012f0| 70 72 69 61 74 65 20 70 | 72 69 76 69 6c 65 67 65 |priate p|rivilege|
|00001300| 73 22 20 74 6f 20 6d 6f | 76 65 20 64 69 72 65 63 |s" to mo|ve direc|
|00001310| 74 6f 72 69 65 73 0a 3e | 20 3e 61 72 6f 75 6e 64 |tories.>| >around|
|00001320| 3b 20 69 74 20 63 61 6e | 20 75 73 65 20 22 72 65 |; it can| use "re|
|00001330| 6e 61 6d 65 28 29 22 2e | 20 20 54 68 65 20 63 6f |name()".| The co|
|00001340| 72 72 65 63 74 20 77 61 | 79 20 74 6f 20 6d 6f 76 |rrect wa|y to mov|
|00001350| 65 20 61 6e 79 74 68 69 | 6e 67 20 75 6e 64 65 72 |e anythi|ng under|
|00001360| 20 61 20 50 4f 53 49 58 | 0a 3e 20 3e 69 6d 70 6c | a POSIX|.> >impl|
|00001370| 65 6d 65 6e 74 61 74 69 | 6f 6e 20 69 73 20 74 6f |ementati|on is to|
|00001380| 20 75 73 65 20 22 72 65 | 6e 61 6d 65 28 29 22 2c | use "re|name()",|
|00001390| 20 6e 6f 74 20 22 6c 69 | 6e 6b 28 29 22 20 61 6e | not "li|nk()" an|
|000013a0| 64 20 22 75 6e 6c 69 6e | 6b 28 29 22 2e 0a 3e 20 |d "unlin|k()"..> |
|000013b0| 0a 3e 20 54 68 65 20 72 | 65 6e 61 6d 65 28 29 20 |.> The r|ename() |
|000013c0| 63 61 6c 6c 20 69 73 20 | 73 75 66 66 69 63 69 65 |call is |sufficie|
|000013d0| 6e 74 20 66 6f 72 20 63 | 68 61 6e 67 69 6e 67 20 |nt for c|hanging |
|000013e0| 74 68 65 20 6e 61 6d 65 | 20 6f 66 20 61 20 64 69 |the name| of a di|
|000013f0| 72 65 63 74 6f 72 79 2c | 20 2e 2e 2e 0a 0a 4f 6e |rectory,| .....On|
|00001400| 65 20 74 68 69 6e 67 20 | 49 27 76 65 20 77 6f 6e |e thing |I've won|
|00001410| 64 65 72 65 64 20 69 73 | 20 77 68 65 74 68 65 72 |dered is| whether|
|00001420| 20 74 68 65 20 73 74 61 | 6e 64 61 72 64 20 77 69 | the sta|ndard wi|
|00001430| 6c 6c 20 72 65 71 75 69 | 72 65 20 69 6d 70 6c 65 |ll requi|re imple|
|00001440| 6d 65 6e 74 6f 72 73 0a | 74 6f 20 6d 61 6b 65 20 |mentors.|to make |
|00001450| 74 68 69 6e 67 73 20 6c | 69 6b 65 20 72 65 6e 61 |things l|ike rena|
|00001460| 6d 65 28 22 66 6f 6f 2f | 62 61 72 2f 78 22 2c 22 |me("foo/|bar/x","|
|00001470| 66 6f 6f 2f 78 22 29 20 | 77 6f 72 6b 20 63 6f 72 |foo/x") |work cor|
|00001480| 72 65 63 74 6c 79 2e 20 | 20 54 68 69 73 20 69 73 |rectly. | This is|
|00001490| 0a 61 20 73 65 72 69 6f | 75 73 20 6f 6d 69 73 73 |.a serio|us omiss|
|000014a0| 69 6f 6e 20 69 6e 20 61 | 20 67 72 65 61 74 20 6d |ion in a| great m|
|000014b0| 61 6e 79 20 55 6e 69 78 | 20 72 65 6c 65 61 73 65 |any Unix| release|
|000014c0| 73 2e 0a 0a 49 74 27 73 | 20 6e 6f 74 20 61 74 20 |s...It's| not at |
|000014d0| 61 6c 6c 20 61 20 68 79 | 70 6f 74 68 65 74 69 63 |all a hy|pothetic|
|000014e0| 61 6c 20 69 73 73 75 65 | 2e 20 20 49 27 76 65 20 |al issue|. I've |
|000014f0| 73 65 65 6e 20 61 20 6c | 6f 74 20 6f 66 20 63 61 |seen a l|ot of ca|
|00001500| 73 65 73 20 77 68 65 72 | 65 0a 61 20 75 73 65 72 |ses wher|e.a user|
|00001510| 20 28 6d 79 73 65 6c 66 | 20 69 6e 63 6c 75 64 65 | (myself| include|
|00001520| 64 29 20 75 73 65 73 20 | 74 61 72 20 6f 72 20 63 |d) uses |tar or c|
|00001530| 70 69 6f 20 6f 72 20 73 | 6f 6d 65 20 73 75 63 68 |pio or s|ome such|
|00001540| 20 74 6f 20 75 6e 70 61 | 63 6b 20 61 20 62 75 6e | to unpa|ck a bun|
|00001550| 63 68 0a 6f 66 20 66 69 | 6c 65 73 2c 20 69 6e 74 |ch.of fi|les, int|
|00001560| 65 6e 64 69 6e 67 20 74 | 68 65 6d 20 74 6f 20 67 |ending t|hem to g|
|00001570| 6f 20 69 6e 74 6f 20 66 | 6f 6f 2f 62 61 72 2c 20 |o into f|oo/bar, |
|00001580| 61 6e 64 20 65 6e 64 69 | 6e 67 20 75 70 20 77 69 |and endi|ng up wi|
|00001590| 74 68 20 74 68 65 6d 20 | 61 6c 6c 20 0a 69 6e 20 |th them |all .in |
|000015a0| 66 6f 6f 2f 62 61 72 2f | 62 61 72 2e 20 20 54 68 |foo/bar/|bar. Th|
|000015b0| 65 20 75 73 75 61 6c 20 | 72 65 73 75 6c 74 20 69 |e usual |result i|
|000015c0| 73 20 22 72 6d 20 2d 72 | 66 20 66 6f 6f 2f 62 61 |s "rm -r|f foo/ba|
|000015d0| 72 2f 62 61 72 22 20 61 | 6e 64 20 73 74 61 72 74 |r/bar" a|nd start|
|000015e0| 69 6e 67 20 0a 6f 76 65 | 72 2e 20 20 49 74 27 64 |ing .ove|r. It'd|
|000015f0| 20 73 61 76 65 20 61 20 | 6c 6f 74 20 6f 66 20 67 | save a |lot of g|
|00001600| 72 69 65 66 20 69 66 20 | 6f 6e 65 20 63 6f 75 6c |rief if |one coul|
|00001610| 64 20 6a 75 73 74 20 73 | 61 79 20 73 6f 6d 65 74 |d just s|ay somet|
|00001620| 68 69 6e 67 20 6c 69 6b | 65 3a 0a 09 72 65 6e 61 |hing lik|e:..rena|
|00001630| 6d 65 20 66 6f 6f 2f 62 | 61 72 2f 62 61 72 20 66 |me foo/b|ar/bar f|
|00001640| 6f 6f 2f 74 65 6d 70 0a | 09 72 65 6e 61 6d 65 20 |oo/temp.|.rename |
|00001650| 66 6f 6f 2f 74 65 6d 70 | 20 66 6f 6f 2f 62 61 72 |foo/temp| foo/bar|
|00001660| 0a 61 6e 64 20 62 65 20 | 64 6f 6e 65 20 77 69 74 |.and be |done wit|
|00001670| 68 20 69 74 2e 20 20 4f | 66 20 63 6f 75 72 73 65 |h it. O|f course|
|00001680| 2c 20 69 74 27 64 20 62 | 65 20 62 65 74 74 65 72 |, it'd b|e better|
|00001690| 20 69 66 20 49 20 63 6f | 75 6c 64 20 6a 75 73 74 | if I co|uld just|
|000016a0| 20 74 79 70 65 3a 0a 09 | 72 65 6e 61 6d 65 20 66 | type:..|rename f|
|000016b0| 6f 6f 2f 62 61 72 2f 62 | 61 72 20 66 6f 6f 2f 62 |oo/bar/b|ar foo/b|
|000016c0| 61 72 0a 61 6e 64 20 67 | 65 74 20 74 68 65 20 64 |ar.and g|et the d|
|000016d0| 65 73 69 72 65 64 20 72 | 65 73 75 6c 74 2c 20 62 |esired r|esult, b|
|000016e0| 75 74 20 74 68 61 74 27 | 73 20 70 72 6f 62 61 62 |ut that'|s probab|
|000016f0| 6c 79 20 74 6f 6f 20 6d | 75 63 68 20 74 6f 20 68 |ly too m|uch to h|
|00001700| 6f 70 65 20 66 6f 72 2e | 20 3b 2d 29 0a 0a 47 69 |ope for.| ;-)..Gi|
|00001710| 76 65 6e 20 74 68 65 20 | 68 69 73 74 6f 72 79 20 |ven the |history |
|00001720| 6f 66 20 55 6e 69 78 20 | 72 65 6c 65 61 73 65 73 |of Unix |releases|
|00001730| 2c 20 49 20 77 6f 75 6c | 64 6e 27 74 20 65 78 70 |, I woul|dn't exp|
|00001740| 65 63 74 20 74 68 69 73 | 20 74 6f 20 77 6f 72 6b |ect this| to work|
|00001750| 20 77 68 65 6e 20 0a 66 | 6f 6f 2f 62 61 72 2f 62 | when .f|oo/bar/b|
|00001760| 61 72 20 69 73 20 61 20 | 64 69 72 65 63 74 6f 72 |ar is a |director|
|00001770| 79 2c 20 75 6e 6c 65 73 | 73 20 74 68 65 72 65 20 |y, unles|s there |
|00001780| 69 73 20 73 6f 6d 65 20 | 61 72 67 75 6d 65 6e 74 |is some |argument|
|00001790| 20 73 74 72 6f 6e 67 65 | 72 20 74 68 61 6e 20 0a | stronge|r than .|
|000017a0| 75 73 65 72 73 27 20 6e | 65 65 64 73 20 74 6f 20 |users' n|eeds to |
|000017b0| 63 6f 6e 76 69 6e 63 65 | 20 74 68 65 20 69 6d 70 |convince| the imp|
|000017c0| 6c 65 6d 65 6e 74 6f 72 | 73 2e 0a 0a 2d 2d 20 0a |lementor|s...-- .|
|000017d0| 4a 6f 68 6e 20 43 68 61 | 6d 62 65 72 73 20 3c 7b |John Cha|mbers <{|
|000017e0| 61 64 65 6c 69 65 2c 69 | 6d 61 2c 6d 61 79 6e 61 |adelie,i|ma,mayna|
|000017f0| 72 64 2c 6d 69 74 2d 65 | 64 64 69 65 7d 21 6d 69 |rd,mit-e|ddie}!mi|
|00001800| 6e 79 61 21 7b 6a 63 2c | 72 6f 6f 74 7d 3e 20 28 |nya!{jc,|root}> (|
|00001810| 36 31 37 2f 34 38 34 2d | 36 33 39 33 29 0a 0a 0a |617/484-|6393)...|
|00001820| 56 6f 6c 75 6d 65 2d 4e | 75 6d 62 65 72 3a 20 56 |Volume-N|umber: V|
|00001830| 6f 6c 75 6d 65 20 31 33 | 2c 20 4e 75 6d 62 65 72 |olume 13|, Number|
|00001840| 20 31 36 0a 0a 46 72 6f | 6d 20 75 75 63 70 20 20 | 16..Fro|m uucp |
|00001850| 54 68 75 20 46 65 62 20 | 31 38 20 30 31 3a 34 31 |Thu Feb |18 01:41|
|00001860| 3a 31 38 20 31 39 38 38 | 0a 52 65 63 65 69 76 65 |:18 1988|.Receive|
|00001870| 64 3a 20 62 79 20 75 75 | 6e 65 74 2e 55 55 2e 4e |d: by uu|net.UU.N|
|00001880| 45 54 20 28 35 2e 35 34 | 2f 31 2e 31 34 29 20 0a |ET (5.54|/1.14) .|
|00001890| 09 69 64 20 41 41 32 30 | 39 30 30 3b 20 54 68 75 |.id AA20|900; Thu|
|000018a0| 2c 20 31 38 20 46 65 62 | 20 38 38 20 30 31 3a 34 |, 18 Feb| 88 01:4|
|000018b0| 31 3a 31 38 20 45 53 54 | 0a 46 72 6f 6d 3a 20 73 |1:18 EST|.From: s|
|000018c0| 74 64 2d 75 6e 69 78 40 | 6c 6f 6e 67 77 61 79 2e |td-unix@|longway.|
|000018d0| 54 49 43 2e 43 4f 4d 20 | 28 4d 6f 64 65 72 61 74 |TIC.COM |(Moderat|
|000018e0| 6f 72 2c 20 4a 6f 68 6e | 20 53 2e 20 51 75 61 72 |or, John| S. Quar|
|000018f0| 74 65 72 6d 61 6e 29 0a | 4e 65 77 73 67 72 6f 75 |terman).|Newsgrou|
|00001900| 70 73 3a 20 63 6f 6d 70 | 2e 73 74 64 2e 75 6e 69 |ps: comp|.std.uni|
|00001910| 78 0a 53 75 62 6a 65 63 | 74 3a 20 52 65 3a 20 53 |x.Subjec|t: Re: S|
|00001920| 74 61 6e 64 61 72 64 73 | 20 55 70 64 61 74 65 20 |tandards| Update |
|00001930| 28 33 20 6f 66 20 34 29 | 3a 20 4e 42 53 20 46 49 |(3 of 4)|: NBS FI|
|00001940| 50 53 0a 4d 65 73 73 61 | 67 65 2d 49 64 3a 20 3c |PS.Messa|ge-Id: <|
|00001950| 31 33 32 40 6c 6f 6e 67 | 77 61 79 2e 54 49 43 2e |132@long|way.TIC.|
|00001960| 43 4f 4d 3e 0a 52 65 66 | 65 72 65 6e 63 65 73 3a |COM>.Ref|erences:|
|00001970| 20 3c 31 31 36 40 6c 6f | 6e 67 77 61 79 2e 54 49 | <116@lo|ngway.TI|
|00001980| 43 2e 43 4f 4d 3e 20 3c | 31 32 30 40 6c 6f 6e 67 |C.COM> <|120@long|
|00001990| 77 61 79 2e 54 49 43 2e | 43 4f 4d 3e 20 3c 31 33 |way.TIC.|COM> <13|
|000019a0| 30 40 6c 6f 6e 67 77 61 | 79 2e 54 49 43 2e 43 4f |0@longwa|y.TIC.CO|
|000019b0| 4d 3e 0a 52 65 70 6c 79 | 2d 54 6f 3a 20 75 75 6e |M>.Reply|-To: uun|
|000019c0| 65 74 21 68 61 72 76 61 | 72 64 2e 68 61 72 76 61 |et!harva|rd.harva|
|000019d0| 72 64 2e 65 64 75 21 68 | 61 64 64 6f 63 6b 21 6b |rd.edu!h|addock!k|
|000019e0| 61 72 6c 20 28 4b 61 72 | 6c 20 48 65 75 65 72 29 |arl (Kar|l Heuer)|
|000019f0| 0a 4f 72 67 61 6e 69 7a | 61 74 69 6f 6e 3a 20 49 |.Organiz|ation: I|
|00001a00| 6e 74 65 72 61 63 74 69 | 76 65 20 53 79 73 74 65 |nteracti|ve Syste|
|00001a10| 6d 73 2c 20 42 6f 73 74 | 6f 6e 0a 44 61 74 65 3a |ms, Bost|on.Date:|
|00001a20| 20 31 37 20 46 65 62 20 | 38 38 20 32 32 3a 34 32 | 17 Feb |88 22:42|
|00001a30| 3a 34 38 20 47 4d 54 0a | 41 70 70 61 72 65 6e 74 |:48 GMT.|Apparent|
|00001a40| 6c 79 2d 54 6f 3a 20 73 | 74 64 2d 75 6e 69 78 2d |ly-To: s|td-unix-|
|00001a50| 61 72 63 68 69 76 65 0a | 53 74 61 74 75 73 3a 20 |archive.|Status: |
|00001a60| 4f 0a 0a 46 72 6f 6d 3a | 20 75 75 6e 65 74 21 68 |O..From:| uunet!h|
|00001a70| 61 72 76 61 72 64 2e 68 | 61 72 76 61 72 64 2e 65 |arvard.h|arvard.e|
|00001a80| 64 75 21 68 61 64 64 6f | 63 6b 21 6b 61 72 6c 20 |du!haddo|ck!karl |
|00001a90| 28 4b 61 72 6c 20 48 65 | 75 65 72 29 0a 0a 49 6e |(Karl He|uer)..In|
|00001aa0| 20 61 72 74 69 63 6c 65 | 20 3c 31 33 30 40 6c 6f | article| <130@lo|
|00001ab0| 6e 67 77 61 79 2e 54 49 | 43 2e 43 4f 4d 3e 20 74 |ngway.TI|C.COM> t|
|00001ac0| 68 65 20 6d 6f 64 65 72 | 61 74 6f 72 20 77 72 69 |he moder|ator wri|
|00001ad0| 74 65 73 3a 0a 3e 49 20 | 64 6f 6e 27 74 20 72 65 |tes:.>I |don't re|
|00001ae0| 61 6c 6c 79 20 75 6e 64 | 65 72 73 74 61 6e 64 20 |ally und|erstand |
|00001af0| 74 68 65 20 71 75 65 73 | 74 69 6f 6e 2c 20 62 75 |the ques|tion, bu|
|00001b00| 74 20 69 66 20 69 74 27 | 73 20 77 68 65 74 68 65 |t if it'|s whethe|
|00001b10| 72 20 74 68 65 20 72 65 | 6e 61 6d 65 0a 3e 66 75 |r the re|name.>fu|
|00001b20| 6e 63 74 69 6f 6e 20 63 | 61 6e 20 62 65 20 75 73 |nction c|an be us|
|00001b30| 65 64 20 74 6f 20 6d 6f | 76 65 20 64 69 72 65 63 |ed to mo|ve direc|
|00001b40| 74 6f 72 69 65 73 2c 20 | 74 68 65 20 61 6e 73 77 |tories, |the answ|
|00001b50| 65 72 20 69 73 20 79 65 | 73 20 28 61 6c 74 68 6f |er is ye|s (altho|
|00001b60| 75 67 68 20 74 68 65 0a | 3e 75 73 65 72 20 63 6f |ugh the.|>user co|
|00001b70| 6d 6d 61 6e 64 20 69 73 | 20 6d 76 29 2e 0a 0a 4f |mmand is| mv)...O|
|00001b80| 6e 20 61 74 20 6c 65 61 | 73 74 20 6f 6e 65 20 53 |n at lea|st one S|
|00001b90| 79 73 56 2d 62 61 73 65 | 64 20 73 79 73 74 65 6d |ysV-base|d system|
|00001ba0| 20 77 69 74 68 20 61 20 | 72 65 6e 61 6d 65 28 29 | with a |rename()|
|00001bb0| 20 73 79 73 74 65 6d 20 | 63 61 6c 6c 20 61 6e 64 | system |call and|
|00001bc0| 20 77 69 74 68 0a 75 6e | 70 72 69 76 69 6c 65 67 | with.un|privileg|
|00001bd0| 65 64 20 6d 76 20 63 6f | 6d 6d 61 6e 64 2c 20 74 |ed mv co|mmand, t|
|00001be0| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 63 61 6e |he follo|wing can|
|00001bf0| 20 6f 63 63 75 72 2e 0a | 0a 24 20 63 61 74 20 3c | occur..|.$ cat <|
|00001c00| 3c 5c 21 20 3e 72 65 6e | 61 6d 65 2e 63 0a 3e 20 |<\! >ren|ame.c.> |
|00001c10| 6d 61 69 6e 28 63 2c 76 | 29 20 63 68 61 72 20 2a |main(c,v|) char *|
|00001c20| 2a 76 3b 20 7b 20 69 66 | 20 28 72 65 6e 61 6d 65 |*v; { if| (rename|
|00001c30| 28 76 5b 31 5d 2c 20 76 | 5b 32 5d 29 20 3d 3d 20 |(v[1], v|[2]) == |
|00001c40| 2d 31 29 20 70 65 72 72 | 6f 72 28 22 72 65 6e 61 |-1) perr|or("rena|
|00001c50| 6d 65 22 29 3b 20 7d 0a | 3e 20 21 0a 24 20 63 63 |me"); }.|> !.$ cc|
|00001c60| 20 72 65 6e 61 6d 65 2e | 63 20 2d 6f 20 72 65 6e | rename.|c -o ren|
|00001c70| 61 6d 65 0a 24 20 6c 73 | 0a 72 65 6e 61 6d 65 0a |ame.$ ls|.rename.|
|00001c80| 72 65 6e 61 6d 65 2e 63 | 0a 24 20 6d 6b 64 69 72 |rename.c|.$ mkdir|
|00001c90| 20 66 6f 6f 0a 24 20 6d | 6b 64 69 72 20 66 6f 6f | foo.$ m|kdir foo|
|00001ca0| 2f 62 61 72 0a 24 20 6d | 76 20 66 6f 6f 2f 62 61 |/bar.$ m|v foo/ba|
|00001cb0| 72 20 62 61 72 0a 6d 76 | 3a 20 64 69 72 65 63 74 |r bar.mv|: direct|
|00001cc0| 6f 72 79 20 72 65 6e 61 | 6d 65 20 6f 6e 6c 79 0a |ory rena|me only.|
|00001cd0| 24 20 2e 2f 72 65 6e 61 | 6d 65 20 66 6f 6f 2f 62 |$ ./rena|me foo/b|
|00001ce0| 61 72 20 62 61 72 0a 24 | 20 6c 73 0a 62 61 72 0a |ar bar.$| ls.bar.|
|00001cf0| 66 6f 6f 0a 72 65 6e 61 | 6d 65 0a 72 65 6e 61 6d |foo.rena|me.renam|
|00001d00| 65 2e 63 0a 24 20 6c 73 | 20 66 6f 6f 0a 24 20 65 |e.c.$ ls| foo.$ e|
|00001d10| 78 69 74 0a 0a 41 73 20 | 79 6f 75 20 63 61 6e 20 |xit..As |you can |
|00001d20| 73 65 65 2c 20 65 76 65 | 6e 20 74 68 6f 75 67 68 |see, eve|n though|
|00001d30| 20 74 68 65 20 73 79 73 | 74 65 6d 20 63 61 6c 6c | the sys|tem call|
|00001d40| 20 77 6f 72 6b 73 20 70 | 72 6f 70 65 72 6c 79 2c | works p|roperly,|
|00001d50| 20 60 6d 76 27 20 6f 6e | 20 74 68 69 73 0a 73 79 | `mv' on| this.sy|
|00001d60| 73 74 65 6d 20 61 74 74 | 65 6d 70 74 73 20 74 6f |stem att|empts to|
|00001d70| 20 65 6e 66 6f 72 63 65 | 20 61 20 72 65 73 74 72 | enforce| a restr|
|00001d80| 69 63 74 69 6f 6e 20 74 | 68 61 74 20 74 68 65 20 |iction t|hat the |
|00001d90| 6f 6e 6c 79 20 74 68 69 | 6e 67 20 79 6f 75 20 63 |only thi|ng you c|
|00001da0| 61 6e 20 64 6f 20 77 69 | 74 68 20 61 0a 64 69 72 |an do wi|th a.dir|
|00001db0| 65 63 74 6f 72 79 20 69 | 73 20 61 20 60 73 69 6d |ectory i|s a `sim|
|00001dc0| 70 6c 65 27 20 72 65 6e | 61 6d 65 20 28 6f 6e 65 |ple' ren|ame (one|
|00001dd0| 20 77 68 65 72 65 20 74 | 68 65 20 60 2e 2e 27 20 | where t|he `..' |
|00001de0| 65 6e 74 72 79 20 64 6f | 65 73 20 6e 6f 74 20 63 |entry do|es not c|
|00001df0| 68 61 6e 67 65 29 2e 20 | 20 4d 79 0a 72 65 69 6e |hange). | My.rein|
|00001e00| 74 65 72 70 72 65 74 61 | 74 69 6f 6e 20 6f 66 20 |terpreta|tion of |
|00001e10| 4a 6f 68 6e 20 43 68 61 | 6d 62 65 72 27 73 20 71 |John Cha|mber's q|
|00001e20| 75 65 73 74 69 6f 6e 20 | 68 61 73 20 74 77 6f 20 |uestion |has two |
|00001e30| 70 61 72 74 73 3a 0a 0a | 28 61 29 20 44 6f 65 73 |parts:..|(a) Does|
|00001e40| 20 74 68 65 20 73 74 61 | 6e 64 61 72 64 20 72 65 | the sta|ndard re|
|00001e50| 71 75 69 72 65 20 74 68 | 61 74 20 74 68 65 20 72 |quire th|at the r|
|00001e60| 65 6e 61 6d 65 28 29 20 | 66 75 6e 63 74 69 6f 6e |ename() |function|
|00001e70| 20 61 6c 6c 6f 77 20 6e | 6f 6e 2d 73 69 6d 70 6c | allow n|on-simpl|
|00001e80| 65 0a 72 65 6e 61 6d 65 | 73 20 6f 66 20 64 69 72 |e.rename|s of dir|
|00001e90| 65 63 74 6f 72 69 65 73 | 3f 0a 0a 28 62 29 20 44 |ectories|?..(b) D|
|00001ea0| 6f 65 73 20 74 68 65 20 | 73 74 61 6e 64 61 72 64 |oes the |standard|
|00001eb0| 20 72 65 71 75 69 72 65 | 20 74 68 61 74 20 74 68 | require| that th|
|00001ec0| 65 20 6d 76 20 63 6f 6d | 6d 61 6e 64 20 61 6c 6c |e mv com|mand all|
|00001ed0| 6f 77 20 74 68 69 73 3f | 0a 0a 5b 31 30 30 33 2e |ow this?|..[1003.|
|00001ee0| 31 20 64 6f 65 73 6e 27 | 74 20 73 61 79 20 61 6e |1 doesn'|t say an|
|00001ef0| 79 74 68 69 6e 67 20 61 | 62 6f 75 74 20 6d 76 2c |ything a|bout mv,|
|00001f00| 20 62 65 63 61 75 73 65 | 20 74 68 61 74 27 73 20 | because| that's |
|00001f10| 69 6e 20 31 30 30 33 2e | 32 2e 0a 49 20 64 6f 6e |in 1003.|2..I don|
|00001f20| 27 74 20 6b 6e 6f 77 20 | 6f 66 66 68 61 6e 64 20 |'t know |offhand |
|00001f30| 77 68 61 74 20 31 30 30 | 33 2e 32 20 73 61 79 73 |what 100|3.2 says|
|00001f40| 2e 20 20 31 30 30 33 2e | 32 20 70 65 6f 70 6c 65 |. 1003.|2 people|
|00001f50| 3f 20 20 2d 6d 6f 64 5d | 0a 0a 56 6f 6c 75 6d 65 |? -mod]|..Volume|
|00001f60| 2d 4e 75 6d 62 65 72 3a | 20 56 6f 6c 75 6d 65 20 |-Number:| Volume |
|00001f70| 31 33 2c 20 4e 75 6d 62 | 65 72 20 31 38 0a 0a |13, Numb|er 18.. |
+--------+-------------------------+-------------------------+--------+--------+