From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20234 invoked from network); 4 Aug 2000 07:17:29 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 4 Aug 2000 07:17:29 -0000 Received: (qmail 25505 invoked by alias); 4 Aug 2000 07:17:13 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12521 Received: (qmail 25454 invoked from network); 4 Aug 2000 07:17:10 -0000 From: "Bart Schaefer" Message-Id: <1000804071658.ZM23782@candle.brasslantern.com> Date: Fri, 4 Aug 2000 07:16:58 +0000 In-Reply-To: <200008040701.JAA23407@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "Re: PATCH: Re: completion problem with filename including # (and pathmax stuff)" (Aug 4, 9:01am) References: <200008040701.JAA23407@beta.informatik.hu-berlin.de> X-Mailer: Z-Mail (5.0.0 30July97) To: Sven Wischnowsky , zsh-workers@sunsite.auc.dk Subject: Re: PATCH: Re: completion problem with filename including # (and pathmax stuff) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Aug 4, 9:01am, Sven Wischnowsky wrote: } Subject: Re: PATCH: Re: completion problem with filename including # (and } } > > There is another problem with the pathmax stuff: with the files } > > module, doing `mkdir foo' fails because it tries to get the pathname } > > length of a non-existing directory. } > } > I think that statting to find the mount point would be too wasteful. } > Dropping the tail could work except for things like mkdir -p. } } But we need some kind of solution. I'm getting this with a normal } True64 Unix installation (so it has nothing to do with any glibc } whatsoever). There are a couple of things we could do. One, we could pitch out the path length test and simply let domkdir() fail -- and perhaps test the value of errno to decide whether to break or continue as a result. Two, we could cause zpathmax() to lop off the tail of the path and call itself until it actually does find a maximum path length, then add the tail back on and repeat the strlen() test. That might be a good thing to have for the general case anyway. Or we could do both of the above. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net