Skip to content

cat: do not connect to unix domain socket and instead return an error#9755

Merged
cakebaker merged 3 commits intouutils:mainfrom
asder8215:cat_unix_socket
Dec 21, 2025
Merged

cat: do not connect to unix domain socket and instead return an error#9755
cakebaker merged 3 commits intouutils:mainfrom
asder8215:cat_unix_socket

Conversation

@asder8215
Copy link
Contributor

This PR prevents cat from connecting to a Unix domain socket as per #9751.

@asder8215
Copy link
Contributor Author

asder8215 commented Dec 20, 2025

On another note, the GNU error message "No such device or address" applies for other cases than Unix domain sockets. From what I read from this post, the error message can apply to certain situations for character or block device, so we will want to cover those ends (probably as a separate PR).

Might need some time to understand the cases where character/block device produce this error, but I can handle that in a separate PR or let someone take care of it (will put up an issue on this soon).

@github-actions
Copy link

GNU testsuite comparison:

Congrats! The gnu test tests/basenc/bounded-memory is now passing!

@cakebaker cakebaker linked an issue Dec 21, 2025 that may be closed by this pull request
@cakebaker cakebaker merged commit 7da2a2d into uutils:main Dec 21, 2025
128 checks passed
@cakebaker
Copy link
Contributor

Thanks!

@asder8215 asder8215 deleted the cat_unix_socket branch December 21, 2025 17:59
CrazyRoka pushed a commit to CrazyRoka/coreutils that referenced this pull request Dec 28, 2025
…uutils#9755)

* cat: do not connect to unix domain socket and instead return an error. fixed uutils#9751

* added empty line to fr-FR.ftl

* made NoSuchDeviceOrAddress error unix specific
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cat Unix Domain Socket “Connect” Behavior

2 participants