Skip permissions check on named pipes
This commit is contained in:
Victor Vieux 2014-08-25 12:00:11 -07:00
commit d1544a0930
1 changed files with 3 additions and 2 deletions

View File

@ -642,9 +642,10 @@ func ValidateContextDirectory(srcPath string, excludes []string) error {
return err
}
// skip checking if symlinks point to non-existing files, such symlinks can be useful
// also skip named pipes, because they hanging on open
lstat, _ := os.Lstat(filePath)
if lstat.Mode()&os.ModeSymlink == os.ModeSymlink {
return err
if lstat.Mode()&(os.ModeSymlink|os.ModeNamedPipe) != 0 {
return nil
}
if !f.IsDir() {