lib: Explicitly refuse to truncate unix domain socket paths
authorAndrew Bartlett <abartlet@samba.org>
Fri, 18 Oct 2019 08:11:13 +0000 (21:11 +1300)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 18 Oct 2019 16:07:35 +0000 (16:07 +0000)
commit9a02c31deb1a295a5cf403aba378057dfcd44268
tree83cbc50fbe75c77441350000e7097063fc9c78ff
parent8e55a8562951924e4b1aad5a6d67fc8b309590c1
lib: Explicitly refuse to truncate unix domain socket paths

This avoids creating a socket like:

.../winbindd_privileged/p

instead of

.../winbindd_privileged/pipe

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/lib/util_sock.c