Merge branch 'rs/freebsd-getcwd-workaround' into next
authorJunio C Hamano <gitster@pobox.com>
Tue, 28 Mar 2017 21:24:27 +0000 (14:24 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Mar 2017 21:24:27 +0000 (14:24 -0700)
commit3f3c1553a71ffbfd32a9dc0f06944585445f39ac
treeecba9164d936fb9ef9e82858a8c5d851ca7c56ba
parentbdce986928cd363378e444fab54de6d1e562e7a4
parenta54e938e5b53c76ebcd5c068a4f74739c1c68bac
Merge branch 'rs/freebsd-getcwd-workaround' into next

FreeBSD implementation of getcwd(3) behaved differently when an
intermediate directory is unreadable/unsearchable depending on the
length of the buffer provided, which our strbuf_getcwd() was not
aware of.  strbuf_getcwd() has been taught to cope with it better.

* rs/freebsd-getcwd-workaround:
  strbuf: support long paths w/o read rights in strbuf_getcwd() on FreeBSD
strbuf.c