]> git.ipfire.org Git - thirdparty/util-linux.git/commit
uuidd: don't truncate long socket paths
authorRuediger Meier <ruediger.meier@ga-group.nl>
Wed, 7 Mar 2018 09:40:23 +0000 (10:40 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 7 Mar 2018 10:50:05 +0000 (11:50 +0100)
commiteb10dbc159dd0d7dfd7c213c0351eef6e17d45ef
tree07dc3adcbab0c4cc865d822796b0d057a9b89960
parent76de2157cf579c98620535c2d6352096063aa2b1
uuidd: don't truncate long socket paths

This was the error
  uuidd: couldn't bind unix socket /var/tmp/portage/sys-apps/util-linux-2.31.1/work/util-linux-2.31.1-abi_x86_64.amd64/tests/output/uuid/uuiddkOcTUuoZ7kaP3: Address already in use

because the socket path was truncated to 108 chars which was luckily
an existing directory.

Now we abort early with "uuidd: socket name too long: ... "

Reported-by: Thomas Deutschmann <whissi@gentoo.org>
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
misc-utils/uuidd.c
tests/ts/uuid/uuidd