🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #1067

Re: Why does getpwd() have to chdir()?

#1067
From: Richard Tobin
Date: Fri, 19 Oct 1990 13:11
12 lines
1212 bytes
In article <JBW.90Oct16175441@bucsf.bu.edu> jbw@bucsf.bu.edu (Joe Wells) writes:
>In most Unixes, there's a kernel limit of 1024 characters in a pathname.
>If your current directory were located deep enough in the filesystem,
>getcwd() couldn't make it all the way up to the root without chdir()-ing.

In this case, the returned pathname is unlikely to be very useful!

-- Richard
-- 
Richard Tobin,                       JANET: R.Tobin@uk.ac.ed             
AI Applications Institute,           ARPA:  R.Tobin%uk.ac.ed@nsfnet-relay.ac.uk
Edinburgh University.                UUCP:  ...!ukc!ed.ac.uk!R.Tobin
Technical Details
Message-ID: <3584@skye.ed.ac.uk>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!sun-barr!lll-winken!uunet!mcsun!ukc!edcastle!aiai!richard
References: <1977@sixhub.UUCP> <1990Oct7.001518.14216@diku.dk> <1990Oct11.012643.11274@diku.dk> <11478@alice.att.com> <3554@skye.ed.ac.uk> <JBW.90Oct16175441@bucsf.bu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!sun-barr!lll-winken!uunet!mcsun!ukc!edcastle!aiai!richard
From: richard@aiai.ed.ac.uk (Richard Tobin)
Newsgroups: comp.unix.programmer
Subject: Re: Why does getpwd() have to chdir()?
Message-ID: <3584@skye.ed.ac.uk>
Date: 19 Oct 90 13:11:25 GMT
References: <1977@sixhub.UUCP> <1990Oct7.001518.14216@diku.dk> <1990Oct11.012643.11274@diku.dk> <11478@alice.att.com> <3554@skye.ed.ac.uk> <JBW.90Oct16175441@bucsf.bu.edu>
Reply-To: richard@aiai.UUCP (Richard Tobin)
Organization: AIAI, University of Edinburgh, Scotland
Lines: 12