When `ipc_endpoint_close()` attempts to remove all subscriptions of
an endpoint, the list that it iterates over includes the directory
containing the subscriptions, causing the function to emit an error.
This commit fixes the way that `ipc_endpoint_close()` determines the
list of subscriptions to be removed.
while read -r subscription; do
if ! rm "$subscription/${name//\//_}"; then
- log_error "Could unsubscribe $name from $subscription"
+ log_error "Could not unsubscribe $name from $subscription"
fi
- done < <(find "$endpoint/subscriptions")
+ done < <(find "$endpoint/subscriptions" -mindepth 1 -maxdepth 1 -type l)
if ! rm -rf "$endpoint"; then
return 1