[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Checking out files in the repository itself( how to better prevent )
From: |
Donald Sharp |
Subject: |
Checking out files in the repository itself( how to better prevent ) |
Date: |
Tue, 27 Feb 2001 09:14:59 -0500 |
User-agent: |
Mutt/1.2.4i |
The current implementation prevents via the safe_location() function
( in checkout.c ).
safe_location() follows symlinks back to find the actual location. The
problem that I am having is that repositories are not where they
say they are due to mount issues.
For Instance:
One repository I have is at /nfs/swtrf/repository
donsharp-u5:24> cd /nfs/swtrf/repository
donsharp-u5:25> df -k .
Filesystem kbytes used avail capacity Mounted on
saba:/swtrf 8388608 3252424 4977952 40% /auto/swtrf
donsharp-u5:26> pwd
/auto/swtrf/repository
donsharp-u5:27>
This causes the safe_location() check to not catch the fact that
we really are inside of the repository.
Would it be worthwhile to create a safer safe_location() that
looks at mount points as well?
donald
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Checking out files in the repository itself( how to better prevent ),
Donald Sharp <=