mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
0159c48e89
Using xargs with sort -u to de-duplicate this list was my idea and causes a couple of things to go wrong. The use of xargs causes double-quotes to be lost. The resulting $public_ifaces value also contains newlines. The newlines could be removed with an additional xargs at the end of the pipeline... but that would add an extra level of quote stripping. I have unsuccessfully tried to find an alternative, but still elegant, command pipeline that de-duplicates the list, while maintaining quoting. So, just drop the de-duplication. This might make interface_ifindex_exists_with_options() slightly less efficient. However, that function walks the whole list, only terminating early when a match is found on both interface and options, so at least it will be correct. Include an extra testcase. Signed-off-by: Martin Schwenke <mschwenke@ddn.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Martin Schwenke <martins@samba.org> Autobuild-Date(master): Thu Apr 18 09:08:34 UTC 2024 on atb-devel-224 |
||
---|---|---|
.. | ||
events | ||
nfs-checks.d | ||
ctdb-crash-cleanup.sh | ||
ctdb.conf | ||
ctdb.init | ||
ctdb.sudoers | ||
ctdb.sysconfig | ||
ctdb.tunables | ||
debug_locks.sh | ||
debug-hung-script.sh | ||
functions | ||
nfs-linux-kernel-callout | ||
notification.README | ||
notify.sh | ||
README | ||
script.options | ||
statd-callout |
This directory contains run-time support scripts for CTDB. Selected highlights: ctdb.init An initscript for starting ctdbd at boot time. events/ Eventscripts. See events/README for more details. functions Support functions, sourced by eventscripts and other scripts. statd-callout rpc.statd high-availability callout to support lock migration on failover. Notes: * All of these scripts are written in POSIX Bourne shell. Please avoid bash-isms, including the use of "local" variables (which are not available in POSIX shell). * Do not use absolute paths for commands. Unit tests attempt to replace many commands with stubs and can not do this if commands are specified with absolute paths. The functions file controls $PATH so absolute paths should not be required.