OSDN Git Service

Fix find -perm.
authorElliott Hughes <enh@google.com>
Fri, 13 Nov 2015 21:29:58 +0000 (13:29 -0800)
committerRob Landley <rob@landley.net>
Thu, 19 Nov 2015 16:16:19 +0000 (10:16 -0600)
commit0f3d8ee513d63282e72df37b97e35ff1a4e4d646
tree0a413d497ae26824f1f8f387ef0dc8fa6cd7ee60
parent859854a1b96f9337316e3fe13dcfef0376cf5c54
Fix find -perm.

1) It read st_dev instead of st_mode.
2) It reversed the semantics of absolute vs minimal ('-' prefixed) tests.

Add tests for these, and move the "unterminated -exec" test into the "Still
fails" section because it's still dumping core for me.
tests/find.test
toys/posix/find.c