Skip to content

Commit dd3d26b

Browse files
authored
Revert "[Support] Error if SocketPath is too long" (#149096)
Reverts #148903 due to bot failure https://lab.llvm.org/buildbot/#/builders/187/builds/8162
1 parent 9f20397 commit dd3d26b

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

llvm/lib/Support/raw_socket_stream.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,6 @@ ListeningSocket::ListeningSocket(ListeningSocket &&LS)
119119
Expected<ListeningSocket> ListeningSocket::createUnix(StringRef SocketPath,
120120
int MaxBacklog) {
121121

122-
// If SocketPath is too long, the path will be truncated, and there may be
123-
// collisions with other truncated addresses that the fs::exists check below
124-
// will be unable to detect.
125-
if (SocketPath.size() >= sizeof(sockaddr_un::sun_path))
126-
return llvm::make_error<StringError>(
127-
std::make_error_code(std::errc::filename_too_long),
128-
"SocketPath too long");
129-
130122
// Handle instances where the target socket address already exists and
131123
// differentiate between a preexisting file with and without a bound socket
132124
//

0 commit comments

Comments
 (0)