From c598cb1d1cdabfff9cfab905962245471d19d7bd Mon Sep 17 00:00:00 2001 From: adilger Date: Wed, 5 Feb 2003 22:37:18 +0000 Subject: [PATCH] Fixups to sanity.sh and createtest.c so it passes when run as a non-root user (to keep Terry happy ;-). We're not doing extensive permission testing here - leave that to POSIX. --- lustre/tests/createtest.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lustre/tests/createtest.c b/lustre/tests/createtest.c index 5c7f0c4..5404f13 100644 --- a/lustre/tests/createtest.c +++ b/lustre/tests/createtest.c @@ -38,6 +38,8 @@ int main(int argc, char *argv[]) mode |= S_IFREG; case S_IFREG: case S_IFCHR: case S_IFBLK: + if (rc < 0 && getuid() != 0) + continue; case S_IFSOCK: case S_IFIFO: if (rc < 0) { fprintf(stderr, "%s: ERROR mknod %s: %s\n", -- 1.8.3.1