lib/fs: Set execute bits on junctions converted to dirs (ref #6606) (#6645)

This commit is contained in:
xarx00 2020-05-14 08:09:58 +02:00 committed by GitHub
parent e5cc55ce09
commit f05ccd775a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -57,7 +57,9 @@ type dirJunctFileInfo struct {
}
func (fi *dirJunctFileInfo) Mode() os.FileMode {
return fi.FileInfo.Mode() ^ os.ModeSymlink | os.ModeDir
// Simulate a directory and not a symlink; also set the execute
// bits so the directory can be traversed Unix-side.
return fi.FileInfo.Mode() ^ os.ModeSymlink | os.ModeDir | 0111
}
func (fi *dirJunctFileInfo) IsDir() bool {