summaryrefslogtreecommitdiff
path: root/lib/activate
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2021-09-24 17:40:35 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2021-09-27 18:56:14 +0200
commit9971459d19e93ff652eeaff165da72e51b256299 (patch)
tree75896fc8a2033552451806173c7fe31cbb4d45c6 /lib/activate
parente585c10fade006e5fe3643b76b09501d54c20c9b (diff)
downloadlvm2-9971459d19e93ff652eeaff165da72e51b256299.tar.gz
make: replace legacy use rindex with strrchr
Seems already dropped by some systems. Reported-by: adamboardman of gemian
Diffstat (limited to 'lib/activate')
-rw-r--r--lib/activate/dev_manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/activate/dev_manager.c b/lib/activate/dev_manager.c
index a8516d661..a73a556b2 100644
--- a/lib/activate/dev_manager.c
+++ b/lib/activate/dev_manager.c
@@ -838,7 +838,7 @@ static int _info(struct cmd_context *cmd,
return 1;
/* Check for original version of dlid before the suffixes got added in 2.02.106 */
- if ((suffix_position = rindex(dlid, '-'))) {
+ if ((suffix_position = strrchr(dlid, '-'))) {
while ((suffix = uuid_suffix_list[i++])) {
if (strcmp(suffix_position + 1, suffix))
continue;