From 57401683651fb9a4cecb20aa5ab615201ca34dbc Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Tue, 15 Apr 2008 10:30:06 +0000 Subject: [PATCH] API: fix boinc_resolve_filename_s() to handle symlinks the same as boinc_resolve_filename(). svn path=/trunk/boinc/; revision=15053 --- checkin_notes | 5 +++++ lib/app_ipc.C | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/checkin_notes b/checkin_notes index a551782a65..ed6f8e1020 100644 --- a/checkin_notes +++ b/checkin_notes @@ -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 diff --git a/lib/app_ipc.C b/lib/app_ipc.C index 65a5aa331a..d922324926 100644 --- a/lib/app_ipc.C +++ b/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;