aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/fs/download.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/fs/download.c')
-rw-r--r--src/plugins/fs/download.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/fs/download.c b/src/plugins/fs/download.c
index 20bbdf5c..aad51417 100644
--- a/src/plugins/fs/download.c
+++ b/src/plugins/fs/download.c
@@ -500,7 +500,7 @@ void displayDownloadComplete(const struct ECRS_URI * uri,
500 strcat(dstFile, DIR_SEPARATOR_STR); 500 strcat(dstFile, DIR_SEPARATOR_STR);
501 strcat(dstFile, newFn); 501 strcat(dstFile, newFn);
502 502
503 if ((len = readlink(ln ? ln : fn, fnURL, PATH_MAX)) == -1) { 503 if ((len = READLINK(ln ? ln : fn, fnURL, PATH_MAX)) == -1) {
504 LOG(LOG_ERROR, _("Could not open symlink `%s': %s\n"), 504 LOG(LOG_ERROR, _("Could not open symlink `%s': %s\n"),
505 ln ? ln : fn, STRERROR(errno)); 505 ln ? ln : fn, STRERROR(errno));
506 506
@@ -513,7 +513,7 @@ void displayDownloadComplete(const struct ECRS_URI * uri,
513 513
514 /* If the file was downloaded before, fnURL is a symlink to 514 /* If the file was downloaded before, fnURL is a symlink to
515 dstFile */ 515 dstFile */
516 if ((readlink(fnURL, dummy, 1) == -1) && (errno == EINVAL)) { 516 if ((READLINK(fnURL, dummy, 1) == -1) && (errno == EINVAL)) {
517 if (RENAME(fnURL, dstFile) == -1) { 517 if (RENAME(fnURL, dstFile) == -1) {
518 /* renaming failed, try to copy */ 518 /* renaming failed, try to copy */
519 if (!copyFile(fnURL, dstFile)) { 519 if (!copyFile(fnURL, dstFile)) {