aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNils Durner <durner@gnunet.org>2005-11-03 20:44:43 +0000
committerNils Durner <durner@gnunet.org>2005-11-03 20:44:43 +0000
commit0e55c6b25e91b2b876c7050e708728eaf666e264 (patch)
treed5b620a074c46a0a77f6cc127f120b88a43c4f05
parente2426138b8fecce95eb4c07fa1842f0d0ecc0860 (diff)
downloadgnunet-gtk-0e55c6b25e91b2b876c7050e708728eaf666e264.tar.gz
gnunet-gtk-0e55c6b25e91b2b876c7050e708728eaf666e264.zip
MinGW
-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)) {