]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Tweak AFSDIR_PATH_MAX definition
authorBenjamin Kaduk <kaduk@mit.edu>
Mon, 8 Sep 2014 17:47:33 +0000 (13:47 -0400)
committerStephan Wiesand <stephan.wiesand@desy.de>
Wed, 7 Oct 2015 10:19:55 +0000 (06:19 -0400)
commitcb18459a5dae9559de506d7decf02a636847d0fa
tree51290b2e497196123fa5fb6c85be3eff34e79811
parent49facf65daeda716dc61ef56b95b4bec99d0f2c1
Tweak AFSDIR_PATH_MAX definition

On recent Debian, we run into runtime errors in the test suite
because _POSIX_PATH_MAX is only 256, and that buffer is too small
for a call to realpath().  Use PATH_MAX if it's available and larger
than _POSIX_PATH_MAX, in a way that should be safe even when PATH_MAX
is not defined.

Reviewed-on: http://gerrit.openafs.org/11453
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Reviewed-by: Perry Ruiter <pruiter@sinenomine.net>
Reviewed-by: D Brashear <shadow@your-file-system.com>
Tested-by: D Brashear <shadow@your-file-system.com>
(cherry picked from commit ec2382e060753dfdcaf84b9ac03e1534c65fcdbc)

Change-Id: I37222dcb019ed9593a499b84a3e4ab30b8a9cf9c
Reviewed-on: http://gerrit.openafs.org/11588
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Daria Phoebe Brashear <shadow@your-file-system.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/util/dirpath.hin