9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] `Get rewrite.gateway' in acme fails
@ 2004-11-01  3:24 YAMANASHI Takeshi
  2004-11-01  8:03 ` Rob Pike
  0 siblings, 1 reply; 2+ messages in thread
From: YAMANASHI Takeshi @ 2004-11-01  3:24 UTC (permalink / raw)
  To: 9fans

Hi,

Executing `Get rewrite.gateway' in /mail/lib/rewrite window
fails in recent acme with following error:

	can't open /mail/librewrite.gateway: '/mail/librewrite.gateway' does not exist

seems a slash has fallen out somewhare.
-- 




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9fans] `Get rewrite.gateway' in acme fails
  2004-11-01  3:24 [9fans] `Get rewrite.gateway' in acme fails YAMANASHI Takeshi
@ 2004-11-01  8:03 ` Rob Pike
  0 siblings, 0 replies; 2+ messages in thread
From: Rob Pike @ 2004-11-01  8:03 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-11-01  8:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-01  3:24 [9fans] `Get rewrite.gateway' in acme fails YAMANASHI Takeshi
2004-11-01  8:03 ` Rob Pike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).