"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "hugofs/nosymlink_fs.go" between
hugo-0.85.0.tar.gz and hugo-0.86.0.tar.gz

About: Hugo is a static site generator that takes a source directory of Markdown files and templates and uses these as input to create a complete website (written in Go).

nosymlink_fs.go  (hugo-0.85.0):nosymlink_fs.go  (hugo-0.86.0)
skipping to change at line 106 skipping to change at line 106
fi, err = fs.checkSymlinkStatus(name, fi) fi, err = fs.checkSymlinkStatus(name, fi)
return fi, wasLstat, err return fi, wasLstat, err
} }
func (fs *noSymlinkFs) checkSymlinkStatus(name string, fi os.FileInfo) (os.FileI nfo, error) { func (fs *noSymlinkFs) checkSymlinkStatus(name string, fi os.FileInfo) (os.FileI nfo, error) {
var metaIsSymlink bool var metaIsSymlink bool
if fim, ok := fi.(FileMetaInfo); ok { if fim, ok := fi.(FileMetaInfo); ok {
meta := fim.Meta() meta := fim.Meta()
metaIsSymlink = meta.IsSymlink() metaIsSymlink = meta.IsSymlink
} }
if metaIsSymlink { if metaIsSymlink {
if fs.allowFiles && !fi.IsDir() { if fs.allowFiles && !fi.IsDir() {
return fi, nil return fi, nil
} }
return nil, ErrPermissionSymlink return nil, ErrPermissionSymlink
} }
// Also support non-decorated filesystems, e.g. the Os fs. // Also support non-decorated filesystems, e.g. the Os fs.
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)