From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <1a0d27c99e832da94f5826a04e2c8e42@proxima.alt.za> To: 9fans@cse.psu.edu From: lucio@proxima.alt.za MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] pwd(1) Date: Sat, 1 Nov 2003 16:09:35 +0200 Topicbox-Message-UUID: 7ba84a30-eacc-11e9-9e20-41e7f4b1d025 Does it really return the value of the pathname which it failed to retrieve when it fails to retrieve it? if(getwd(pathname, sizeof(pathname)) == 0) { print("pwd: %r\n"); exits(pathname); } I hope I'm looking at old code. Did somebody forget to put quotes around the exits() argument? ++L