API: fix boinc_resolve_filename_s() to handle symlinks the same as boinc_resolve_filename().

svn path=/trunk/boinc/; revision=15053
This commit is contained in:
Charlie Fenton 2008-04-15 10:30:06 +00:00
parent 8b64918911
commit 5740168365
2 changed files with 10 additions and 0 deletions

View File

@ -3243,3 +3243,8 @@ Charlie April 15 2008 (HEAD)
configure.ac
version.h
Charlie April 15 2008
- API: fix boinc_resolve_filename_s() to handle symlinks the same as
boinc_resolve_filename().
lib/
app_ipc.C

View File

@ -350,6 +350,11 @@ int boinc_resolve_filename_s(const char *virtual_name, string& physical_name) {
char buf[512], *p;
if (!virtual_name) return ERR_NULL;
physical_name = virtual_name;
#ifndef _WIN32
if (is_symlink(virtual_name)) {
return 0;
}
#endif
FILE *fp = boinc_fopen(virtual_name, "r");
if (!fp) return ERR_FOPEN;
buf[0] = 0;