Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wget utime error and issue with file timestamps when using wget to mirror files to a mounted network location #5742

Closed
digitalentropy opened this issue Aug 11, 2020 · 1 comment

Comments

@digitalentropy
Copy link

Environment

Windows build number: Microsoft Windows [Version 10.0.19041.388]
Your Distribution version: Debian 10
Whether the issue is on WSL 2 and/or WSL 1: Linux version 4.4.0-19041-Microsoft (Microsoft@Microsoft.com) (gcc version 5.4.0 (GCC) ) #1-Microsoft Fri Dec 06 14:06:00 PST 2019

Steps to reproduce

Mount network folder using:
sudo mkdir /mnt/share
sudo mount -t drvfs '\\server\share' /mnt/share

Download file using:

wget -x -P /mnt/path/to/network/folder https://remote.url/file.zip

Expected behavior

When I download a file, wget should keep the current date/time when I download to a mounted network folder:

Actual behavior

When I download a file, it keeps the current date/time when I download to a mounted network folder:

wget -x -P /mnt/path/to/network/folder https://remote.url/file.zip

I get the following message in among the other wget messages:

utime(pathto/filename): Operation not permitted

The issue appears to only happen when saving to the mounted network drive, and not when I save locally. Running the same command with sudo appears to work around the issue.

@therealkenc
Copy link
Collaborator

Was able to reproduce here.

image

Full *nix metadata isn't supported on drvfs network shares.

image

Call it fixed in WSL2 with a cifs mount.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants