diff options
Diffstat (limited to 'apps/tagcache.c')
-rw-r--r-- | apps/tagcache.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c index ea7768139b..1babde2a02 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c | |||
@@ -430,7 +430,7 @@ static long find_entry_ram(const char *filename, | |||
430 | } | 430 | } |
431 | #endif | 431 | #endif |
432 | 432 | ||
433 | static long find_entry_disk(const char *filename, bool localfd) | 433 | static long find_entry_disk(const char *filename_raw, bool localfd) |
434 | { | 434 | { |
435 | struct tagcache_header tch; | 435 | struct tagcache_header tch; |
436 | static long last_pos = -1; | 436 | static long last_pos = -1; |
@@ -443,6 +443,13 @@ static long find_entry_disk(const char *filename, bool localfd) | |||
443 | int i; | 443 | int i; |
444 | int pos = -1; | 444 | int pos = -1; |
445 | 445 | ||
446 | char *filename = (char *)filename_raw; | ||
447 | #ifdef APPLICATION | ||
448 | char pathbuf[MAX_PATH]; | ||
449 | if (realpath(filename, pathbuf) == pathbuf) | ||
450 | filename = pathbuf; | ||
451 | #endif | ||
452 | |||
446 | if (!tc_stat.ready) | 453 | if (!tc_stat.ready) |
447 | return -2; | 454 | return -2; |
448 | 455 | ||