From: Gavin Lloyd Date: Wed, 10 Apr 2024 00:38:02 +0000 (-0700) Subject: Fix misplaced else in mnt_update_already_done X-Git-Tag: v2.42-start~416^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6b316e0c9f1feb61bef3bb14b1356be8fbefcc17;p=thirdparty%2Futil-linux.git Fix misplaced else in mnt_update_already_done See 477401f0de --- diff --git a/libmount/src/tab_update.c b/libmount/src/tab_update.c index 87512af74..d44d190bc 100644 --- a/libmount/src/tab_update.c +++ b/libmount/src/tab_update.c @@ -982,9 +982,9 @@ int mnt_update_already_done(struct libmnt_update *upd) if (mnt_optstr_get_missing(fs->user_optstr, upd->fs->user_optstr, NULL) == 0) { upd->missing_options = 1; DBG(UPDATE, ul_debugobj(upd, " missing options detected")); - } - } else - rc = 1; + } else + rc = 1; + } } else if (upd->target) { /* umount */