OSDN Git Service

seqmid: restore sequencer address prefix match feature
authorClemens Ladisch <clemens@ladisch.de>
Mon, 13 May 2013 19:16:36 +0000 (21:16 +0200)
committerClemens Ladisch <clemens@ladisch.de>
Mon, 13 May 2013 19:16:36 +0000 (21:16 +0200)
commite23961df507ad3c981997cbd9e6e03352de79de3
tree763e9231bc72ac42a2a500e01fba7c75a78c2eea
parent2d5ad69e4e338789cc281276dc9c7efa2726dbde
seqmid: restore sequencer address prefix match feature

Commit 19892334499e (seq: Fix for snd_seq_parse_address()) removed the
ability to match sequencer client names by any of by their prefixes in
an attempt to avoid wrong matches when one client name is the prefix of
another.

However, the prefix match feature was documented and actually used.

Allow prefixes to match, but only if there is no exact match.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
src/seq/seqmid.c