From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: From: "Russ Cox" To: 9fans@cse.psu.edu Subject: Re: [9fans] u9fs question In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Thu, 27 Feb 2003 19:26:04 -0500 Topicbox-Message-UUID: 750bc6d0-eacb-11e9-9e20-41e7f4b1d025 I'm not sure why I thought that wouldn't happen. It looks like the right code would be: if((p = strrchr(dir, '/')) == nil){ seterror(tx, "whoops: can't happen in u9fs"); return; } *p = '\0'; Russ