From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <7359f04904110100037c497bb4@mail.gmail.com> Date: Mon, 1 Nov 2004 00:03:17 -0800 From: Rob Pike To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] `Get rewrite.gateway' in acme fails In-Reply-To: <16ae616bd98623357da6c487432c06ee@orthanc.cc.titech.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <16ae616bd98623357da6c487432c06ee@orthanc.cc.titech.ac.jp> Topicbox-Message-UUID: f95d3d86-eacd-11e9-9e20-41e7f4b1d025 Sorry about that. Fix: add if(dir.nr>0 && r[dir.nr]!='/' && n>0 && arg[0]!='/') r[dir.nr++] = '/'; after the call to free(dir.r) in getname() in /sys/src/cmd/acme/exec.c . -rob