mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 03:18:59 +00:00
Don't panic when lacking symlink support on XP (fixes #1016)
This commit is contained in:
parent
0255311bbe
commit
b48d9a3a82
@ -46,6 +46,15 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
defer func() {
|
||||||
|
if err := recover(); err != nil {
|
||||||
|
// Ensure that the supported flag is disabled when we hit an
|
||||||
|
// error, even though it should already be. Also, silently swallow
|
||||||
|
// the error since it's fine for a system not to support symlinks.
|
||||||
|
Supported = false
|
||||||
|
}
|
||||||
|
}()
|
||||||
|
|
||||||
// Needs administrator priviledges.
|
// Needs administrator priviledges.
|
||||||
// Let's check that everything works.
|
// Let's check that everything works.
|
||||||
// This could be done more officially:
|
// This could be done more officially:
|
||||||
|
Loading…
Reference in New Issue
Block a user