aboutsummaryrefslogtreecommitdiff
path: root/io
diff options
context:
space:
mode:
Diffstat (limited to 'io')
-rw-r--r--io/bug-ftw3.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/io/bug-ftw3.c b/io/bug-ftw3.c
index fcc2ca7..19740f4 100644
--- a/io/bug-ftw3.c
+++ b/io/bug-ftw3.c
@@ -25,6 +25,12 @@ main (void)
int r;
int e;
+ if (getuid () == 0)
+ {
+ puts ("this test needs to be run by ordinary user");
+ exit (0);
+ }
+
dname = mkdtemp (tmp);
if (dname == NULL)
{