Mac: If permissions error because unable to opendir() a subdirectory, show path to that subdirectory

svn path=/trunk/boinc/; revision=25132
This commit is contained in:
Charlie Fenton 2012-01-24 02:54:21 +00:00
parent 10c79a7166
commit faa74eafec
2 changed files with 9 additions and 2 deletions

View File

@ -922,3 +922,10 @@ David 23 Jan 2012
vda/
vdad.cpp
makefile
Charlie 23 Jan 2012
- Mac: If permissions error because unable to opendir() a subdirectory,
show path to that subdirectory.
client/
check_security.cpp

View File

@ -514,9 +514,9 @@ static int CheckNestedDirectories(char * basepath, int depth,
dirp = opendir(basepath);
if (dirp == NULL) // Should never happen
return -1200;
retval = -1200;
while (true) {
while (dirp) { // Skip this if dirp == NULL, else loop until break
dp = readdir(dirp);
if (dp == NULL)
break; // End of list