From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14075 invoked from network); 4 Nov 2006 19:32:03 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.7 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 4 Nov 2006 19:32:03 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 820 invoked from network); 4 Nov 2006 19:31:53 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 4 Nov 2006 19:31:53 -0000 Received: (qmail 2549 invoked by alias); 4 Nov 2006 19:31:50 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22960 Received: (qmail 2095 invoked from network); 4 Nov 2006 19:24:28 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 4 Nov 2006 19:24:28 -0000 Received: (qmail 94692 invoked from network); 4 Nov 2006 19:24:28 -0000 Received: from p5089456d.dip0.t-ipconnect.de (HELO moooo.ath.cx) (80.137.69.109) by a.mx.sunsite.dk with SMTP; 4 Nov 2006 19:24:24 -0000 Date: Sat, 4 Nov 2006 20:24:23 +0100 From: Matthias Lederhofer To: zsh-workers@sunsite.dk Subject: [BUG] zgetdir() in a directory of a bind mount returns "." Message-ID: <20061104192423.GA11308@moooo.ath.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, This happened when I ran sudo because sudo unsets $PWD. Example how to reproduce this (worked on multiple machines running linux): # setup mkdir -p /tmp/a/b/c /tmp/bind mount -o bind /tmp/a/b /tmp/bind cd /tmp/bind # bug if output is "." PWD=/tmp zsh -c pwd # cleanup cd / umount /tmp/bind rm -r /tmp/a /tmp/bind The source and target directory of the bind mount have to be in different directories. With -DUSE_GETCWD=1 the bug does not occur.