From 07f2e794867030c755901ae5479df03e3c4ce189 Mon Sep 17 00:00:00 2001 From: Alexandr Morozov Date: Fri, 22 Aug 2014 18:37:37 +0400 Subject: [PATCH] Skip permissions check on named pipes Fixes #7680 Signed-off-by: Alexandr Morozov --- utils/utils.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utils/utils.go b/utils/utils.go index da6854b63c..6044a50c76 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -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() {