]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdopen: be more careful when adding digit to names.
authorNeilBrown <neilb@suse.de>
Tue, 10 Mar 2009 05:28:22 +0000 (16:28 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 10 Mar 2009 05:28:22 +0000 (16:28 +1100)
commitadd394f39e16445a7975bd00fea69ed2bda05b70
treef6440b1e6652a36e2ff9ccbac66755251dbae5ea
parentecb02e31d5e29bda0d9d9c7ae073f8379c7558d5
mdopen:  be more careful when adding digit to names.

If we need to add digits to a name to make it unique, but don't have
to add '_', we need to avoid adding a digit immediately after a digit.
So if the last character of the name is a digit, add the '_' anyway.

Signed-off-by: NeilBrown <neilb@suse.de>
mdopen.c