From 11961b42ac7a15fc59da3acd2dc83935ea879557 Mon Sep 17 00:00:00 2001 From: Eric Hodel Date: Thu, 12 May 2016 17:47:56 -0700 Subject: Create socket in /tmp for security Some systems do not allow UNIX sockets from arbitrary directories. Instead of trying to `#define SOCKET_PATH` correctly I assume the /tmp/ directory is accessible and use it. --- test/mruby_io_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/mruby_io_test.c b/test/mruby_io_test.c index fdd20d226..ca0f818a1 100644 --- a/test/mruby_io_test.c +++ b/test/mruby_io_test.c @@ -25,7 +25,7 @@ mrb_io_test_io_setup(mrb_state *mrb, mrb_value self) char rfname[] = "tmp.mruby-io-test.XXXXXXXX"; char wfname[] = "tmp.mruby-io-test.XXXXXXXX"; char symlinkname[] = "tmp.mruby-io-test.XXXXXXXX"; - char socketname[] = "tmp.mruby-io-test.XXXXXXXX"; + char socketname[] = "/tmp/mruby-io-test.XXXXXXXX"; char msg[] = "mruby io test\n"; mode_t mask; int fd0, fd1, fd2, fd3; -- cgit v1.2.3