Krish Krothapalli <[EMAIL PROTECTED]> writes:

> When using wget ftp://XXX, is it intentional to preserve server
> permissions when using wildcards?

It's intentional.  Wildcards force Wget to retrieve the full directory
listing, which has a side-effect that more information is available.
The remote permissions are an example of that information.  The
"exact" sizes of files (for an admittedly odd definition of exact) are
another -- that's why Wget doesn't call the length "unauthoritative"
when you're using wildcards.

But you have a good point.  If your groups and users differ from those
on the remote site, blindly copying permissions can do more harm than
good, and can in fact pose a security risk.  Mirroring remote
permission should be controlled with an option, which should probaboly
default to "off".

I've added that to the TODO list; thanks for the report.

Reply via email to