[PATCH] Allow CTDB's TEST_VAR_DIR variable to be relative
Martin Schwenke
martin at meltin.net
Mon Dec 17 09:56:50 UTC 2018
Forcing TEST_VAR_DIR to be absolute can make path of Unix domain
sockets too long in some test suites. The maximum is only 108
characters, as per /usr/include/linux/un.h:
#define UNIX_PATH_MAX 108
However, we need to be careful to make sure correct paths are used when
creating symbolic links. For simplicity, we make the links target
absolute. There are a couple of other similar issues in the test code.
So, fix the potential issues when TEST_VAR_DIR is relative, and then
allow TEST_VAR_DIR to be relative.
Please review and maybe push...
peace & happiness,
martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ctdb.patch
Type: text/x-patch
Size: 8356 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20181217/29215284/ctdb.bin>
More information about the samba-technical
mailing list