diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2015-08-24 19:24:04 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-08-28 11:11:29 +0200 |
commit | eb3a8fd1886626519d36ca4cbafc8241ab46b6ba (patch) | |
tree | bdce0db1af0e095bfad8b1b6266b945a18e7f2ae /main/go/default-sc-getpw-r-size-max.patch | |
parent | bcfbb5080728e35c85f01851795220e1118a1fcc (diff) | |
download | aports-eb3a8fd1886626519d36ca4cbafc8241ab46b6ba.tar.bz2 aports-eb3a8fd1886626519d36ca4cbafc8241ab46b6ba.tar.xz |
main/go: upgrade to 1.5
This might still need some further testing, especially cgo wasn't tested
to extensively by me.
Diffstat (limited to 'main/go/default-sc-getpw-r-size-max.patch')
-rw-r--r-- | main/go/default-sc-getpw-r-size-max.patch | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/main/go/default-sc-getpw-r-size-max.patch b/main/go/default-sc-getpw-r-size-max.patch deleted file mode 100644 index f242b5a3cc..0000000000 --- a/main/go/default-sc-getpw-r-size-max.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- a/src/os/user/lookup_unix.go -+++ b/src/os/user/lookup_unix.go -@@ -57,6 +57,12 @@ - bufSize = 1024 - } else { - bufSize = C.sysconf(C._SC_GETPW_R_SIZE_MAX) -+ // The musl alternative standard library on Linux -+ // return -1 as specified by POSIX if there are no -+ // hard limit on _SC_GETPW_R_SIZE_MAX. -+ if bufSize == -1 { -+ bufSize = 1024 -+ } - if bufSize <= 0 || bufSize > 1<<20 { - return nil, fmt.Errorf("user: unreasonable _SC_GETPW_R_SIZE_MAX of %d", bufSize) - } |