diff options
| author | Pádraig Brady <P@draigBrady.com> | 2017-08-29 23:42:54 -0700 |
|---|---|---|
| committer | Pádraig Brady <P@draigBrady.com> | 2017-08-29 23:42:54 -0700 |
| commit | f169345506ac5a095cd100d016c84dc44b33e851 (patch) | |
| tree | 2834f72f231fd5e397208da9a1cd623ba3c8e275 /scripts/git-hooks/commit-msg | |
| parent | stat,tail: support "AAFS" AppArmor file system (diff) | |
| download | coreutils-f169345506ac5a095cd100d016c84dc44b33e851.tar.gz coreutils-f169345506ac5a095cd100d016c84dc44b33e851.zip | |
stat: fix determination of max name length on BSD systems
We only use one of statfs or statvfs for `stat -f`
and on the BSDs we use statfs which doesn't have the
f_namelen member. However on OpenBSD and later FreeBSD
systems statfs does provide f_namemax, so use that.
* NEWS: Mention the improvement for OpenBSD and FreeBSD.
* m4/stat-prog.m4: Check for f_namemax in the statfs struct.
* src/stat.c: Return '?' rather than '*' when we can't
determine the max length of the file system.
* tests/ln/sf-1.sh: This test was failing on all BSDs
due to '*' being returned for the max length which
caused the test to attempt to create 1Mi+1 names.
The test now uses a short name when we can't determine
the max name length to use.
Reported by Assaf Gordon on various BSD based systems.
Diffstat (limited to 'scripts/git-hooks/commit-msg')
0 files changed, 0 insertions, 0 deletions
