From 7b1c49bca18986e94d358d8ebb069dc01470be15 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 14 Feb 2020 14:40:23 -0500 Subject: eval: Irregular files aren't empty GNU find's -empty returns false for devices, sockets, etc., even though their st_size is 0. Match that behaviour. --- tests/test_empty_special.out | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/test_empty_special.out (limited to 'tests') diff --git a/tests/test_empty_special.out b/tests/test_empty_special.out new file mode 100644 index 0000000..3927f2b --- /dev/null +++ b/tests/test_empty_special.out @@ -0,0 +1,14 @@ +rainbow/exec.sh +rainbow/file.dat +rainbow/file.txt +rainbow/mh1 +rainbow/mh2 +rainbow/ow +rainbow/sgid +rainbow/star.gz +rainbow/star.tar +rainbow/star.tar.gz +rainbow/sticky +rainbow/sticky_ow +rainbow/sugid +rainbow/suid -- cgit v1.2.3