Merge branch 'rs/freebsd-getcwd-workaround'
commit49a8fe8e962ed929cf5bed5520e581025f5bfe9a
authorJunio C Hamano <gitster@pobox.com>
Thu, 30 Mar 2017 21:07:15 +0000 (30 14:07 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 30 Mar 2017 21:07:15 +0000 (30 14:07 -0700)
treead3ea9fb0b4653e801eb51390c5695e26201de13
parent3736c925580f678f601d670983f7f6cda791d108
parenta54e938e5b53c76ebcd5c068a4f74739c1c68bac
Merge branch 'rs/freebsd-getcwd-workaround'

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