Skip to content

Linux: use stat to get filemode#800

Merged
jrbriggs merged 1 commit intomicrosoft:features/linuxprototypefrom
github:stat-filemode
Feb 20, 2019
Merged

Linux: use stat to get filemode#800
jrbriggs merged 1 commit intomicrosoft:features/linuxprototypefrom
github:stat-filemode

Conversation

@kivikakk
Copy link
Contributor

Create placeholders with the correct permissions. It's "just" the mirror provider, but it was bugging me enough that I wanted to fix it.

/cc @chrisd8088 fyi

@kivikakk kivikakk changed the title use stat to get filemode Linux: use stat to get filemode Feb 18, 2019
Copy link
Member

@jrbriggs jrbriggs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @kivikakk ! A couple of coding convention nits.

using System.IO;
using System.Runtime.InteropServices;
using System.Text;
using Mono.Unix.Native;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wilbaker Can you comment on how we're doing platform native calls? Should we investigate if we should be using this library in the mac platform?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fwiw, I tried a simple [DllImport("libc")] to get at the stat family of functions, but it didn't go down very well. I guess this is why Mono.Posix.NETStandard exists!

@kivikakk
Copy link
Contributor Author

Style nits attended to!

@chrisd8088
Copy link
Contributor

Looks great, thanks @kivikakk!

@jrbriggs jrbriggs merged commit e8eb0a6 into microsoft:features/linuxprototype Feb 20, 2019
@kivikakk kivikakk deleted the stat-filemode branch February 20, 2019 21:52
kivikakk pushed a commit to github/VFSForGit that referenced this pull request Feb 21, 2019
@kivikakk kivikakk mentioned this pull request Feb 26, 2019
kivikakk pushed a commit to github/VFSForGit that referenced this pull request Mar 14, 2019
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

Successfully merging this pull request may close these issues.

3 participants