summaryrefslogtreecommitdiff
path: root/libfstools/find.c
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2023-01-25 22:18:15 -0800
committerChristian Marangi <ansuelsmth@gmail.com>2023-02-04 19:45:58 +0100
commit14d535e4485dc030deecbba9ab493c379df5c237 (patch)
tree7534ff8cdee7ab959cd7e2e0f30de475ccee0c62 /libfstools/find.c
parent1ea5855e980cd88766dd9f615e78e7dd6edfbb74 (diff)
downloadfstools-14d535e4485dc030deecbba9ab493c379df5c237.tar.gz
partname: Correct fstools_partname_fallback_scan comparison
Commit 1ea5855e980c ("partname: Introduce fstools_partname_fallback_scan option") had two problems: 1. The strcmp() aborted when the param *matched* 1; we wanted the inverse 2. It was too aggressive about skipping the fallback behavior. For devices that had no root= parameter, they would always attempt the fallback scan. Fix both of those. Fixes: 1ea5855e980c ("partname: Introduce fstools_partname_fallback_scan option") Signed-off-by: Brian Norris <computersforpeace@gmail.com> [ add extra spacing between function ] Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Diffstat (limited to 'libfstools/find.c')
0 files changed, 0 insertions, 0 deletions