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

Bug with inaccessible folders #25

Open
resistancelion opened this issue Aug 28, 2021 · 10 comments
Open

Bug with inaccessible folders #25

resistancelion opened this issue Aug 28, 2021 · 10 comments

Comments

@resistancelion
Copy link

When you're trying to open locked folder it results in recursion bug:
image

@DDoSolitary
Copy link
Owner

What do you mean by "locked"?

@resistancelion
Copy link
Author

What do you mean by "locked"?

A folder to which ssh user do not have access to read/write, i've locked X11 folder in openSSH config, so it cannot be opened via remote control (and it works so in FileZilla)

@DDoSolitary
Copy link
Owner

i've locked X11 folder in openSSH config

Could you please share the exact config line?

@the-Arioch
Copy link

i tried to enter into /dev or /dev/char and yasfw seems to really spawn a lot of warnings, which perhaps can significantly slow down console window!

when i did normal run - i waited for almost a minute to enter /dev then i killed yafsw

when i run with redirection echo @#$@#$@#$| yasfw -r -c --server 23213213213 --user root --mount-point W: >yasfw_log.txt - the Explorer worked fast, but the log quickly grew to 1.3MB

i also did grep < yasfw_log.txt name: | sort >> yasfw_sorted.txt - and there seems to be many repeated tries, especially over /dev/zero like 20-30 times. yasfw_sorted.zip

not an infinite loop, but truly many iterations dunno why.

That being said, i saw no "recursion" on windows side.

BTW, symlinks are implemented in modern NTFS so should be in WinNT core too, so i guess in theory Dokan or yafsw could implement them too.
Albeit it would require careful file path parsing and modification, or yasfw would run into security nightmare like those elegant in theory HURD translators did.

@DDoSolitary
Copy link
Owner

DDoSolitary commented Sep 23, 2021

@the-Arioch I think it's better to open a separate issue for this.

The repeated tries are performed by Windows so there's no way to prevent that. Probably I can do some rate-limiting for the logs.

so i guess in theory Dokan or yafsw could implement them too.

It's possible in theory, but unfortunately not supported by Dokan: dokan-dev/dokany#343

@the-Arioch
Copy link

Just tried an ad hoc repro on a stalled ticket.

I doubt they are performed by Windows alone as there is clearly different number of attempts at different files.
Why so many attempts at /dev/zero and much less of others?

Also, how does Windows even know there is /dev/zero ?
I wonder if it would make sense to make a mode where yasfw would not report to Windows files that it can not process?

@DDoSolitary
Copy link
Owner

@the-Arioch PLEASE OPEN A SEPARATE ISSUE FOR THIS

The OP is mainly talking about the recursion issue

@the-Arioch
Copy link

the-Arioch commented Sep 24, 2021 via email

@DDoSolitary
Copy link
Owner

Well, the ticket is stalled because I don't even know how the X11 folder is "locked"...

@the-Arioch
Copy link

the-Arioch commented Sep 24, 2021 via email

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

3 participants