dotcloud/docker — pull request #5395 by lalyos (2014-04-25 04:09:59+00:00)
Title: fixes infinite/maxLoopCount loop for relive symlinks

this fixes https://github.com/dotcloud/docker/issues/5370

## Issue
When changing from 0.9.1 to 0.10.0 one of my `docker build .` started to hang forever.
It caused by symlinks in the images. Normally symlinks are created as either starting with '.' or '/' character:
```
ln -s /path/existing /path/new-name
#or
cd /path && ln -s ./existing new-name
```
but one can create it with realtive file/directory name like:
```
cd /path && ln -s existing new-name
```
this drives FollowSymlinkInScope into infinite loop

## Fix

I just completed the [The Tour of Go](http://tour.golang.org/) and felt competent enough to fix this issue,
so be warned this my first day with go ;)