gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r2233 - gnunet-gtk/src/plugins/fs


From: durner
Subject: [GNUnet-SVN] r2233 - gnunet-gtk/src/plugins/fs
Date: Thu, 3 Nov 2005 12:44:49 -0800 (PST)

Author: durner
Date: 2005-11-03 12:44:43 -0800 (Thu, 03 Nov 2005)
New Revision: 2233

Modified:
   gnunet-gtk/src/plugins/fs/download.c
Log:
MinGW

Modified: gnunet-gtk/src/plugins/fs/download.c
===================================================================
--- gnunet-gtk/src/plugins/fs/download.c        2005-11-03 19:01:35 UTC (rev 
2232)
+++ gnunet-gtk/src/plugins/fs/download.c        2005-11-03 20:44:43 UTC (rev 
2233)
@@ -500,7 +500,7 @@
         strcat(dstFile, DIR_SEPARATOR_STR);
         strcat(dstFile, newFn);
         
-        if ((len = readlink(ln ? ln : fn, fnURL, PATH_MAX)) == -1) {
+        if ((len = READLINK(ln ? ln : fn, fnURL, PATH_MAX)) == -1) {
           LOG(LOG_ERROR, _("Could not open symlink `%s': %s\n"),
             ln ? ln : fn, STRERROR(errno));
             
@@ -513,7 +513,7 @@
         
         /* If the file was downloaded before, fnURL is a symlink to
            dstFile */
-        if ((readlink(fnURL, dummy, 1) == -1) && (errno == EINVAL)) {
+        if ((READLINK(fnURL, dummy, 1) == -1) && (errno == EINVAL)) {
           if (RENAME(fnURL, dstFile) == -1) {
             /* renaming failed, try to copy */
             if (!copyFile(fnURL, dstFile)) {





reply via email to

[Prev in Thread] Current Thread [Next in Thread]