From e16d506a58d46619c05b08f3f8ef4d5491b18b69 Mon Sep 17 00:00:00 2001 From: isaacs Date: Fri, 20 Jul 2012 10:01:46 -0700 Subject: uv: Upgrade to ad382bca --- deps/uv/test/runner-unix.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'deps/uv/test/runner-unix.c') diff --git a/deps/uv/test/runner-unix.c b/deps/uv/test/runner-unix.c index d0ebfbf073..668dc95e6f 100644 --- a/deps/uv/test/runner-unix.c +++ b/deps/uv/test/runner-unix.c @@ -40,6 +40,11 @@ /* Do platform-specific initialization. */ void platform_init(int argc, char **argv) { + /* Running the tests as root is not smart - don't do it. */ + if (getuid() == 0) { + fprintf(stderr, "Running the tests as root is not safe.\n"); + exit(1); + } /* Disable stdio output buffering. */ setvbuf(stdout, NULL, _IONBF, 0); setvbuf(stderr, NULL, _IONBF, 0); -- cgit v1.2.3