mirror of https://github.com/BOINC/boinc.git
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:
parent
10c79a7166
commit
faa74eafec
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue