realpath: prefer the buffer size given by pathconf()
commitd7043da28199f2a98c202a025c8bccf93329deb9
authorH. Peter Anvin <hpa@zytor.com>
Fri, 12 Feb 2016 09:32:57 +0000 (12 01:32 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 12 Feb 2016 09:32:57 +0000 (12 01:32 -0800)
tree753e2902b8c61305e2c02b0927cd65b72f5d772d
parent67db8184b152b7bb734f4298361416c8340b9db3
realpath: prefer the buffer size given by pathconf()

If realpath(..., NULL) doesn't work, we have to allocate a buffer
blindly.  Use the value returned from pathconf() in preference from
compile-time constants.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
realpath.c