The `_ipc_endpoint_topic_subscribe()' function dereferences symbolic
links when subscribing to a topic, causing symbolic links to be
created in the wrong directory if the topic already exists.
This commit changes the flags that `_ipc_endpoint_topic_subscribe()'
passes to `ln' so that the target won't be dereferenced if it refers
to a symbolic link.
return 1
fi
- if ! ln -sf "$topicdir" "$__ipc_root/$endpoint/subscriptions/$topic"; then
+ if ! ln -sfn "$topicdir" "$__ipc_root/$endpoint/subscriptions/$topic"; then
rm -f "$topicdir/$__ipc_self"
return 1
fi