From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <18573e78207d9e808a283b21055026c5@coraid.com> References: <3587eb7837ae411c3c512564d9997e1c@smgl.fr.eu.org> <5ab04e072064bfe53f47b5a785bc41ec@quanstro.net> <9ab217670903270552o64036bc6l822ca1f6e73ec82f@mail.gmail.com> <18573e78207d9e808a283b21055026c5@coraid.com> Date: Fri, 27 Mar 2009 10:07:48 -0400 Message-ID: <9ab217670903270707t2014ead0v14920229d5f7a174@mail.gmail.com> From: "Devon H. O'Dell" To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] another webfs question Topicbox-Message-UUID: cb2abf22-ead4-11e9-9d60-3106f5b1d025 2009/3/27 erik quanstrom : >> Yeah, there aren't any. That's the point of URL encoding; NULL bytes >> are as acceptable as any other, and your client should be able to >> handle them -- so I think that webfs check is just bogus. It should >> just encode it as a \0 and pass it through. > > (you do mean %00 should result in a byte with value 0, not > two bytes (in c notation) '\\' and '0', right?) Yes, I meant '\0'. > assuming that every application that uses webfs is prepared > to handle a null byte in the middle of a string. =A0what webfs does > =97 complaining loudly =97 is much preferrable to programs misbehaving > silently. =A0since it's quite likely that plan 9 applications are not > going to properly deal with a null in a string, it's probablly > a good implementation strategy unless you're willing to test > all the programs that use webfs to make sure that this case > is properly handled. Ok, but then valid applications such as this one can't use webfs. I think something needing this could solve the issue by having the application import webfs into its own namespace, and then sending some sort of ctl command telling it to set an option to allow null bytes. --dho > - erik > >