From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25383 invoked from network); 4 Aug 2000 15:18:44 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 4 Aug 2000 15:18:44 -0000 Received: (qmail 14192 invoked by alias); 4 Aug 2000 15:18:22 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12534 Received: (qmail 14185 invoked from network); 4 Aug 2000 15:18:19 -0000 From: "Bart Schaefer" Message-Id: <1000804151753.ZM28846@candle.brasslantern.com> Date: Fri, 4 Aug 2000 15:17:53 +0000 In-Reply-To: <20000804105323.B4820@dman.com> Comments: In reply to Clint Adams "PATCH: tail-dropping in files module mkdir" (Aug 4, 10:53am) References: <20000804105323.B4820@dman.com> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.auc.dk Subject: Re: PATCH: tail-dropping in files module mkdir MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Aug 4, 10:53am, Clint Adams wrote: } Subject: PATCH: tail-dropping in files module mkdir } } This should let mkdir work a little better. But it's not necessary to do this in mkdir if we're going to change zpathmax() to do it internally. } In addition to the -p problem, I think that zpathmax needs to } be modified to do one of the following: } } a) return the number from pathconf() so that it can be compared } with strlen of the full pathname with tail Eh? It does return the number from pathconf(), unless it's already been exceeded: if ((pathmax = pathconf(dir, _PC_PATH_MAX)) >= 0) { if (strlen(dir) < pathmax) return pathmax; ... } BTW, I think pathconf does the "errno unchanged" bit because of } some prohibition of the library settings errno to 0 or setting } errno on success. Ah, that makes some kind of sense. -- 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