size of temporary file that disappears between the File_ListDirectory() and
File_GetSize() calls as size 0.
Common header file change; not applicable to open-vm-tools.
{
int i;
int numFiles;
- struct stat sb;
int64 totalSize = 0;
char **fileList = NULL;
return -1;
}
- if (Posix_Lstat(pathName, &sb) == -1) {
- return -1;
- }
-
- if ((sb.st_mode & S_IFMT) != S_IFDIR) {
- return sb.st_size;
+ if (!File_IsDirectory(pathName)) {
+ return File_GetSize(pathName);
}
numFiles = File_ListDirectory(pathName, &fileList);
-
if (numFiles == -1) {
return -1;
}
free(fileName);
- if (fileSize == -1) {
- totalSize = -1;
- break;
- } else {
+ if (fileSize != -1) {
totalSize += fileSize;
}
}
LOGLEVEL_VAR(efivarstore), \
LOGLEVEL_VAR(toolsIso), \
LOGLEVEL_VAR(toolsversion), \
- LOGLEVEL_VAR(vmva)
+ LOGLEVEL_VAR(vmva), \
+ LOGLEVEL_VAR(udpfec) /* lib/udpfec */
/* end of list */