socket: fix error comparison
socket: properly label socket symlinks