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

Issues with stat() implementation for Windows #648

Closed
manojampalam opened this issue Apr 3, 2017 · 1 comment
Closed

Issues with stat() implementation for Windows #648

manojampalam opened this issue Apr 3, 2017 · 1 comment
Assignees
Milestone

Comments

@manojampalam
Copy link
Contributor

Tracked TODO in code:
win32\win32compat\fileio.c

int
fileio_stat(const char *path, struct _stat64 buf)
/

* If we doesn't have sufficient permissions then _wstat4() is returning "file not found"
* Using the following to work around this.
* TODO - Replace the above call with GetFileAttributesEx
*/

@bingbing8
Copy link
Contributor

the scenario is that in remote sftp session, dir should list all the file even the logon user does not have access to the file, but get should failed with access denied. The current behavior is dir does not list the file the user does not have permission, which is not expected.

manojampalam pushed a commit to PowerShell/openssh-portable that referenced this issue May 18, 2017
@bingbing8 bingbing8 modified the milestones: May-End, Beta May 18, 2017
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