diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2016-12-21 21:09:59 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2016-12-21 21:17:01 -0500 |
commit | afb63a82ae165b6630a35ab5945973358c8119b6 (patch) | |
tree | 14321d0553a9797ed34acd1e1b156678f5bb59cd | |
parent | e5af47a6eac34dbf380949b9dad5ed8373d10d37 (diff) | |
download | bfs-afb63a82ae165b6630a35ab5945973358c8119b6.tar.xz |
Set _FILE_OFFSET_BITS to 64
With the new support for -size n[TP], this is needed to avoid overflow
on 32-bit platforms.
-rw-r--r-- | Makefile | 1 | ||||
-rwxr-xr-x | tests.sh | 7 | ||||
-rw-r--r-- | tests/test_0122.out | 1 |
3 files changed, 8 insertions, 1 deletions
@@ -33,6 +33,7 @@ LOCAL_CPPFLAGS := \ -D_ATFILE_SOURCE \ -D__EXTENSIONS__ \ -D_DARWIN_C_SOURCE \ + -D_FILE_OFFSET_BITS=64 \ -DBFS_VERSION=\"$(VERSION)\" LOCAL_CFLAGS := -std=c99 @@ -755,9 +755,14 @@ function test_0121() { bfs_diff -H times -mnewer times/l } +function test_0122() { + [ "$BSD" ] || return 0 + bfs_diff basic -type f -size 1T +} + result=0 -for i in {1..121}; do +for i in {1..122}; do test="test_$(printf '%04d' $i)" if [ -t 1 ]; then diff --git a/tests/test_0122.out b/tests/test_0122.out new file mode 100644 index 0000000..279f3f1 --- /dev/null +++ b/tests/test_0122.out @@ -0,0 +1 @@ +basic/l/foo/bar/baz |