[PATCH] Allow CTDB's TEST_VAR_DIR variable to be relative
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,
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 8356 bytes
Desc: not available
More information about the samba-technical