]> sjero.net Git - wget/commitdiff
[svn] Don't try to chmod() symlinks.
authorhniksic <devnull@localhost>
Thu, 1 Jun 2000 11:20:05 +0000 (04:20 -0700)
committerhniksic <devnull@localhost>
Thu, 1 Jun 2000 11:20:05 +0000 (04:20 -0700)
src/ChangeLog
src/ftp.c

index a95781f36ade369626b1e200aeb831b320eb2eb9..7e39a580449051c0f5f6a90fbc82d5affa0d0d47 100644 (file)
@@ -1,3 +1,8 @@
+2000-06-01  Const Kaplinsky  <const@ce.cctpu.edu.ru>
+
+       * ftp.c (ftp_retrieve_list): Change permissions only on plain
+       files.
+
 2000-06-01  Hrvoje Niksic  <hniksic@iskon.hr>
 
        * url.c (str_url): Print the port number only if it's different
index ef611d32df7c936a76577fdaf930100bdcb65d00..cc2cff9bfe8a0c10c0f57bbc8002e9489e56e7a3 100644 (file)
--- a/src/ftp.c
+++ b/src/ftp.c
@@ -1221,7 +1221,7 @@ Already have correct symlink %s -> %s\n\n"),
       else if (f->tstamp == -1)
        logprintf (LOG_NOTQUIET, _("%s: corrupt time-stamp.\n"), u->local);
 
-      if (f->perms && dlthis)
+      if (f->perms && f->type == FT_PLAINFILE && dlthis)
        chmod (u->local, f->perms);
       else
        DEBUGP (("Unrecognized permissions for %s.\n", u->local));