From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22006 invoked from network); 4 Aug 2000 10:48:03 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 4 Aug 2000 10:48:03 -0000 Received: (qmail 14706 invoked by alias); 4 Aug 2000 10:47:37 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12528 Received: (qmail 14696 invoked from network); 4 Aug 2000 10:47:34 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer goliath.siemens.de) From: "Andrej Borsenkow" To: Subject: RE: PATCH: Re: completion problem with filename including # (and pathmax stuff) Date: Fri, 4 Aug 2000 14:47:30 +0400 Message-ID: <000301bffe01$63aa22a0$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <1000804071658.ZM23782@candle.brasslantern.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 > > 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. > Or fall back to _POSIX_PATH_MAX (if system supports pathconf(), it rorbably suports it as well): PATH_MAX Maximum number of bytes in a pathname, including the terminating null character. Minimum Acceptable Value: _POSIX_PATH_MAX -andrej