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

On modifying a file in windows, the time stamp is set to a future date #17

Open
PraneethKapuganti opened this issue Sep 27, 2017 · 3 comments

Comments

@PraneethKapuganti
Copy link

Environment

Windows version: Windows 7
Processor architecture: Intel x86 64
Dokany version: 1.0.5
Library type (Dokany/FUSE): Dokan
Check List

Description

I am using DOKAN SSHFS to mount to a remote linux server.

When I modify a file in windows the linux file timestamp is set to a future date. Because of this all the builds/make system is failing. Specifically the date is set to Jan 18 2038 on Linux and on windows it does not show any timestamp after the file is modified. I am using notepad to modify the file. In fact I used other softwares to modify the file and still see the same issue

Based on the timestamp it is being set on Linux, this looks like a integer overflow problem to me. I am not sure but I have seen similar issues before.

I am not sure if this is a bug with the library or dokan-sshfs. I opened a Issue for both

@Liryna
Copy link
Member

Liryna commented Sep 29, 2017

Hi @PraneethKapuganti ,

Dokan sshfs is more a testing software / presentation that should not be really used day to day or it needs a good review :)
Dokan handle the date correctly on files for sure so I would say dokan sshfs is broken on this part.
Have you looked at https://github.com/Foreveryone-cz/win-sshfs ?
It is a better supported sshfs !

@PraneethKapuganti
Copy link
Author

Hi @Liryna
I did look at win-sshfs. It is slow compared to Dokan sshfs. Especially it takes a lot of time in refreshing the dirs and files.

@Liryna
Copy link
Member

Liryna commented Oct 10, 2017

Humm so regardin to your issue.
Can you take a look at the value returned by https://github.com/dokan-dev/dokan-sshfs/blob/master/DokanSSHFS/DokanOperations.cs#L655 ?
If SftpATTRS attr as at least the correct values.

And if no error and correct values also during the set time https://github.com/dokan-dev/dokan-sshfs/blob/master/DokanSSHFS/DokanOperations.cs#L799

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

No branches or pull requests

2 participants