projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove access checks in tests under root
[tinc]
/
test
/
unit
/
test_fs.c
diff --git
a/test/unit/test_fs.c
b/test/unit/test_fs.c
index
95d2d09
..
5b652ed
100644
(file)
--- a/
test/unit/test_fs.c
+++ b/
test/unit/test_fs.c
@@
-113,7
+113,7
@@
static void test_makedir(tinc_dir_t dir, bool exists) {
}
// Deny write access and make sure makedirs() detects that
- if(*container) {
+ if(
getuid() &&
*container) {
assert_int_equal(0, chmod(tmp, 0));
assert_false(makedirs(dir));
assert_int_equal(0, chmod(tmp, 0755));