summaryrefslogtreecommitdiffstats
path: root/lib/utils_disk.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils_disk.c')
-rw-r--r--lib/utils_disk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/utils_disk.c b/lib/utils_disk.c
index c87090e8..2b761f5e 100644
--- a/lib/utils_disk.c
+++ b/lib/utils_disk.c
@@ -180,7 +180,8 @@ void np_set_best_match(struct parameter_list *desired, struct mount_entry *mount
180 if (!best_match) { 180 if (!best_match) {
181 for (me = mount_list; me; me = me->me_next) { 181 for (me = mount_list; me; me = me->me_next) {
182 size_t len = strlen(me->me_mountdir); 182 size_t len = strlen(me->me_mountdir);
183 if ((!exact && (best_match_len <= len && len <= name_len && (len == 1 || strncmp(me->me_mountdir, d->name, len) == 0))) || 183 if ((!exact &&
184 (best_match_len <= len && len <= name_len && (len == 1 || strncmp(me->me_mountdir, d->name, len) == 0))) ||
184 (exact && strcmp(me->me_mountdir, d->name) == 0)) { 185 (exact && strcmp(me->me_mountdir, d->name) == 0)) {
185 if (get_fs_usage(me->me_mountdir, me->me_devname, &fsp) >= 0) { 186 if (get_fs_usage(me->me_mountdir, me->me_devname, &fsp) >= 0) {
186 best_match = me; 187 best_match = me;