Update kardianos/osext (fixes #2650)

This commit is contained in:
Jakob Borg
2016-01-03 19:59:56 +01:00
parent 18ae87962d
commit adb1227b2e
3 changed files with 3 additions and 5 deletions

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build linux netbsd solaris dragonfly freebsd
// +build linux netbsd solaris dragonfly
package osext
@@ -27,8 +27,6 @@ func executable() (string, error) {
return execpath, nil
case "netbsd":
return os.Readlink("/proc/curproc/exe")
case "freebsd":
return os.Readlink("/proc/curproc/file")
case "dragonfly":
return os.Readlink("/proc/curproc/file")
case "solaris":

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build darwin openbsd
// +build darwin freebsd openbsd
package osext