diff options
author | Torsten Bögershausen <tboegi@web.de> | 2015-01-27 16:39:01 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-02-15 15:48:38 -0800 |
commit | f400e51c13eb4143e420d41d9b415d4f5ddbdb85 (patch) | |
tree | af669aea9c3316ce32f2499f6b23928ab6955e99 /contrib/credential/wincred | |
parent | tests: correct misuses of POSIXPERM (diff) | |
download | tgif-f400e51c13eb4143e420d41d9b415d4f5ddbdb85.tar.xz |
test-lib.sh: set prerequisite SANITY by testing what we really need
What we wanted out of the SANITY precondition is that the filesystem
behaves sensibly with permission bits settings.
- You should not be able to remove a file in a read-only directory,
- You should not be able to tell if a file in a directory exists if
the directory lacks read or execute permission bits.
We used to cheat by approximating that condition with "is the /
writable?" test and/or "are we running as root?" test. Neither test
is sufficient or appropriate in environments like Cygwin.
Signed-off-by: Torsten Bögershausen <tboegi@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/credential/wincred')
0 files changed, 0 insertions, 0 deletions