diff options
author | isaacs <i@izs.me> | 2012-07-20 10:01:46 -0700 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-07-20 11:08:36 -0700 |
commit | e16d506a58d46619c05b08f3f8ef4d5491b18b69 (patch) | |
tree | 82d73799208905b6d6d290704987dafde583c603 /deps/uv/test/runner-unix.c | |
parent | 85185bbbaa9e99bd77232f529687e9fa5d26af78 (diff) | |
download | android-node-v8-e16d506a58d46619c05b08f3f8ef4d5491b18b69.tar.gz android-node-v8-e16d506a58d46619c05b08f3f8ef4d5491b18b69.tar.bz2 android-node-v8-e16d506a58d46619c05b08f3f8ef4d5491b18b69.zip |
uv: Upgrade to ad382bca
Diffstat (limited to 'deps/uv/test/runner-unix.c')
-rw-r--r-- | deps/uv/test/runner-unix.c | 5 |
1 files changed, 5 insertions, 0 deletions
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); |