X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Fftp.c;h=1fe2bac77cd7ef92e85a05a4eb15db70383fca9c;hb=b8f036d16c508efde5bacfab9a96d8b6c6aeeeb2;hp=9b3d81c85f3cfdb11ca7fefd2d14ec6459a24f6b;hpb=4df7703d62dd989aab61e089dfeb999ded956468;p=wget diff --git a/src/ftp.c b/src/ftp.c index 9b3d81c8..1fe2bac7 100644 --- a/src/ftp.c +++ b/src/ftp.c @@ -2285,11 +2285,11 @@ ftp_loop (struct url *u, char **local_file, int *dt, struct url *proxy, file_part = u->path; ispattern = has_wildcards_p (file_part); } - if (ispattern || recursive || opt.timestamping) + if (ispattern || recursive || opt.timestamping || opt.preserve_perm) { /* ftp_retrieve_glob is a catch-all function that gets called - if we need globbing, time-stamping or recursion. Its - third argument is just what we really need. */ + if we need globbing, time-stamping, recursion or preserve + permissions. Its third argument is just what we really need. */ res = ftp_retrieve_glob (u, &con, ispattern ? GLOB_GLOBALL : GLOB_GETONE); }