1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Don't try to chmod() symlinks.

This commit is contained in:
hniksic 2000-06-01 04:20:05 -07:00
parent 0eec6b9f30
commit 2e806fb2f3
2 changed files with 6 additions and 1 deletions

View 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

View File

@ -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));