Skip to content

Commit

Permalink
Skip permissions check on named pipes
Browse files Browse the repository at this point in the history
Fixes #7680

Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com>
  • Loading branch information
LK4D4 committed Aug 25, 2014
1 parent c87d9a1 commit 07f2e79
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 07f2e79

Please sign in to comment.