bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] test 56 fails on Debian kfreebsd


From: Joerg Schilling
Subject: Re: [Bug-tar] test 56 fails on Debian kfreebsd
Date: Fri, 11 Nov 2011 21:47:45 +0100
User-agent: nail 11.22 3/20/05

Chuck Swiger <address@hidden> wrote:

> On Nov 11, 2011, at 11:56 AM, Paul Eggert wrote:
> > I wouldn't worry about that test failure.
> > It's a known problem with getcwd on traditional
> > Unix and BSD.
>
> Can you be more verbose about this problem with getcwd()?
>
> The only major differences I see between the BSD version and a glibc version 
> is that BSD will allocate a buffer for you if you pass NULL pointer as the 
> first arg, and that glibc/Linux will try to look at /proc/self/cwd to try and 
> avoid returning EACCES....

getcwd() has been turned into a syscall on Solaris 5 years ago for Linux 
compatibility. I would guess that Linux also implements a related syscall.
This allows to get the working directory in cases where all other methods must 
fail.

Jörg

-- 
 EMail:address@hidden (home) Jörg Schilling D-13353 Berlin
       address@hidden                (uni)  
       address@hidden (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



reply via email to

[Prev in Thread] Current Thread [Next in Thread]