about summary refs log tree commit diff
path: root/io/bug-ftw3.c
diff options
context:
space:
mode:
Diffstat (limited to 'io/bug-ftw3.c')
-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 fcc2ca7bba..19740f49f3 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)
     {