Merge pull request #7683 from LK4D4/fix_build_hang_pipe_#7680
Skip permissions check on named pipes Upstream-commit: d1544a09309afc637756bb1d69d0b2a65a90217a Component: engine
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user