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