diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-06-23 23:12:47 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-06-23 23:12:47 +0900 |
commit | 97a7f463f683774f054f9d7dafc3756aad39dd1c (patch) | |
tree | 0acd579c6b01b2963d424b5f28e995f2a88ef961 /spec | |
parent | 50b2807a7cc74dc1772496986ee2f3efef85a5db (diff) | |
download | ruby-97a7f463f683774f054f9d7dafc3756aad39dd1c.tar.gz |
Max length of UNIX socket path is 104 bytes on macOS
Diffstat (limited to 'spec')
-rw-r--r-- | spec/ruby/library/socket/fixtures/classes.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/library/socket/fixtures/classes.rb b/spec/ruby/library/socket/fixtures/classes.rb index ebed66851d..4a590502ca 100644 --- a/spec/ruby/library/socket/fixtures/classes.rb +++ b/spec/ruby/library/socket/fixtures/classes.rb @@ -34,9 +34,9 @@ module SocketSpecs def self.socket_path path = tmp("unix.sock", false) - # Check for too long unix socket path (max 108 bytes including \0 => 107) + # Check for too long unix socket path (max 104 bytes on macOS) # Note that Linux accepts not null-terminated paths but the man page advises against it. - if path.bytesize > 107 + if path.bytesize > 104 path = "/tmp/unix_server_spec.socket" end rm_socket(path) |