The recent change to disallow following symlinks by default conflicts with the expected behavior of .stignore. This adds a new flag which may be passed to OpenFile to skip default symlink-forbidding open flag. --------- Signed-off-by: Jakob Borg <jakob@kastelo.net>
This commit is contained in:
@@ -19,7 +19,7 @@ import (
|
||||
"golang.org/x/sys/windows"
|
||||
)
|
||||
|
||||
const alwaysOpenFlags = 0 // no extra flags
|
||||
const optNoFollow = 0 // not defined for Windows
|
||||
|
||||
var errNotSupported = errors.New("symlinks not supported")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user