bug-cvs
[Top][All Lists]
Advanced

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

read access failure if parent directories are not readable


From: Sree Harsha Totakura
Subject: read access failure if parent directories are not readable
Date: Wed, 05 Dec 2012 19:21:16 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0

Hi,

While using autoreconf on a project I came across a cvs error:
> cvs [init aborted]: cannot get working directory: Permission denied
> cvs [checkout aborted]: cannot get working directory: Permission denied
> find: `archive': No such file or directory
> find: `archive': No such file or directory
> autopoint: *** infrastructure files for version 0.16.1 not found; this is 
> autopoint from GNU gettext-tools 0.17
> autopoint: *** Stop.
> autoreconf: autopoint failed with exit status: 1

I was able to get the same error if I tried to initialize a repository:
> address@hidden:~/foo> cvs init
> cvs [init aborted]: cannot get working directory: Permission denied

Upon investigation the problem here is that one of the parent
directories on the server leading to my home directory are not readable
- there is no read flag but the executable flag is set. This setting
allows me to access my home directories but forbids me to list all the
available home directories on the machine.

I was using cvs 1.12.13. The error happens to be due to cvs checking the
readability of all the parent directories.

The attached patch helped me to get over this problem. This patch forces
cvs to use the system's `getcwd()` function. I'm not sure if it is
clean, but it worked as a quick hack for me. Hence, I'm submitting it here.

--
Sree Harsha Totakura

Attachment: cvs-1.12.13-getcwd.patch
Description: Text Data


reply via email to

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