When a user executes ChangeFileAttributesInGuest(), the code calls
File_Exists() to check if the file exists. If File_Exists() fails,
then the code used to return a hard-coded error, but it is much
better to convert the errno/GetLastError() into a more meaningful
error.
Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
impersonatingVMWareUser = TRUE;
if (!(File_Exists(filePathName))) {
- err = VIX_E_FILE_NOT_FOUND;
+ err = FoundryToolsDaemon_TranslateSystemErr();
goto abort;
}