Merge branch 'master' of https://github.com/FletcherJ1/liburing
* 'master' of https://github.com/FletcherJ1/liburing:
Added prep function for sync_file_range op
diff --git a/.gitignore b/.gitignore
index d9fa2c2..f850a8c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -91,6 +91,7 @@
/test/self
/test/send_recv
/test/send_recvmsg
+/test/sendmsg_fs_cve
/test/shared-wq
/test/short-read
/test/shutdown
diff --git a/test/read-write.c b/test/read-write.c
index 7f33ad4..409827a 100644
--- a/test/read-write.c
+++ b/test/read-write.c
@@ -692,6 +692,11 @@
int i, fd, ret;
loff_t off;
+ if (geteuid()) {
+ fprintf(stdout, "Not root, skipping %s\n", __FUNCTION__);
+ return 0;
+ }
+
if (getrlimit(RLIMIT_FSIZE, &old_rlim) < 0) {
perror("getrlimit");
return 1;